[PULL REQUEST] ObsPack Bug Fix, Update for Instantaneous Sampling #204
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are multiple proposed changes/fixes to obspack_mod.F90.
There was a bug in the Seconds_Since_1970 function where the time conversion factor for fractional minutes of the day was 3600s instead of what should actually be 1440s (applied here). This means that ObsPack has been using the incorrect time steps for computing averages for users up until this point.
In the ObsPack wiki http://wiki.seas.harvard.edu/geos-chem/index.php/ObsPack_diagnostic there was mention of defining a CT_sampling_strategy of "4", meaning instantaneous sampling. However, the current obspack_mod.F90 does not include an option for instantaneous sampling. Here I provide the changes that allow for ObsPack to do instantaneous sampling.
the observational time step samples at that time.
This has been tested and does now sample instantaneously at the closest model time step, REGARDLESS of what the dynamic time steps are for a given simulation.