nhm-usgs / prms

Precipitation Runoff Modeling System
7 stars 9 forks source link

NetCDF files with relative paths are not handled correctly #12

Open pnorton-usgs opened 4 years ago

pnorton-usgs commented 4 years ago

Below is the issue originally reported by @rmcd-mscb

I think I may have found a possible bug in prms6. I'm bringing it up because I think at some point in your testing you'll encounter it. It occurs when you have relative paths to files in the control file such as ./pipestem/daymet.nc. I had to change the code where it reads the nc file as such. you can see my hacked change here https://github.com/rmcd-mscb/prms/commit/731ba56a985001458d8aea262476486c76733360 and the commit before this one. Basically, I changed the code to look for the last ".". You probably have a more elegant way to do this. This is just an FYI.