Statistics¶
- pyTRACK.stats_track(outdirectory=None, keep_all_files=False)¶
Workflow to compute statistics from features tracked using track_uv().
The statistics file are output inside the corresponding {hemisphere}_y{year} folder in the outdirectory.
- Parameters:
outdirectory (str) – Path to the output directory, same as that passed to track_uv()
keep_all_files (bool) – Do you want to keep all the intermediate files? Default is no. Turn this on if you want to retreive these files, or during development.
The stats_track function computes the track statistics from track_uv() output. This workflow runs stats in every {hemisphere}_y{year} directory and writes two files - stats_ff_trs_pos.nc and stats_ff_trs_neg.nc, associated the statistics of the positive and negative vorticity anomalies.
These files have the following fields-
mstr - mean intensity (/s)
stdstr - std of intensity (/s)
msp - mean speed (m/s)
stdsp- std of speed (m/s)
fden - feature density (cyclones/ 5 degree spherical cap)
gden - genesis density (genesis/ 5 degree spherical cap)
lden - lysis density (lysis/ 5 degree spherical cap)
tden - track density (cyclones/ 5 degree spherical cap)
xvel - x component of mean velocity (m/s)
yvel - y component of mean velocity (m/s)
mlif - mean lifetime
mgdr - mean growth/decay rate (unitless)
miso - mean anisotropy
xor - x component of mean orientation vector
yor - y component of mean orientation vector
mten - mean tendency
marea - mean area (steradian, multiply by (Radius of earth)^2 to get units of km^2)
stats_track() also outputs other files - to see all of them, pass keep_all_files=True