Skip to content

Instantly share code, notes, and snippets.

@AntSimi
Created April 16, 2021 20:17
Show Gist options
  • Save AntSimi/8ef292af97147ad838c7823980f93593 to your computer and use it in GitHub Desktop.
Save AntSimi/8ef292af97147ad838c7823980f93593 to your computer and use it in GitHub Desktop.
Comparison of 2 version of pet for issue 72
set -e
# Path of py eddy tracker code
PWD_PET="/home/tinou/dev/py-eddy-tracker"
cd $PWD_PET
# Get a version at commit ...
# PET is installed with python setup.py develop, so need of installation after checkout
git checkout e7672381b39c32de30a7d2c3c22a30969c8c31e9
cd -
# Create ouput directory
mkdir -p old_version
# Run old version
EddyId \
-v DEBUG --isoline_step 0.002 --fit_err 70 \
$PWD_PET/src/py_eddy_tracker/data/dt_med_allsat_phy_l4_20160515_20190101.nc \
20160515 \
adt \
None \
None \
longitude \
latitude \
old_version/
cd $PWD_PET
git checkout master
cd -
mkdir -p new_version
# Run current version, with a specific sampling to be coherent with old version
EddyId \
-v DEBUG --isoline_step 0.002 --fit_err 70 --sampling 50 --sampling_method uniform \
$PWD_PET/src/py_eddy_tracker/data/dt_med_allsat_phy_l4_20160515_20190101.nc \
20160515 \
adt \
None \
None \
longitude \
latitude \
new_version/
# Run a tools to have a quick summary
# 94 % of eddies occupy same area but few differences which must be investigate
EddyQuickCompare *_version/Anticyclonic_20160515.nc --high 99.99 --low 80 --invalid 50
# [ref] new_version/Anticyclonic_20160515.nc -> 64 obs
# [0] old_version/Anticyclonic_20160515.nc -> 65 obs
# nomatch 50 <= low < 80 intermediate 100 <= high multi_match parent twin complex
# [ 0] 0.0% (0) 3.1% (2) 3.1% (2) 93.8% (60) 0.0% (0) 0.0% (0) 0.0% (0) 0.0% (0)
# Point of view of study dataset
# nomatch 50 <= low < 80 intermediate 100 <= high multi_match parent twin complex
# [ 0] 1.5% (1) 3.1% (2) 3.1% (2) 92.3% (60) 0.0% (0) 0.0% (0) 0.0% (0) 0.0% (0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment