gcpy.regrid_restart_file
- gcpy.regrid_restart_file(input_restart, regrid_weights, output_restart_template, stretch_factor=None, target_lat=None, target_lon=None)[source]
Perform an end-to-end regridding from reading input gridded data and regridding weights to writing out the regridded data.
- Parameters:
input_restart (
str) – The path to the restart file that will be regridded.regrid_weights (
str) – The path to the regridding weights, generated by ESMF_RegridWeightGen.output_restart_template (
str) – The path to the regridding output template file.stretch_factor (
float, optional) – An optional stretch factor, for use with stretched-regridding.target_lat (
float, optional) – An optional target latitude, for use with stretched-regridding.target_lon (
float, optional) – An optional target longitude, for use with stretched-regridding.