hydromt icon indicating copy to clipboard operation
hydromt copied to clipboard

Support setup_region in different crs

Open hboisgon opened this issue 1 year ago • 2 comments

Kind of request

Adding new functionality

Enhancement Description

So far in setup_region, the CRS property of the output region is fixed and cannot be changed. Eg bbox in 4326 but want a model in another crs. Would be nice to support.

Use case

I think quite some plugins use workarounds instead.

Additional Context

No response

hboisgon avatar Dec 20 '23 16:12 hboisgon

Do you mean from the Model.setup_region method? Or command line? In HydroMT-SFINCS we indeed have a crs argument in the setup_grid method to do this.

The exact behaviour of such argument would need some more thinking. In case of a bbox, does it define the bbox crs (i.e. to provide the coordinates in a local utm zone) or does it reproject the bbox in wgs84 coordinates to the defined crs. I would think the first option is more clear. Possibly we could add a second dst_crs argument for reprojection.

DirkEilander avatar Jan 04 '24 11:01 DirkEilander

Is my PR #888 ticking all the boxes for this feature?

deltamarnix avatar Apr 16 '24 11:04 deltamarnix