In our previous classes, we covered the topic of handling NetCDF data. If you missed the session, you can catch up on it by visiting our website at https://theaireenproject.com/category/python-classes/.
Today, we will explore how to load data in Python from both CSV and XLSX formats. We'll also delve into creating contour fill plots, contour line plots, and explore various ways to customize our plots
The notebook (Plot_from_table_data.ipynb) can be accessed via the ClimoMarineLab's GitHub repository here: https://github.com/akashspunnayil/ClimoMarineLab/tree/main/Python
1. Install necessary packages, if not pre-installed

2. Load packages

3. Create a sample dummy data
Note: Please note that you can use your own data instead of creating a dummy data and you can skip this step

4. Check the loaded data

5. Load table data, read variables and reshape them to plot

6. Plot contour fill


7. Plot contour line


8. Some plot customisations


Today's class was tailored to the request of our friend.
"Thank you for your tutorials on python coding.
-- Mr. Anand M Vijayan, Research Scholar at KUFOS (Kerala University of Fisheries and Ocean Studies).
I want to know how to do a spatial plot using .CSV file.
Please do it as next class"
Happy coding!
Cheers!
Subscribe, share and comment.
Stay subscribed for more classes.
No comments:
Post a Comment