credit.grid#

Attributes#

Functions#

scrip_from_latlon_grid(lons, lats, grid_name, grid_file)

Generate a SCRIP netCDF file defining the centers and corners of each element in a latitude-longitude grid.

Module Contents#

credit.grid.scrip_from_latlon_grid(lons, lats, grid_name, grid_file)#

Generate a SCRIP netCDF file defining the centers and corners of each element in a latitude-longitude grid. This function supports both equiangular lat-lon grids and full Gaussian grids.

SCRIP is a legacy software package for regridding model output. The SCRIP grid format is supported by ESMF for regridding definitions. See SCRIP-Project/SCRIP for details about SCRIP and

Parameters:
  • lons – 1D array of longitudes

  • lats – 1D array of latitudes

  • grid_name – Name of the output grid map

  • grid_file – path to netCDF file containing the grid information

Returns:

xr.Dataset containing grid information in SCRIP format.

Return type:

scrip_ds

credit.grid.grid_file = '/glade/derecho/scratch/kjmayer/CREDIT_runs/S2Socnlndatm_MLdata/AIWQ_inits/b.e21.CREDIT_climate_b...#