Helper functions for postprocessing and analysis of netCDF data, and preparation for use with pv_atmos