Skip to content

Change intensity units from m/s to km/h #1013

Closed as not planned
Closed as not planned

Description

@adgelt

Hi, is there a way how can I change the units of tropical cyclone wind intensities being shown in plots from m/s to km/h?

Image

Activity

  1. peanutfun commented on Mar 3, 2025

    @peanutfun
    Member

    Hi @adgelt, thanks for your question.

    You can simply apply a factor of 3.6 to the intensity data and change the appropriate unit label within the hazard object:

    from copy import deepcopy
    
    hazard_in_kmh = deepcopy(hazard)
    hazard_in_kmh.intensity = hazard_in_kmh.intensity * 3.6
    hazard_in_kmh.units = "km/h"

    Please keep in mind that the default impact functions provided by CLIMADA are intended for use with m/s, so any impact you calculate with the transformed hazard might be wrong.

  2. peanutfun commented on Mar 24, 2025

    @peanutfun
    Member

    @adgelt Were you able to transform the data to km/h?

  3. adgelt commented on Mar 24, 2025

    @adgelt
    Author

    Hello @peanutfun yes I did. I have another question. Is this map can be downloaded as raster file? Or is there a way to extract the intensity or return period plots as a raster? Thanks for answering.

  4. peanutfun commented on Apr 7, 2025

    @peanutfun
    Member

    @adgelt Sorry for the late reply. We often have similar requests but it is difficult to come up with a solution because CLIMADA-internal data structures work on a point-wise basis and do not retain information if these points create a grid or not (on purpose!). However, there is functionality for creating (interpolated) gridded data from the pointwise data, which is currently used within our plotting functions. Please see the discussion in #1035 for further information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions