-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,38 @@ | ||
# Python scripts for plotting with atm and grid output of MPTRAC | ||
# Python script Examples | ||
|
||
Here we provide some example Python scripts that can be used to plot MPTRAC output. | ||
|
||
## Plotting of atm and grid output of MPTRAC | ||
|
||
Call the python plot scripts with parameter <datadir> and <plotdir> | ||
|
||
python ./plot_atm.py ../example/data pythonplots | ||
|
||
## Library required | ||
Library required | ||
|
||
* scipy-stack | ||
* Cartopy | ||
|
||
sudo apt-get install python3-scipy python3-cartopy | ||
|
||
## Plotting of atm_select and met_map output of MPTRAC | ||
|
||
To plot the data created with atm_select call the python script atm_traj.py using Python3 | ||
|
||
python3 plot_traj.py | ||
|
||
Here, a single trajectory on a map is plotted from the datafile traj_5450.tab provided in the directory data. | ||
|
||
To plot data created with met_map call the python script plot_met_map.py using Python3 | ||
|
||
python3 plot_met_map.py | ||
|
||
Here, three parameters (O3, H2O and temperature) are plotted vs longitude and latitude from the datafile map_era5_2017010817_2_2.tab provided in the directory data. | ||
|
||
The python libraries required to run these scripts are: | ||
|
||
* numpy | ||
* pandas | ||
* xarray | ||
* matplotlib | ||
* Basemap |