Skip to content

Plot windfield #1028

@NicolasColombi

Description

@NicolasColombi

Describe the bug
When defining centroids from -180 to 180 longitude, the plotting function only plots one very narrow longitude line.

To Reproduce

tc = TCTracks.from_ibtracs_netcdf(year_range=(2000,2003))
lon_min, lat_min, lon_max, lat_max = -180, -70, 180, 70
centr = Centroids.from_pnt_bounds(points_bounds=(lon_min, lat_min, lon_max, lat_max), res=1)
tc_haz = TropCyclone.from_tracks(tc, centroids=centr, ignore_distance_to_coast=100, store_windfields=True)
tc_haz.check()
tc_haz.plot_intensity(event=0)

Image

centroids:

Image

tracks:

Image

Develop branch, python 3.9.18, Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting pull requestContribute by raising a pull request to resolve this issue!bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions