credit.grid
===========

.. py:module:: credit.grid


Attributes
----------

.. autoapisummary::

   credit.grid.grid_file


Functions
---------

.. autoapisummary::

   credit.grid.scrip_from_latlon_grid


Module Contents
---------------

.. py:function:: 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 https://github.com/SCRIP-Project/SCRIP/blob/master/SCRIP/doc/SCRIPusers.pdf for
   details about SCRIP and

   :param lons: 1D array of longitudes
   :param lats: 1D array of latitudes
   :param grid_name: Name of the output grid map
   :param grid_file: path to netCDF file containing the grid information

   :returns: xr.Dataset containing grid information in SCRIP format.
   :rtype: scrip_ds


.. py:data:: grid_file
   :value: '/glade/derecho/scratch/kjmayer/CREDIT_runs/S2Socnlndatm_MLdata/AIWQ_inits/b.e21.CREDIT_climate_b...


