NCAR / rwrfhydro

A community-contributed tool box for managing, analyzing, and visualizing WRF Hydro (and NWM) input and output files in R.
Other
74 stars 68 forks source link

Read GwOut NetCDF files #112

Open youcanf opened 4 years ago

youcanf commented 4 years ago

Currently, rwrfhydro can only read in the groundwater text outputs generated by the early versions of WRF-Hydro. This commit allows one to read in the groundwater NetCDF outputs generated by up to V5.1.2 by calling, e.g., modGwout.allrt.fc <- ReadGwOutNetCDF(dataPath, basid=1).

youcanf commented 4 years ago

I am able to compile this commit on both Windows and Linux with no problem, but I have no idea about the reported errors found by the check. I have tried the devtools::check() too, and even the master branch can't pass the check with the same errors reported: ❯ checking examples ... ERROR Running massageExamples to create ‘rwrfhydro-Ex.R’ failed Error in x[[1L]] : subscript out of bounds ❯ checking for unstated dependencies in examples ... WARNING Error in x[[1L]] : subscript out of bounds