Replies: 1 comment 4 replies
-
I recommend using:
It stays around better. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm trying to convert this netCDF file:
http://thredds-gfnl.usc.es/thredds/fileServer/GLOBALWTDFTP/annualmeans/NAMERICA_WTD_annualmean.nc
to a tiff file using
rioxarray
and to eventually upload the tiff onto the Google Earth Engine, which requires the tiff file to have a projection.I know from Converting NetCDF dataset array to GeoTiff using rasterio Python, that the projection can be set using something like
xds.rio.set_crs("epsg:4326")
I have also found, following Search order for the CRS (DataArray and Dataset), that for my dataset
ds
,ds['spatial_ref'].attrs['GeoTransform']
is:But how do I use this info to set a projection before writing out to tiff?
Beta Was this translation helpful? Give feedback.
All reactions