MPAS-Dev / MPAS-Tools

MPAS Tools Repository
Other
39 stars 65 forks source link

Add check for required time dimension if a range of times is included #386

Closed matthewhoffman closed 3 years ago

matthewhoffman commented 3 years ago

The interp script can optionally take a range of time levels to interpolate. Currently, if the expected time dimension is not in the source file, the script will just interpolate the initial time level from the source into all time levels of the destination. This commit fixes this behavior by aborting with an error in that situation.

trhille commented 3 years ago

I have confirmed that this throws the desired error message when there is no Time dimension, and works for multiple time levels when there is a Time dimension.