Presently, we create an xarray data set before caching climatologies in many MPAS-Analysis tasks. If the climatology is already fully cached, opening the xarray data set is a potentially time consuming, unnecessary step.
Presumably, the only information needed to determine whether the cached data is complete is the start and end time of the cached data and the start and end time of the data set to be cached. Reading the full data set (even in xarray, where only a minimum of information is read in from each file in the data set) is potentially a major waste of time.
It would be good to have a method for determining which data is already cached and to ready only those data files that are needed to compute uncached data. If all data is cached, none of the original output files would be read at all.
Presently, we create an xarray data set before caching climatologies in many MPAS-Analysis tasks. If the climatology is already fully cached, opening the xarray data set is a potentially time consuming, unnecessary step.
Presumably, the only information needed to determine whether the cached data is complete is the start and end time of the cached data and the start and end time of the data set to be cached. Reading the full data set (even in xarray, where only a minimum of information is read in from each file in the data set) is potentially a major waste of time.
It would be good to have a method for determining which data is already cached and to ready only those data files that are needed to compute uncached data. If all data is cached, none of the original output files would be read at all.