Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

matthewhoffman
Copy link
Member

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.

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
Copy link
Collaborator

trhille commented Jan 6, 2021

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.

@matthewhoffman matthewhoffman merged commit 0b97a24 into MPAS-Dev:master Jan 6, 2021
@matthewhoffman matthewhoffman deleted the landice/interp_time_dim_check branch January 6, 2021 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants