KMarkert / servir-vic-training

Training materials for the VIC hydrologic model setup developed for the @SERVIR program
GNU General Public License v3.0
36 stars 32 forks source link

Query regarding forcing generation using `format_meteo_forcing.py` #11

Closed KMarkert closed 5 years ago

KMarkert commented 5 years ago

Hi @KMarkert I have another query regarding script _format_meteoforcing.py for making forcing files. It needs a NetCDF file which consists of rainfall, tmax, tmin, and wind velocity and in the code, it converts the temperature to celsius from kelvin. But, the precipitation default unit is meter of era data, so it needed to be converted in to mm, as vic takes precipitation in mm. Where did you convert that in the script. Thanks.

Originally posted by @lokendrarathore in https://github.com/KMarkert/servir-vic-training/issues/10#issuecomment-461387712

KMarkert commented 5 years ago

@lokendrarathore the format_meteo_forcing.py script actually uses the CHIRPS precipitation dataset where the units are in mm so I didn't originally have to convert it. You will need to change how the script reads in the precipitation variables and provide the conversion factor. Look at lines 120-122 to see how the variables are indexed and converted to the correct units. Please let me know if this helps clarify things and how else I can help.

KMarkert commented 5 years ago

I am assuming this is resolved so I am closing this issue. Please reopen if there are additional questions on the format_meteo_forcing functionality.