difference#

Calculate the spatial difference between reference and model datasets.

This script is intended for NetCDF files that represent aggregated fields (such as long-term averages, climatologies, or single-time snapshots), rather than full time series. It loads the reference and model datasets, interpolates the model onto the reference grid, and then computes the difference (reference - model). The result is visualized as a map and, optionally, written to a NetCDF file.

Authors#

  • Jeisson Leal

Classes#

OutputOptions(output_dir, output_file_png, ...)

Output configuration for generated PNG/NetCDF files.

PlotOptions(colorbar_label, title[, cmap, ...])

Plotting options for the difference map.

Functions#

calc_diff(ref_input_dir, mod_input_dir, ...)

Compute long-term mean difference between model and reference datasets and plot the result.