Open rburghol opened 2 years ago
CLC algorithm update:
real RNMAX(12,31,24), PRECIP(NDAYSMAX*24)
Hmm. Well, RNMAX could be the max radiation I suppose. But to give you some hints on this, the lines that you have identified are just declarations, in other words, in Fortran (and many other languages) you have to declare what kind of variable something is before you can use it -- unlike in R which usually infers what a variable is by the way that you declare it.
So, next steps would be to:
select month, day, hour, max(solar_rad) as RNMAX from solar_rad_dataframe GROUP BY month, day, hour
^Here is the command that gets the error:
./wdm_insert_ALL
A51175 nldas2 harp2021 1984010100-1984123123 1984 1984 1 1 1 1 1 1 1
The error says:
STOP ERROR opening .RNMax file
Which means it occurs on line 857
Graph for Multiple Land Segments
Graphs with Summer and Winter Data Only
11/2/2021 Update:
Kyle finished the RNMax script yesterday and pushed the script to github, and was able to get all the files on the terminal.
Upon attempting to create full WDMs, I received an couple of errors:
The first error stated "error opening RNMax file"
and I was able to past this by switching the directories for which the RNMax files where stored.
The second error stated "error reading RNMax file"
. I received this error writhe before the end of the day yesterday and did not get a chance to investigate why it occurred, but will take a look at it when the new server is up and running. I'm thinking it could be some differences in formatting between our RNMax csvs and the csvs the wdm populating function expects.
Once we have Gopal's LongTermAvgRNMax.cpp function compiled and running we may just use that instead.
La Nina Updates:
TO DO AFTER 11/3: