-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small fixes in set hazard methods #425
Conversation
…ated it will be transformed
|
if "xc" in da.coords: | ||
self.logger.warning("Hazard map is rotated. It will be reprojected to a none rotated grid using nearest neighbor interpolation") | ||
da = da.raster.reproject(dst_crs=da.rio.crs) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not fully familiar how the grid rotation works best, but according to chatgpt this code may fail if the crs is not in standard projection like UTM or WGS84. Maybe you could comment on that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It uses epsg codes from what I saw. So if there is an epsg code related to you projection it should work.
|
These changes ensure that when a rotated grid is provided it is automatically translated to a standard grid that FIAT can handle.