Skip to content

Add interactive cyclone tracking script with coordinate extraction#19

Merged
daniloceano merged 1 commit into
daniloceano:mainfrom
RonaldRN:extract-time-lat-lon-length-width-file
Apr 27, 2026
Merged

Add interactive cyclone tracking script with coordinate extraction#19
daniloceano merged 1 commit into
daniloceano:mainfrom
RonaldRN:extract-time-lat-lon-length-width-file

Conversation

@RonaldRN

Copy link
Copy Markdown
Contributor

This pull request adds a new Python script to interactively extract cyclone information from NetCDF files.

Main features:

  • Interactive box selection using left-click and drag.
  • Extraction of time, latitude, longitude, length, and width.
  • Preservation of the original longitude convention, either 0–360 or -180–180, which is useful for cyclones near the dateline.
  • Optional shapefile support to add continent boundaries.
  • Optional variable and pressure-level selection.

Usage examples:

bash

python Extract_coords_time-lat-lon-length-width.py input.nc --shp shapefile.shp --out track_cyclone.txt
or
python Extract_coords_time-lat-lon-length-width.py input.nc --shp shapefile.shp --var z --level 850 --out track_850.txt

…d shapefile support

- Implements interactive box selection (click-and-drag) to extract cyclone coordinates
- Outputs time, latitude, longitude, length, and width
- Preserves longitude convention (0–360 or -180–180), handling dateline-crossing systems
- Adds continent boundaries using shapefile input
- Supports variable and pressure level selection

Usage examples:
python Extract_coords_time-lat-lon-length-width.py input.nc --shp shapefile.shp --out track_cyclone.txt
python Extract_coords_time-lat-lon-length-width.py input.nc --shp shapefile.shp --var z --level 850 --out track_850.txt
@daniloceano daniloceano merged commit c664f66 into daniloceano:main Apr 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants