juseg / hyoga

Paleoglacier modelling framework
https://hyoga.io
GNU General Public License v3.0
8 stars 0 forks source link

Vector methods are incompatible with rioxarray. #52

Closed juseg closed 1 year ago

juseg commented 1 year ago

Hyoga v0.3.0 will use rioxarray for geographic transformations. Vector drawing methods currently only recognize a proj4 attribute, but instead should be compatible with rioxarray CRS. Rioxarray's documentation recommends using decode_coords="all" to read mapping attributes in netCDF.

To reproduce (in gebco branch for now, but soon in main too):

ds = hyoga.open.surface('epsg:32632', [150e3, 1050e3, 4820e3, 5420e3])
ds.hyoga.plot.natural_earth()