Closed jhamman closed 8 years ago
I'm planning to get started on this. Currently, the global parameter file for the image driver must specify vapor pressure VP
but the actual forcing data must be specific humidity SHUM
, so this is confusing. As the issue states, ideally we would not only fix this discrepancy between what is specified and provided but also allow the user to provide VP
or SHUM
, with vic_force.c
doing the requisite unit conversions. @bartnijssen and @jhamman, does that sound good for our VIC 5 development timeline?
I'd like to avoid having a lot of logic for the met generation as part of VIC5 itself. That is one of the reasons for pulling MTCLIM out of VIC (the main reasons are that it does not play well with the image driver and that it prevents exact restarts). My preference would be that the conversion should be done as part of a pre-processor utility that perhaps also runs MTCLIM. That said, we should still make it consistent internally so that what is required in the global parameter file is the field that is actually used, but that should be a small fix. The larger work would be on standalone MTCLIM.
Thanks @bartnijssen. Let me lay this out in a bit more detail:
VIC.4.2 w/ OUTPUT_FORCE
produces vapor pressure in units kPa.VIC.5 classic driver
uses vapor pressure in units of kPa.VIC.5 image driver
uses specific humidity in units of g/g although the global parameter file requires setting the VP variable as specific humidity.So if we are only going to go with one (SHUM
or VP
), I would suggest it is better to go with VP
so that the VIC.5 image driver
is:
VIC.5 classic driver
,VP
values calculated by VIC.4.2 w/ OUTPUT_FORCE
Yep - that works for me. As part of tonic we can provide a conversion (or as part of MTCLIM standalone).
My main concern is not user-convenience but code maintainability and testing, which is simpler with fewer options. People can always fork and add their own conversion routine if they so desire, but I'd like the official version of VIC to be a little less accommodating than the old one (since the burden for that accommodation currently lies entirely with our group).
We should at least make sure that the image driver is consistent so it can use the output from OUTPUT_FORCE
and does not require:
Okay, @dgergel was going to do this but since she's gone, I'll knock it out.
@yixinmao, can you take point on converting the image driver sample data back to the vapor pressure (units kPa).
I'll send over a PR in a few minutes.
@jhamman : you mean produce a new image driver forcings for the Stehekin example with vapor pressure in kPa, right?
closed via #584
VIC uses vapor pressure (
VP
) internally. However,vic_force
in both theclassic
andimage
drivers only allows specific humidity (SHUM
) which is converted toVP
. MTCLIM in VIC 4 produces VP when run inOUTPUT_FORCE
mode. I'd like to suggest that we allow the user to provideVP
orSHUM
and thatvic_force
handles the conversions if necessary.cc @wietsefranssen