[gdal-dev] NetCDF: how to read coordinates from "lon" and "lat" variables?
andy
aborruso at gmail.com
Tue Dec 3 01:34:58 PST 2024
Hi,
I have a NetCDF file that I cannot share here.
Using gdalinfo I have the below output.
Is there any way to tell gdal to read coordinates from the “lon” and “lat”
variables/subdatasets, and thus have the coordinates of the vertices not in
pixels?
Thank you very much
Driver: netCDF/Network Common Data Format
Files: none associated
Size is 512, 512
Subdatasets:
SUBDATASET_1_NAME=NETCDF:"out.input.nc":NO2
SUBDATASET_1_DESC=[25x1x229x174] NO2 (32-bit floating-point)
SUBDATASET_2_NAME=NETCDF:"out.input.nc":O3
SUBDATASET_2_DESC=[25x1x229x174] O3 (32-bit floating-point)
SUBDATASET_3_NAME=NETCDF:"out.input.nc":PM10
SUBDATASET_3_DESC=[25x1x229x174] PM10 (32-bit floating-point)
SUBDATASET_4_NAME=NETCDF:"out.input.nc":PM25
SUBDATASET_4_DESC=[25x1x229x174] PM25 (32-bit floating-point)
SUBDATASET_5_NAME=NETCDF:"out.input.nc":Times
SUBDATASET_5_DESC=[25x19] Times (8-bit character)
SUBDATASET_6_NAME=NETCDF:"out.input.nc":lat
SUBDATASET_6_DESC=[229x174] lat (64-bit floating-point)
SUBDATASET_7_NAME=NETCDF:"out.input.nc":lon
SUBDATASET_7_DESC=[229x174] lon (64-bit floating-point)
SUBDATASET_8_NAME=NETCDF:"out.input.nc":pDUST
SUBDATASET_8_DESC=[25x1x229x174] pDUST (32-bit floating-point)
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 512.0)
Upper Right ( 512.0, 0.0)
Lower Right ( 512.0, 512.0)
Center ( 256.0, 256.0)
--
___________________
Andrea Borruso
website: https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___________________
"cercare e saper riconoscere chi e cosa,
in mezzo all’inferno, non è inferno,
e farlo durare, e dargli spazio"
Italo Calvino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241203/7ab328d6/attachment.htm>
More information about the gdal-dev
mailing list