ruithnadsteud / yt_georaster

A package for handling geotiff files and georeferenced datasets within yt.
1 stars 2 forks source link

Use units of a dataset's CRS #31

Closed deastwoo closed 2 years ago

deastwoo commented 3 years ago

We should use the CRS in the metadata of a raster to determine the units of the grid. This could help handle Latitude-Longitude degrees rather than metres when the CRS requires, e.g. WGS 84, EPSG: 4326 has units of degrees.

Rasterio's CRS object has the linear_units and linear_units_factor properties, which could be used to find the correct units and convert them to metres if necessary.

deastwoo commented 2 years ago

Functionality added #50