UW-Hydro / MetSim

Meteorology Simulator
http://metsim.readthedocs.io/
GNU General Public License v3.0
60 stars 50 forks source link

Should we take into account distance from center of time zone? #8

Closed arbennett closed 7 years ago

arbennett commented 7 years ago

In the original code the distance from the center of the time zone is calculated by

hour_offset = (theta_l - theta_s) * 24 / 360

and is used in the disaggregation of shortwave radiation:

tiny_step = j*tinystepperhour + k - tiny_offset

Where tiny_offset is just a scaling of hour_offset.

The theta_l and theta_s parameters come from a struct returned by read_soilparam.c, which doesn't have any implementation in MetSim right now.

arbennett commented 7 years ago

@bartnijssen @jhamman Do either of you have thoughts on whether/how we should implement this? Perhaps these parameters can be set in the configuration file?

jhamman commented 7 years ago

Yes, I do think we should maintain this feature. For now, I'm fine with specifying this as a configuration file option.

arbennett commented 7 years ago

Would it be reasonable to pull the lats and lons from the forcing file name? Or rather, is it to onerous to enforce the forcing naming standard $NAME_$LAT_$LON? If we enforce this, the theta parameters could be calculated from these directly.

jhamman commented 7 years ago

I don't really like using the filename as metadata. For the traidtional VIC input, this may be okay but the most common application of this tool will probably be netcdf->netcdf.

bartnijssen commented 7 years ago

We should not pull this from the forcing file name. That's an old VIC habit in classic mode, but we should not assume that going forward. For example, it won't be available when we write in netCDF mode

arbennett commented 7 years ago

Solved in #10.