-
Notifications
You must be signed in to change notification settings - Fork 99
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
ERA5 CDS requests which return a mixture of ERA5 and ERA5T data #190
Comments
I also ran into this issue today. The What's worked for me (and is much faster than the cutout.data = cutout.data.sel(expver=1).combine_first(cutout.data.sel(expver=5)) |
Requesting cutout data spanning recent (ERA5T) and data older than ~3 months (ERA5) results in an additional dimension in `cutout.data`, called `expver`, which `atlite` currently cannot handle gracefully. This change collapses the two dimensions into a single dimension. See discussion in PyPSA#190
@fneum you seem to be the most active contributor on |
Requesting cutout data spanning recent (ERA5T) and data older than ~3 months (ERA5) results in an additional dimension in `cutout.data`, called `expver`, which `atlite` currently cannot handle gracefully. This change collapses the two dimensions into a single dimension. See discussion in PyPSA#190
You probably mean @FabianHofmann :) but sure, a PR is welcome! |
Whoopsie, yeah, I did mean Fabian Hofmann :) Sorry about that. Alright, I'll prepare something. |
Requesting cutout data spanning recent (ERA5T) and data older than ~3 months (ERA5) results in an additional dimension in `cutout.data`, called `expver`, which `atlite` currently cannot handle gracefully. This change collapses the two dimensions into a single dimension. See discussion in PyPSA#190
Requesting cutout data spanning recent (ERA5T) and data older than ~3 months (ERA5) results in an additional dimension in `cutout.data`, called `expver`, which `atlite` currently cannot handle gracefully. This change collapses the two dimensions into a single dimension. See discussion in PyPSA#190
Requesting cutout data spanning recent (ERA5T) and data older than ~3 months (ERA5) results in an additional dimension in `cutout.data`, called `expver`, which `atlite` currently cannot handle gracefully. This change collapses the two dimensions into a single dimension. See discussion in PyPSA#190
Requesting cutout data spanning recent (ERA5T) and data older than ~3 months (ERA5) results in an additional dimension in `cutout.data`, called `expver`, which `atlite` currently cannot handle gracefully. This change collapses the two dimensions into a single dimension. See discussion in PyPSA#190
Requesting cutout data spanning recent (ERA5T) and data older than ~3 months (ERA5) results in an additional dimension in `cutout.data`, called `expver`, which `atlite` currently cannot handle gracefully. This change collapses the two dimensions into a single dimension. See discussion in PyPSA#190
Draft pull request: #261 |
Requesting cutout data spanning recent (ERA5T) and data older than ~3 months (ERA5) results in an additional dimension in `cutout.data`, called `expver`, which `atlite` currently cannot handle gracefully. This change collapses the two dimensions into a single dimension. See discussion in PyPSA#190
Requesting cutout data spanning recent (ERA5T) and data older than ~3 months (ERA5) results in an additional dimension in `cutout.data`, called `expver`, which `atlite` currently cannot handle gracefully. This change collapses the two dimensions into a single dimension. See discussion in PyPSA#190
Description
As reported here, CDS will return an dataset with an extra
expver
dimension when a call spans over an date range that consist of both ERA5 and preliminary ERA5T data. This is not handled in Atlite.expver 1
: ERA5 data, that has been quality checked.expver 5
: ERA5T preliminary data (the three last months).Expected Behavior
The
expver
dimension should be removed.A bonus would be to report the date when the ERA5T (
expver 5
) data starts as this data might get updated/corrected later.Fix
An easy fix is that has worked in all my use cases:
cutout.data = cutout.data.reduce(np.nansum, 'expver')
Guess it could be done somewhere earlier in the preparation of the data, i.e. before any derived variables are calculated. Having the extra
expver
dimension also doubles the memory footprint, so it can be good to be thoughtful about this also when/if splitting cds calls in the time dimensionThe text was updated successfully, but these errors were encountered: