Skip to content

specify OBS_VAR1_LEVELS in metplus gridstat #1616

Locked Answered by JohnHalleyGotway
perthsb asked this question in Configuration
Discussion options

You must be logged in to vote

@perthsb I see you have a question about configuring Grid-Stat to select a single timestep from a NetCDF file that contains many.

I see this in the METplus config file you sent:

OBS_VAR1_NAME = total_aod_mean
OBS_VAR1_LEVELS =  (0,*,*)

And I'm guessing here that the "total_aod_mean" NetCDF variable has 3 dimensions for time, lat, lon (or something simliar).

float total_aod_mean(time, lat, lon)

Settings the level to (0,*,*) will always use data for the first time step. Instead, you want to select data for the actual valid time being evaluated. You can try doing so like this:

OBS_VAR1_LEVELS = ({valid?fmt=%Y%m%d_%H%M%S},*,*)

The would tell Grid-Stat to find and use the time dimension cor…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
5 replies
@perthsb
Comment options

@JohnHalleyGotway
Comment options

@perthsb
Comment options

@JohnHalleyGotway
Comment options

@perthsb
Comment options

Answer selected by perthsb
Comment options

You must be logged in to vote
1 reply
@perthsb
Comment options

Comment options

You must be logged in to vote
1 reply
@perthsb
Comment options

Comment options

You must be logged in to vote
2 replies
@perthsb
Comment options

@georgemccabe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment