Coder Social home page Coder Social logo

possible bug or problem on climada.hazard.tc_tracks_synth. calc_perturbed_trajectories when parallel processing is active about climada_python HOT 4 CLOSED

michignolo avatar michignolo commented on September 2, 2024
possible bug or problem on climada.hazard.tc_tracks_synth. calc_perturbed_trajectories when parallel processing is active

from climada_python.

Comments (4)

spjuhel avatar spjuhel commented on September 2, 2024

Could you provide:

  • a full minimal example
  • the version of climada you are using

I encountered a similar warning, but the tracks did not seem to have anything wrong.

Note from the docstring of from_tracks() that by default centroids that are "far from coast" are ignored, which lead TC that are nowhere near the coast to consist of zero filled arrays:

    ignore_distance_to_coast : boolean, optional
        If True, centroids far from coast are not ignored.
        If False, the centroids' distances to the coast are calculated with the
        `Centroids.get_dist_coast()` method (unless there is "dist_coast" column in
        the centroids' GeoDataFrame) and centroids far from coast are ignored.
        Default: False.

from climada_python.

michignolo avatar michignolo commented on September 2, 2024

from climada_python.

spjuhel avatar spjuhel commented on September 2, 2024

Ok so I checked the IBTracks dataset itself for this specific track and there are no records of radius_max_wind (and only very few of the sustained wind)

So the missing data is not related to the parallel processing at all, just to the fact that it does not exist.
Default behaviour is to fill in the gaps by interpolating, but that only if at least some data exists.
You can use estimate_missing = True in from_ibtracs_netcdf() to estimate missing physical variables from the ones that are available. But beware this uses coarse assumptions, from the documentation:

estimate_missing : bool, optional
For each fixed time step, estimate missing pressure, wind speed and radius using other
variables that are available at that time step.
The relationships between the variables are purely statistical. In comparison to
interpolate_missing, this procedure is able to estimate values for variables that
haven't been reported by any agency at any time step, as long as other variables are
available.
A typical example are storms before 1950, for which there are often no reported values
for pressure, but for wind speed. In this case, a rough statistical pressure-wind
relationship is applied to estimate the missing pressure values from the available
wind-speed values.
Make sure to set rescale_windspeeds=True when using this option because the
statistical relationships are calibrated using rescaled wind speeds.

Concerning the warning, I no longer have it when using estimate_missing = True so I guess it solve your problem, but there is indeed something to look into otherwise.

from climada_python.

michignolo avatar michignolo commented on September 2, 2024

from climada_python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.