This project demonstrates how to load, process, and visualize a scientific dataset using Xarray and Matplotlib (PyPlot).
It was developed as part of the screening task for the FOSSEE Osdag Spring Semester Long Internship – 2026 under the Software Development category.
The program performs the following steps automatically:
- Generates a synthetic temperature dataset in NetCDF format
- Loads the dataset using Xarray
- Produces multiple plots using PyPlot
- Saves the plots as image files
- Python
- Xarray
- Matplotlib (PyPlot)
- NumPy
- Pandas
- NetCDF4
osdag-xarray-pyplot/
├── data/ │ └── dataset_generator.py ├── plots/ │ ├── line_plot.png │ ├── histogram.png │ ├── scatter_plot.png │ └── rolling_avg_plot.png ├── plot_xarray.py ├── main.py ├── requirements.txt └── README.md
Install all required dependencies using:
pip install -r requirements.txt
Execute the complete workflow using a single command:
python main.py
Temperature Distribution (Histogram)

Temperature Trend with Rolling Average

This visualization workflow can be integrated into Osdag for post-processing engineering datasets such as load histories, stress variations, or time-dependent structural responses.
Automated Xarray-based plotting helps engineers quickly analyze simulation results, identify trends, and support data-driven design decisions.
This project demonstrates a clean and reproducible workflow for scientific data visualization using Xarray and PyPlot. The modular structure and automated plotting approach align well with the goals of engineering software systems like Osdag.

