You need install Python version 3.8 or higher.
Dependencies:
- cartopy
- cdsapi
- cv2
- dateutil
- global_land_mask
- matplotlib
- numba
- numpy
- pathlib2
- pandas
- scipy
- tqdm
- xarray
Step 1. Register to download the required climate data from the Copernicus Climate Data Store (CDS). To do this, follow the next step-by-step guide:
- Register on CDS
- Login to CDS
- Go to this page and copy the 2 line code displayed in the black box in the "Install the CDS API key" section
- Paste the 2 line code into a %USERPROFILE%.cdsapirc file, where in your windows environment, %USERPROFILE% is usually located at C:\Users\Username folder.
- Install the CDS API client by running the following command in a Command Prompt window:
pip3 install cdsapi
or
pip3 install --user cdsapi - Once the CDS API client is installed, you can use it to query data from datasets listed in the CDS catalogs. You should agree to the Terms of Use for all datasets you intend to download.
Step 2. With our program you can download ERA5 hourly data (mean sea level pressure or sea surface temperature) on single levels from 1979 to present from the CDS. ERA5 is the fifth generation ECMWF reanalysis for the global climate and weather. To download the required climate data, follow these steps:
- Update structure download_ERA5_options in config.py file as per your requirements.
- Run the program with parameter --download. To run from the command line use:
python -m main --download
- --download
- --compute_correlations
- --compute_correlations_and_metrics
- --compute_metrics
- --compute_diff_metrics
- --plot_metrics
There are two plotting modes available:
a. plotting calculated 1D and 2D metrics
b. plotting tropical cyclones (best_track_ecscsuc_2020_m.xls file collected Regional Specialised Meteorological Centre) over metrics - --compute_cyclone_metrics
Computation all-time local mean and std of metrics for each spatial grid cyclone point over time. It is necessary to plot the metric, mean metric and mean plus minus std versus time along the cyclone track.