Skip to content
Snippets Groups Projects
Commit 68989554 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Polish

parent c40ee70c
No related branches found
No related tags found
No related merge requests found
% This is a Matlab script. This script converts to Matlab v6 format
% some output of TOEddies: what is necessary for the script
% some output of TOEddies: id_child, which is necessary for the script
% overlap_v6.py.
clear
......
......@@ -2,11 +2,11 @@
"""Converts adt_YYYY-MM-DD.mat files to two collections of shapefiles,
SHPC_anti and SHPC_cyclo. The mat files are assumed to be in v7.3
(HDF5) format and will be converted to v6 format before being read in
Python. The data in each input file is the set of detected
instantaneous eddies at a given date. The second, optional, argument
of this script is the final date processed. The script inst_eddies.m
must be in the current directory at run-time.
(HDF5) format and will be converted to v6 format, launching Matlab,
before being read in Python. The data in each input file is the set of
detected instantaneous eddies at a given date. The second, optional,
argument of this script is the final date processed. The script
inst_eddies.m must be in the current directory at run-time.
"""
......
% This is a Matlab script. This script converts to Matlab v6 format
% some output of TOEddies: part of what is necessary for the script
% overlap_v6.py.
% some output of TOEddies: Nanti, date_num and Ncyclo, which are
% necessary for the script overlap_v6.py.
disp('Processing Parameters_Anticyclonic_Eddies...')
load('Parameters_Anticyclonic_Eddies.mat', 'Nanti', 'date_num')
......
......@@ -27,7 +27,7 @@ def adjust_n(n_Matlab):
return n_Matlab + (k - k_Matlab) * e_overestim
if __name__ == "__main__":
n_files = input("Number of files = ? ")
n_files = input("Number of input files id_child_*.mat? ")
n_files = int(n_files)
id_child_list = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment