[Dhsvm-users] Radiation Weirdness
Rich Gwozdz
rgwozdz at u.washington.edu
Tue Jan 15 22:18:48 PST 2008
Hello group,
In an effort to better understand the radiation routines in DHSVM 3.0, I
have taken a look at ReadMetRecord.c where shortwave from the radiation
met file is scanned into memory.
Here's the code:
if (ScanFloats(InFile->FilePtr, Array, NMetVars) != NMetVars) //this
scans in data from the metfile
ReportError(InFile->FileName, 5);
printf("%f %f %f %f %f\n", Array[0], Array[1], Array[2], Array[3],
Array[4]); //this is my line of code that prints out the met data that
has just been scanned
Array[0] is air temp, Array[1] is wind speed, Array[2] is Rh, Array[3]
is shortwave, Array[5] is longwave - same order as in the met file.
Now, my met file data for my first time step (06/01/1993-12) is:
7.01667 1.96167 91.333 782.043 333.186005
When I print out the arrays above, I think should see the same values as
in the met file. But here is what I get:
7.016670 1.961670 91.333000 118.755997 333.186005
As you can see, all values EXCEPT shortwave match the data from the met
file. This continues for successive timesteps.
No data manipulations appear to occur before my print statement. Do you
have any idea what could be going on here? Possibly some kind of memory
problem?
Thanks in advance,
Rich
--
_____________________________
Rich Gwozdz
Fire and Mountain Ecology Lab
College of Forest Resources
University of Washington
cell: 206-769-6808
office: 206-543-9138
rgwozdz at u.washington.edu
More information about the Dhsvm-users
mailing list