UU-Hydro / PCR-GLOBWB_model

PCR-GLOBWB (PCRaster Global Water Balance) is a large-scale hydrological model intended for global to regional studies and developed at the Department of Physical Geography, Utrecht University (Netherlands). Contact: Edwin Sutanudjaja (E.H.Sutanudjaja@uu.nl).
GNU General Public License v3.0
117 stars 79 forks source link

Allow for input with time-related naming #32

Open BramDr opened 7 months ago

BramDr commented 7 months ago

Would like to see that the input-file string can contain formatting patterns that match the time of the current model timestep. This is especially useful for meteorological forcing inputs that often come in yearly NetCDF files.

A simple key-based format would be sufficient, and would also allow for user-customized formatting options (such as the number of digits). As an example: netcdf_file_name = self.preFileNC.format(year = currTimeStep.year, month = currTimeStep.month, day = currTimeStep.day, hour = currTimeStep.hour, second = currTimeStep.second, milisecond = currTimeStep.milisecond)

BramDr commented 7 months ago

Likely best to include this in the virtualOS netcdf2PCRobjClone function