Replies: 1 comment
-
Note the subdataset mentioned in the original netCDF file:
It looks like it has the expected dimensions. You could try opening it up with rioxarray.open_rasterio to get a properly geo-referenced dataset: import rioxarray
xds = rioxarray.open_rasterio("G:\Newman_AK_Data\alaska_daily_1981_050.nc4", variable="t_mean") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a georeferrenced NETCDF file using a NCAR temperature dataset available from the NCAR Data Gateway. The data files are served in lat/lon format and are not georeferenced. From the paper, they indicate the domain is based upon a DEM elevation dataset resampled to a 2km resolution. In my scripts I call it
pr_targ
.Here is what the source data looks as an xarrary dataset:
Add corresponding
gdalinfo
Note it says the size is 512,512
I made this script to export the variable
t_mean
in a properly georeferenced format:ds_new
looks like:When I run
gdalinfo
on my exported file I get a printout saying there are 365 bands with a size 1280,925. I don't know where all the metadata came from.Why are the is the source file gdalinfo size (512,512) and subseted data file (1280,925) different? I must be doing something wrong.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions