Jupyter & Python Notebooks in Eclipse

This tutorial demonstrates using Python to automate extraction from NetCDF files inside Eclipse:

import xarray as xr
import matplotlib.pyplot as plt

# Open NetCDF dataset using xarray
ds = xr.open_dataset("/path/to/AROME_Albania_2500m_2018081918.nc")

# Extract surface relative humidity at time=0
rh = ds['relative_humidity_2m'].isel(time=0, height1=0)

# Compute spatial summary statistics
print(f"Mean RH: {rh.mean().values:.2f}%")
print(f"Min RH:  {rh.min().values:.2f}%")
print(f"Max RH:  {rh.max().values:.2f}%")