Example Case ============ The steps to run the testing case are described below. Steps ----- 1 - After install CyTRACK, you can manually run the testing example on your local PC by clonning the CyTRACK repository. .. code:: bash git clone https://github.com/apalarcon/CyTRACK.git 2 - Go to CyTRACK/testing_CyTRACK directory .. code:: bash cd CyTRACK/testing_CyTRACK 3 - Create the directory data/ERA5_data .. code:: bash mkdir data/ERA5_data 4 - The input data is from the ERA5 reanalysis. You can download it from Zenodo (https://doi.org/10.5281/zenodo.10767422) and copy it into `data/ERA5_data` directory. Alternatively, CyTRACK will automatically download the required ERA5 input data. Therefore, be sure you have installed and correctly configured the python CDS API (cdsapi) for data downloading (see How to use the CDS API - Climate Data Store - Copernicus). 5 - Run the example case .. code:: bash mpirun -n 16 python run_CyTRACK.py -pf test_CyTRACK.cfg Testing input file ------------------ The `test_CyTRACK.cfg` input file is presented below. You can use it to run the example case. .. code:: bash #============================================================================================================ #|| +++++++ +++++++ +++++ + +++++++ || #|| + + + + + + + + + || #|| + + + + +++++ +++++ + || #|| + + + + + + + + || #|| +++++++ + + + + + + +++++++ || #|| <-------------------------------------------------------> || #|| Cyclone Tracking Version 1.0.1 || #|| Copyright 2022 || #|| || #|| || #|| CyTRACK Version 1.0.1 is free under the terms of the GNU General Public license || #|| EphysLab (Environmental Physics Laboratory) || #|| Universidade de Vigo || #|| contact: albenis.perez.alarcon@uvigo.es || #|| || #============================================================================================================ #CyTRACK INPUT PARAMETERS. #For details use python python run_CyTrack -cyh t #For run CyTrack use python run_CyTrack.py -pf cytrack_inputs #You can use your own input file following the instructions below #------------------------------------------------------------------------------------------------------------ #Print info during CyTrack runs ["True" / "False"]. Default value ['True'] verbose="True" #Cyclone Type ["TC"/"EC"/"MC"]. cyclone_type="TC" #============================================================================================================ #CyTRACK Source information #============================================================================================================ #Source of data ['WRF' / 'ERA5'] source="ERA5" #source of data for tracking cyclones path_data_source="data/ERA5_data/" #Only for ERA5. The name of era5 files must be like this era_file_prefix_yyyymmdd_hh.nc or era_file_prefix_yyyymmddhh.nc. CyTRACK download ERA5 files if not found it #Prefix in the name of era file. era_file_prefix="uvmslp_ERA5" #Format of the date in ERA5 file ['yyyymmdd_hh' / 'yyyymmddhh'] era_date_file_name='yyyymmdd_hh' #Checking for upper level parameters ['yes' / 'no']. These parameters are for TC and MC checking_upper_levels_parameters="yes" #Get VTL and VTU from linear regression. ["yes" / 'no']. Only if checking_upper_levels_parameters='yes' vtl_vtu_lr='yes' #Distance form storm center to compute cyclone phase space parameters. Only if Checking for upper level parameters = 'yes' max_dist=500 #path to upper level files. Only if source = ERA5 path_data_source_upper="data/ERA5_data" #Prefix for upper levels files. Only if source = ERA5. #The name of era5 upper files must be like this era_upperfile_prefix_yyyymmdd_hh.nc or era_upperfile_prefix_yyyymmddhh.nc #The date format will be the same as era_date_file_name #CyTRACK will automatically download ERA5 upper files if they are not found era_upperfile_prefix="upper_ERA5" #approximate data resolution in km model_res=28 #Search regions ['NA',"SA",'NP',"SP","SI","SA",'NH','SH','GL'] for ECs, ['AL','EP','WP','NI','SI','SP','SA','NH','SH','GL'] for TCs. GL: global scale #NH: North Hemisphere, SH: South Hemisphere search_region="AL" #Search limits in the region [lonmin,latmin,lonmax,latmax] search_limits=[-110,0,5,55] #============================================================================================================ #CyTRACK date configuration #============================================================================================================ #Start date parameters [yyyy mm dd hh] begin_year="2018" begin_month="09" begin_day="01" begin_hour="00" #End date parameters [yyyy mm dd hh] end_year="2018" end_month="09" end_day="30" end_hour="18" #input file time_step, integer desde 1 hasta 6 dt_h=6 #============================================================================================================ #CyTRACK Output file information #============================================================================================================ #path to save CyTRACK outputs path_out="./" #path to save temporal files nedeed for CyTRACK runs tmp_dir="./" #Remove tmp_dir ['yes' / 'no']. Default remove_tmp_dir='yes' remove_tmp_dir="yes" #============================================================================================================ #CyTRACK DEFAUL VALUES FOR TROPICAL CYCLONES (TCs) #============================================================================================================ #Minimum time (time steps) in which the detected cyclone satisfies the thermal structure determined by the cyclone phase space. Only necessary if checking_upper_levels_parameters="yes". #Default value=3. Set core_criteria_length=-99 to match the full trajectory. core_criteria_length=3 #Lower thermal wind threshold (VTL). Only necessary if checking_upper_levels_parameters="yes". #VTL>VTL_threshold. Default VTL_threshold=0 VTL_threshold=0 #Upper thermal wind threshold (VTU). Only necessary if checking_upper_levels_parameters="yes". #VTU7: mapa.plot(lons,lats, color="k", linewidth=1.5, marker='s') index=index+diff+1 plt.savefig("CyTRACK_testing_tracks.png",bbox_inches="tight") .. code:: python python plotting_test_CyTRACK_outputs.py Resulting plot .. image:: _static/CyTRACK_testing_tracks.png :alt: CyTRACK output example :align: center :width: 700px