Skip to content

Demonstration of Xarray-based dataset handling and visualization using Matplotlib (PyPlot) for the Osdag project.

Notifications You must be signed in to change notification settings

priyanjall/osdag-xarray-pyplot

Repository files navigation

Osdag Screening Task – Xarray Data Visualization using PyPlot

Overview

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:

  1. Generates a synthetic temperature dataset in NetCDF format
  2. Loads the dataset using Xarray
  3. Produces multiple plots using PyPlot
  4. Saves the plots as image files

Tools and Technologies Used

  • Python
  • Xarray
  • Matplotlib (PyPlot)
  • NumPy
  • Pandas
  • NetCDF4

Project Structure

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


Installation

Install all required dependencies using:

pip install -r requirements.txt


Run the Project

Execute the complete workflow using a single command:

python main.py


Sample Outputs

Monthly Temperature Line Plot
Line Plot

Temperature Distribution (Histogram)
Histogram

Temperature Scatter Plot
Scatter Plot

Temperature Trend with Rolling Average
Rolling Average


Relevance to Osdag

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.


Conclusion

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.

About

Demonstration of Xarray-based dataset handling and visualization using Matplotlib (PyPlot) for the Osdag project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages