.. regionmask documentation file, created by sphinx-quickstart on Wed Jul 20 14:36:54 2016. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. .. image:: logo/logo.png :width: 500 px :align: center create masks of geospatial regions ================================== Determine which geographic region each grid point belongs to. When working with gridded data such as climate model output or reanalysis data it is often important to create regional averages, e.g., over countries, continents or regions defined in the literature. To do so we need to know for each grid point to which region it belongs to. **regionmask** is a python package that: - can be used to create *masks* of (geo)spatial *regions* for arbitrary (longitude and latitude) grids. These masks indicate which region a gridpoint belongs to and can then be used to aggregate gridded data over the regions. The masks come in three variants: - :doc:`2D integer masks` - :doc:`3D boolean masks` - :doc:`3D approximate fractional mask` - takes great care to create consistent masks for - :doc:`region edges and interiors` - :doc:`overlapping regions` - contains a number of defined regions, including: - :doc:`countries` - :doc:`landmasks` - :doc:`regions used in the scientific literature` - can :doc:`plot figures of these regions` - supports using arbitrary existing or user-defined region definitions: - regions defined as shapefiles can be :doc:`accessed via geopandas` - :doc:`user-defined regions` can be created via numpy or shapely .. toctree:: :maxdepth: 2 :hidden: :caption: Getting Started installation .. toctree:: :maxdepth: 2 :hidden: :caption: Usage: Tutorials notebooks/plotting notebooks/mask_2D notebooks/mask_3D notebooks/mask_3D_frac_approx notebooks/detect_coords notebooks/geopandas notebooks/create_own_regions notebooks/overlap intake_regionmask .. toctree:: :maxdepth: 2 :hidden: :caption: Defined Regions defined_countries defined_landmask defined_ocean_basins defined_scientific .. toctree:: :maxdepth: 2 :hidden: :caption: Methods notebooks/method notebooks/method_mask_3D_frac_approx .. toctree:: :maxdepth: 2 :hidden: :caption: API Reference changelog api License ------- regionmask is published under a MIT license. Indices and tables ------------------ * :ref:`genindex` * :ref:`search`