[Dhsvm-users] Radiation Weirdness
Bowling, Laura C
bowling at purdue.edu
Wed Jan 16 08:58:22 PST 2008
Is your print statement within the while loop that is checking the
current model time step, or is it below the second call to ScanFloats?
-----Original Message-----
From: dhsvm-users-bounces at mailman1.u.washington.edu
[mailto:dhsvm-users-bounces at mailman1.u.washington.edu] On Behalf Of Rich
Gwozdz
Sent: Wednesday, January 16, 2008 1:19 AM
To: User Support list for DHSVM Model
Subject: [Dhsvm-users] Radiation Weirdness
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
_______________________________________________
Dhsvm-users mailing list
Dhsvm-users at u.washington.edu
http://mailman1.u.washington.edu/mailman/listinfo/dhsvm-users
More information about the Dhsvm-users
mailing list