Skip to content

Export Return Period Plot  #771

Description

@geohazard89

Is there any option to export this plot to geotiff?

image

Activity

  1. chahank commented on Aug 17, 2023

    @chahank
    Member

    There is no dedicated function for this. Please use the existing methods for i/o from the matplotlib package.

  2. peanutfun commented on Aug 18, 2023

    @peanutfun
    Member

    @geohazard89 We do not support file output via GeoTIFFs. One of the issues is that GeoTIFFs are rasterized per definition, whereas Climada operates on a set of "unrelated" geographic points in a geopandas GeoDataFrame format. However, if the data is rasterized, we store this information in the meta attribute, in your case haz.centroids.meta. You could use this information to define your raster. For writing data to GeoTIFF, I suggest you consult SO, e.g. https://stackoverflow.com/q/66383026.

    @chahank Matplotlib is unable to write GeoTIFFs.

    I will move this thread to the discussions, since writing GeoTIFFs from Climada data structures is not supported.

  3. locked and limited conversation to collaborators on Aug 18, 2023
  4. converted this issue into a discussion #772 on Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions