WAOUH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from netCDF4 import Dataset | |
from matplotlib import pyplot as plt | |
with Dataset('trackeddy_V1-0_global_eddies.nc') as h: | |
# with Dataset('http://dapds00.nci.org.au/thredds/dodsC/ks32/CLEX_Data/TrackEddy_eddies/v1-0/netcdf/trackeddy_V1-0_global_eddies.nc') as h: | |
# Variable | |
time = h.variables["time"][:] | |
neddy = h.variables["neddy"][:] | |
longitude = h.variables["center_mass_loc_x"][:] | |
latitude = h.variables["center_mass_loc_y"][:] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from py_eddy_tracker.observations.tracking import TrackEddiesObservations | |
from matplotlib import pyplot as plt | |
from numpy import arange | |
def hist_axes(title="", xlabel="", xlim=None, ylim=None): | |
figure = plt.figure(figsize=(16, 7)) | |
figure.suptitle(title, y=0.92) | |
axes_a = figure.add_subplot(121) | |
axes_c = figure.add_subplot(122) | |
axes_a.set_title("Anticyclonic eddies") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |