-
Notifications
You must be signed in to change notification settings - Fork 29
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
@select not work for 4d array #214
Comments
Does v[:, :, 1:2, 1] work?
Message ID: ***@***.***>
… |
It works. |
if you need un-scaled data you can now use (7a3c9c5): using NCDatasets
f = "http:https://esgf3.dkrz.de/thredds/dodsC/cmip6/CMIP/EC-Earth-Consortium/EC-Earth3/historical/r1i1p1f1/day/zg/gr/v20200310/zg_day_EC-Earth3_historical_r1i1p1f1_gr_20130101-20131231.nc"
plevs = [250, 500, 850] .* 100
# plevs*100 -> plevs : an error in your example?
in_plev(plev, plevs) = indexin(round.(Int, plev), plevs) .!== nothing
nc = NCDataset(f)
v = NCDatasets.@select(nc["zg"].var, in_plev(plev, $plevs))
v[:,:,1:2,1] # works If the error persists, please file a new issue and provide all information in the issue template. |
Got it. Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: