cordex.create_dataset

Contents

cordex.create_dataset#

create_dataset(nlon, nlat, dlon, dlat, ll_lon, ll_lat, pollon=None, pollat=None, name=None, domain_id=None, dummy=False, add_vertices=False, attrs=None, mapping_name=None, bounds=False, mip_era='CMIP5', cell_area=False, **kwargs)[source]#

Create domain dataset from grid information.

Parameters:
  • nlon (int) – longitudal number of grid boxes

  • nlat (int) – latitudal number of grid boxes

  • dlon (float) – longitudal resolution (degrees)

  • dlat (float) – latitudal resolution (degrees)

  • ll_lon (float) – lower left longitude (degrees)

  • ll_lat (float) – lower left latitude (degrees)

  • pollon (float) – pol longitude (degrees)

  • pollat (float) – pol latitude (degrees)

  • domain_id (str) – Domain identifier, goes into the CORDEX_domain or domain_id global attribute.

  • dummy (str or logical) – Name of dummy field, if dummy=topo, the cdo topo operator will be used to create some dummy topography data. dummy data is useful for looking at the domain with ncview.

  • attrs (str or dict) – Global attributes that should be added to the dataset. If attrs=’CORDEX’ a set of standard CF global attributes.

  • mapping_name (str) – Variable name of the grid mapping, if mapping_name is None, the CF standard variable name is used.

  • bounds (bool) – Add spatial bounds to longitude and latitude coordinates.

  • mip_era (str) – The mip_era keyword determines the vocabulary for dimensions, coordinates and attributes.

Returns:

Grid (Dataset) – Dataset containing a CORDEX grid.