Skip to main content

A grid for spatial multidimensional processing

Project description

DOI Python 3.6 Python 3.7

agrid

A grid for modelling, analyse, map and visualise multidimensional and multivariate data. The module contains a class for generating grid objects with variables and functions that defines a multidimensional space with defined extent.

Main features:

  • Labelled dimensions coordinates using xarray
  • Fast process of high resolution and low resolution data
  • Using dask arrays
  • 2D map plots and cross-sections
  • 3D visualisation
  • Features for modelling, analysis and visualisation

The repository contains:

  • Module with class for functions and variables.
  • Jupyter notebook tutorials:
    1. The grid object
    1. Import data
    1. Visualize data
    1. Introduction to processing and modelling using grid.

Software paper availible here: JORS


Instructions:

The package can be installed by adding it to your Python path, but can also be an incorporated part of you project.

Alternative 1 Using pip: pip install agrid or pip3 install agrid

Set up an envirinment for the installation. Use e.g. virtualenv or venv to set up your environment. For more complex isnallations, have a look at pipenv or poetry.

OSX users can set up an environment directely in conda.

conda install -c tobbetripitaka agrid

Alternative 2 Download module and import agrid from local path

See example in the Jupyter Notebook agrid.


To get started:

from agrid.grid import Grid
world = Grid()
# The grid is already populated with default coordinates
print(world.ds) 

Further tutorials are available at GitHub tutorials

Methods to import data

Data can be imported from grids, vector data files, rasters or numerically.

Methods to export data

Data can be exported and saved as netCDF, raster files, text files.

Methods to visualise data

Visualisation is not the core use of agrid, but it contains basic functions to plot maps and 3D renderings.

Additional functions

Additional functions are included to download data and structure the content.

---

If used in publication, please cite:

@article{Staal2020a,
abstract = {Researchers use 2D and 3D spatial models of multivariate data of differing resolutions and formats. It can be challenging to work with multiple datasets, and it is time consuming to set up a robust, performant grid to handle such spatial models. We share 'agrid', a Python module which provides a framework for containing multidimensional data and functionality to work with those data. The module provides methods for defining the grid, data import, visualisation, processing capability and export. To facilitate reproducibility, the grid can point to original data sources and provides support for structured metadata. The module is written in an intelligible high level programming language, and uses well documented libraries as numpy, xarray, dask and rasterio.},
author = {St{\aa}l, Tobias and Reading, Anya M.},
doi = {10.5334/JORS.287},
issn = {20499647},
journal = {Journal of Open Research Software},
keywords = {Multivariate processing, Python, Regular grid, Spatial model},
month = {jan},
number = {1},
pages = {1--10},
publisher = {Ubiquity Press, Ltd.},
title = {{A grid for multidimensional and multivariate spatial representation and data processing}},
volume = {8},
year = {2020}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agrid-0.3.9.3.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agrid-0.3.9.3-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file agrid-0.3.9.3.tar.gz.

File metadata

  • Download URL: agrid-0.3.9.3.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for agrid-0.3.9.3.tar.gz
Algorithm Hash digest
SHA256 c18c72beff2d43c691f58115994f15524000d382a8130442ac3fc90c9c85abc3
MD5 2cb954110e28db1018fa1891ae9e96bb
BLAKE2b-256 5c51bca1fa3f5019f4532f061f0ef4433937bb3649d14e61dfb1f8044d7079ae

See more details on using hashes here.

File details

Details for the file agrid-0.3.9.3-py3-none-any.whl.

File metadata

  • Download URL: agrid-0.3.9.3-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for agrid-0.3.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c3196b096fa82060bacb612131e5aef4a3be9224988485ba73600d146870cdd5
MD5 01afe0e74d5ce60829148e54e0876141
BLAKE2b-256 a38ffde3ff25ee256978d1ab4708c19adc01f2d4c2d08b76f0bb015408935141

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page