You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to play with a rotated grid dataset. YAXArrays is able to load the dataset, but there is missing the grid mapping definition and also misses to load latitude and longitude 2D matrices. This makes it impossible to use the mapping definition for further reprojecting of the data or creating maps with the lat-long matrices.
Here's a MWE.
Cheers!
# using NCDatasets# using URIsusing YAXArrays
using NetCDF
# using Zarr# URL RDRS on Pavics
url ="https://pavics.ouranos.ca/twitcher/ows/proxy/thredds/dodsC/datasets/reanalyses/day_RDRSv2.1_NAM.ncml"# Lecture de la structure
ds =Cube(url)
# Returns 706×800×14245×13 YAXArray{Float32,4} with dimensions:
Dim{:rlon} Sampled{Float32} 324.60278f0:0.09000002f0:388.0528f0 ForwardOrdered Regular Points,
Dim{:rlat} Sampled{Float32} Float32[-46.170002, -46.08, …, 25.65, 25.74] ForwardOrdered Irregular Points,
Ti Sampled{DateTime} DateTime[1980-01-01T00:00:00, …, 2018-12-31T00:00:00] ForwardOrdered Irregular Points,
Dim{:Variable} Categorical{String} String[huss, hurs, …, tasmin, tdps] Unordered
units: K
Total size:389.64 GB
ds.Variable
# Returns
Dim{:Variable} Categorical{String} Unordered
wrapping:13-element Vector{String}:"huss""hurs""tasmax""pr""psl""tdpsmin""hursmax""tdpsmax""ps""hursmin""tas""tasmin""tdps"
ds.axes
# Returns
Dim{:rlon} Sampled{Float32} 324.60278f0:0.09000002f0:388.0528f0 ForwardOrdered Regular Points,
Dim{:rlat} Sampled{Float32} Float32[-46.170002, -46.08, …, 25.65, 25.74] ForwardOrdered Irregular Points,
Ti Sampled{DateTime} DateTime[1980-01-01T00:00:00, …, 2018-12-31T00:00:00] ForwardOrdered Irregular Points,
Dim{:Variable} Categorical{String} String[huss, hurs, …, tasmin, tdps] Unordered
Compared to xarray's output (lat, lon and rotated_pole are available in Coordinates)
Hello!
I am trying to play with a rotated grid dataset. YAXArrays is able to load the dataset, but there is missing the grid mapping definition and also misses to load latitude and longitude 2D matrices. This makes it impossible to use the mapping definition for further reprojecting of the data or creating maps with the lat-long matrices.
Here's a MWE.
Cheers!
Compared to xarray's output (lat, lon and rotated_pole are available in Coordinates)
The text was updated successfully, but these errors were encountered: