Skip to content

How to apply custom calculation between two cubes (GRIB files)? #5044

Answered by pp-mo
mcrimaldi asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, I think I didn't read the whole spec, but was only talking about the the problem with nearly-equal lat+lon coordinates.
So I missed the need to extract at specific (non-grid) station locations anyway... Interpolation makes perfect sense for that, so you may as well apply the same to both the inputs, and not worry about the slight difference.

So I think you now have a suitable Zgb cube, with 18 points corresponding to the station locations.

In order to do arithmetic, you need this and the other two cubes to all share a "station dimension" (length 18).
That means also interpolating the other gridded data inputs (air-temperature and surface-elevation) from lats and lons onto the fixed st…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@mcrimaldi
Comment options

@pp-mo
Comment options

pp-mo Nov 3, 2022
Maintainer

@mcrimaldi
Comment options

@pp-mo
Comment options

pp-mo Nov 3, 2022
Maintainer

Answer selected by trexfeathers
@pp-mo
Comment options

pp-mo Nov 4, 2022
Maintainer

@mcrimaldi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants