Skip to main content

depression detection/tracking schemes

Project description

colindex2

A python package for atmospheric depression detection and tracking. The main target is to capture upper tropospheric disturbances such as cutoff lows from preexisting trough stage, with their seamless transitions of basic variables such as intensity, size, duration, etc..

PyPI version

Reference

Install

pip install colindex2

Dependecies are...

numpy pandas pytorch scipy xarray netCDF4 h5netcdf matplotlib cartopy  

If you use anaconda environment, prepare the dependencies using conda in advance and then install colindex2 using conda's pip, as recommended by anaconda.com.

Tutorial

Try quick tutorial

How to execute

Two different ways are available using (1) python functions and (2) command lines

(1) Python functions

documents

(2) Shell commands

Note that python3 and requirements must be installed.

Add -h to see their documets.

    1. Generate data_settings.py
gen_data_settings
detect z.nc
    1. Run tracking
track

or, you can do doth as follows:

detect z.nc -track
  • Find and make each tracking data
find_track ./d01 L 300 a

Directory structure of outputs

current_dir/
|
└── d01/  # default name
    |
    ├── AS/  # 2D averaged slope function
    |   └── AS-{ty}-{yyyymmddhhTT}-{llll}.nc (or .grd)
    |
    ├── V/   # point values after detection, will be used for tracking
    |   └── V-{ty}-{yyyymmddhhTT}-{llll}.csv
    |
    ├── Vt/  # intermediate data (you can remove after all processes are finished)
    |   └── V-{ty}-{yyyymmddhhTT}-{llll}.csv
    |
    ├── Vtc/ # final point values after tracking
    |    └── V-{ty}-{yyyymmddhhTT}-{llll}.csv
    |
    └── ID/  # continuous csv for a specific track whose id is `ID`
         └── {ty}-{l}-{yyyymm}-{ID}.csv

where, ty is L or H, yyyymmddhhTT is timestep, llll is level in 4 digits, and l is level.

Parameter list for Vct data

Names Description
time Time.
ty 0 for lows and troughs,
1 for highs and ridges.
lev Level of the input field.
lat, lon Central coorditates in latitude and longitude.
valV Value of input field on the center
valX Value of the nearest local minimum (maximum) of input field for a low (high).
lonX,latX Latitude and longitude of the nearest local extremum if any, otherwise this value will be 999.9
So Optimal slope [m/100 km]. Intensity of depresion (circular geostrophic wind speed).
ro Optimal radius [r km]. Size of depression (as a radius of its surrounding circulation).
Do Optimal depth [m]. Vertical depth of depression.
SBG Background slope [m/100 km].
SBGang Angle of Background slope vector [radian]. 0 for east.
m, n Zonal, meridional components of SBG, respectivelly [m/100 km].
SR Slope ratio. Less (more) than 1.34 tends to correspond to a closed-contour (open-contour) system. See K21 for detail discussions.
ex Distinction between closed and open systems.
1 (there is a extremum within ro*0.65) for lows/highs
0 for troughs/ridges.
EE Eccentricity (1 for pure isotropic, smaller values for oval shape).
EEang Angle of the long axis from east [rad].
XX Zonal discrete laplacian with a step of ro [m/(100 km)**2]. Small value means the feature has weak zonal concavity. 0.5 might be a good value to exclude sub-tropical large ridges.
ID Identification number. This can be larger than number of resultant detections since it includes noises.
MERGE Merge lysis flag.
-1 for soritary lysis,
-2 for being merged from someone,
-3 for lysis at the end of analysis,
-4 for being involved in the secondary process (see Fig. S2 in KH25),
other integers for the object ID of its merge lysis.
SPLIT Split genesis flag.
-1 for soritary genesis,
-2 for being splitting and producing someone,
-3 for genesis at the start of analysis,
-4 for being involved in the secondary process (see Fig. S2 in KH25),
other integers for the object ID of its split genesis.
DIST Moving distance in a timestep [km]. Central difference. When merge/split/genesis/lysis, value will be missing.
SPEED Moving speed [m/s]. DIST/timestep.
DIR Moving direction [radian]. 0 for east.
_ DC Accumulated duration [timestep] including before split.
DU Duration [hour].
XS Sequential duration being ex=1 (lows/highs).
QS Quasi-stational (QS) duration [hour]. The conditions for QS are controlled by the options in Track() as follows:
- QS_min_intensity
- QS_min_radius
- QS_min_overlap_ratio
TOTDIST Accumulated moving distance [km].
MAX 1 for the maximum development timestep (maximum So).
MAXSo So when MAX.
exGEN Closed system genesys (ex changed from 0 to 1 in this timestep).
exLYS Closed system lysis (ex changed from 1 to 0 in the next timestep).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colindex2-2.11.0.tar.gz (38.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colindex2-2.11.0-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file colindex2-2.11.0.tar.gz.

File metadata

  • Download URL: colindex2-2.11.0.tar.gz
  • Upload date:
  • Size: 38.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for colindex2-2.11.0.tar.gz
Algorithm Hash digest
SHA256 ecd41d60301c89ad10b4f096cf5979a50f0566bf49a822fab6bba2cc2b0fd3dd
MD5 f4a3de44a1720dba38d942d2085989dd
BLAKE2b-256 a3261c271c3bea727756c5e6fa7bed24edb74be2bce0c94e36350d0ea322c7e6

See more details on using hashes here.

File details

Details for the file colindex2-2.11.0-py3-none-any.whl.

File metadata

  • Download URL: colindex2-2.11.0-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for colindex2-2.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8ebc4fa21166234d5a6dba674a2b94b6608fabaffa7d8f282ef10ae41dd8f9c
MD5 30c86e2c2d9f3079567836411087027f
BLAKE2b-256 718c36f61c2904c724492fde1212094560301f79fc0b9627f8a45846285aa95e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page