extract-model


Nameextract-model JSON
Version 1.4.0 PyPI version JSON
download
home_pagehttps://github.com/axiom-data-science/extract_model
SummaryFacilitates read-in and extraction for ocean model output.
upload_time2023-11-06 23:30:09
maintainer
docs_urlNone
authorKristen Thyng
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            extract_model
==============================
[![Build Status](https://img.shields.io/github/actions/workflow/status/axiom-data-science/extract_model/test.yaml?branch=main&logo=github&style=for-the-badge)](https://github.com/axiom-data-science/extract_model/actions/workflows/test.yaml)
[![Code Coverage](https://img.shields.io/codecov/c/github/axiom-data-science/extract_model.svg?style=for-the-badge)](https://codecov.io/gh/axiom-data-science/extract_model)
[![License:MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
[![Documentation Status](https://img.shields.io/readthedocs/extract_model/latest.svg?style=for-the-badge)](https://extract_model.readthedocs.io/en/latest/?badge=latest)
[![Code Style Status](https://img.shields.io/github/actions/workflow/status/axiom-data-science/extract_model/linting.yaml?branch=main&label=Code%20Style&style=for-the-badge)](https://github.com/axiom-data-science/extract_model/actions/workflows/linting.yaml)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/extract_model.svg?style=for-the-badge)](https://anaconda.org/conda-forge/extract_model)
[![Python Package Index](https://img.shields.io/pypi/v/extract_model.svg?style=for-the-badge)](https://pypi.org/project/extract_model)

Facilitates read-in and extraction for ocean model output. Most functions work on both structured and unstructured model output. Unstructured functionality has been tested with FVCOM and SELFE output.

In particular this package can:
- interpolate a model time series to a longitude, latitude location on a 2D grid, while bringing along the calculated z coordinates, with `select()`
 - saves the weights of the interpolation to save time in the accessor if used, or allows user to input
 - uses [`xESMF`](https://pangeo-xesmf.readthedocs.io/en/latest/index.html) for fast interpolation that respects longitude/latitude grids
- find the nearest grid point to a longitude, latitude location on a horizontal grid (structured or unstructured) in `sel2d()` using [`xoak`](https://xoak.readthedocs.io/en/latest/index.html)
 - `xoak` saves the calculated index so that subsequent searches are faster
- select a sub-region of a structured or unstructured grid in two ways with `sub_bbox()` and `sub_grid()`
- has an `xarray` accessor for convenient access to methods
- uses `cf-xarray` to understand `xarray` Dataset metadata and allow for generic axis and coordinate names as well as calculate vertical coordinates
- can preprocess a variety of model output types (including ROMS, HYCOM, POM, and FVCOM) to improve metadata and ease of use

> :warning: **If you are using Windows**: Horizontal interpolation currently will not work in `extract_model` until `xESMF` is installable on Windows. Other functions will work.

--------

<p><small>Project based on the <a target="_blank" href="https://github.com/jbusecke/cookiecutter-science-project">cookiecutter science project template</a>.</small></p>

## Installation

### From conda-forge

This will install for all operating systems:
``` bash
conda install -c conda-forge extract_model
```
but it includes only minimal requirements. If you want to install packages to run the example docs notebooks and to make unstructured grid subsetting faster, you can additionally install for Windows:

``` bash
$ conda install --file conda-requirements-opt-win.txt
```

For running the example docs notebooks, horizontal interpolation (with `xESMF`), and to make horizontal subsetting faster, install additional packages for Mac and Linux:

``` bash
$ conda install --file conda-requirements-opt.txt
```

### From PyPI

``` bash
pip install extract_model
```

### With environment

Clone the repo:
``` bash
$ git clone https://github.com/axiom-data-science/extract_model.git
```

In the `extract_model` directory, install conda environment (for Mac or Linux):
``` bash
$ conda env create -f environment.yml
```
or for Windows:
``` bash
$ conda env create -f environment-win.yml
```

### Local

For local package install, after cloning the repository, in the `extract_model` directory:
``` bash
$ pip install -e .
```

### Development

To also develop this package, install additional packages with:
``` bash
$ conda install --file requirements-dev.txt
```

To then check code before committing and pushing it to github, locally run
``` bash
$ pre-commit run --all-files
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/axiom-data-science/extract_model",
    "name": "extract-model",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Kristen Thyng",
    "author_email": "kristen@axds.co",
    "download_url": "https://files.pythonhosted.org/packages/61/61/434a7fee0c483dee0c100be2fad779cd501bc7d9f3c42a75057e3aa7fefb/extract_model-1.4.0.tar.gz",
    "platform": null,
    "description": "extract_model\n==============================\n[![Build Status](https://img.shields.io/github/actions/workflow/status/axiom-data-science/extract_model/test.yaml?branch=main&logo=github&style=for-the-badge)](https://github.com/axiom-data-science/extract_model/actions/workflows/test.yaml)\n[![Code Coverage](https://img.shields.io/codecov/c/github/axiom-data-science/extract_model.svg?style=for-the-badge)](https://codecov.io/gh/axiom-data-science/extract_model)\n[![License:MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n[![Documentation Status](https://img.shields.io/readthedocs/extract_model/latest.svg?style=for-the-badge)](https://extract_model.readthedocs.io/en/latest/?badge=latest)\n[![Code Style Status](https://img.shields.io/github/actions/workflow/status/axiom-data-science/extract_model/linting.yaml?branch=main&label=Code%20Style&style=for-the-badge)](https://github.com/axiom-data-science/extract_model/actions/workflows/linting.yaml)\n[![Conda Version](https://img.shields.io/conda/vn/conda-forge/extract_model.svg?style=for-the-badge)](https://anaconda.org/conda-forge/extract_model)\n[![Python Package Index](https://img.shields.io/pypi/v/extract_model.svg?style=for-the-badge)](https://pypi.org/project/extract_model)\n\nFacilitates read-in and extraction for ocean model output. Most functions work on both structured and unstructured model output. Unstructured functionality has been tested with FVCOM and SELFE output.\n\nIn particular this package can:\n- interpolate a model time series to a longitude, latitude location on a 2D grid, while bringing along the calculated z coordinates, with `select()`\n - saves the weights of the interpolation to save time in the accessor if used, or allows user to input\n - uses [`xESMF`](https://pangeo-xesmf.readthedocs.io/en/latest/index.html) for fast interpolation that respects longitude/latitude grids\n- find the nearest grid point to a longitude, latitude location on a horizontal grid (structured or unstructured) in `sel2d()` using [`xoak`](https://xoak.readthedocs.io/en/latest/index.html)\n - `xoak` saves the calculated index so that subsequent searches are faster\n- select a sub-region of a structured or unstructured grid in two ways with `sub_bbox()` and `sub_grid()`\n- has an `xarray` accessor for convenient access to methods\n- uses `cf-xarray` to understand `xarray` Dataset metadata and allow for generic axis and coordinate names as well as calculate vertical coordinates\n- can preprocess a variety of model output types (including ROMS, HYCOM, POM, and FVCOM) to improve metadata and ease of use\n\n> :warning: **If you are using Windows**: Horizontal interpolation currently will not work in `extract_model` until `xESMF` is installable on Windows. Other functions will work.\n\n--------\n\n<p><small>Project based on the <a target=\"_blank\" href=\"https://github.com/jbusecke/cookiecutter-science-project\">cookiecutter science project template</a>.</small></p>\n\n## Installation\n\n### From conda-forge\n\nThis will install for all operating systems:\n``` bash\nconda install -c conda-forge extract_model\n```\nbut it includes only minimal requirements. If you want to install packages to run the example docs notebooks and to make unstructured grid subsetting faster, you can additionally install for Windows:\n\n``` bash\n$ conda install --file conda-requirements-opt-win.txt\n```\n\nFor running the example docs notebooks, horizontal interpolation (with `xESMF`), and to make horizontal subsetting faster, install additional packages for Mac and Linux:\n\n``` bash\n$ conda install --file conda-requirements-opt.txt\n```\n\n### From PyPI\n\n``` bash\npip install extract_model\n```\n\n### With environment\n\nClone the repo:\n``` bash\n$ git clone https://github.com/axiom-data-science/extract_model.git\n```\n\nIn the `extract_model` directory, install conda environment (for Mac or Linux):\n``` bash\n$ conda env create -f environment.yml\n```\nor for Windows:\n``` bash\n$ conda env create -f environment-win.yml\n```\n\n### Local\n\nFor local package install, after cloning the repository, in the `extract_model` directory:\n``` bash\n$ pip install -e .\n```\n\n### Development\n\nTo also develop this package, install additional packages with:\n``` bash\n$ conda install --file requirements-dev.txt\n```\n\nTo then check code before committing and pushing it to github, locally run\n``` bash\n$ pre-commit run --all-files\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Facilitates read-in and extraction for ocean model output.",
    "version": "1.4.0",
    "project_urls": {
        "Homepage": "https://github.com/axiom-data-science/extract_model"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dfa72b240b11ea2dc5903ef8f0bf5922e40fc13e4018a48a54bd41abe37ff5a2",
                "md5": "4b1623267f23bdf9dae7d90b4d9bf283",
                "sha256": "c90d36cabc52cb32b220808a6256ceb35ab73e5427d4b8cca9e3dfa220c6fc26"
            },
            "downloads": -1,
            "filename": "extract_model-1.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4b1623267f23bdf9dae7d90b4d9bf283",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 51162,
            "upload_time": "2023-11-06T23:30:07",
            "upload_time_iso_8601": "2023-11-06T23:30:07.635537Z",
            "url": "https://files.pythonhosted.org/packages/df/a7/2b240b11ea2dc5903ef8f0bf5922e40fc13e4018a48a54bd41abe37ff5a2/extract_model-1.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6161434a7fee0c483dee0c100be2fad779cd501bc7d9f3c42a75057e3aa7fefb",
                "md5": "9bee9cdd98fd02f4c072272e7c62fe52",
                "sha256": "bec1c07c21984a67d640b550c9b2f0bc474dbb7daf9b6dbc030537b3e32d0a57"
            },
            "downloads": -1,
            "filename": "extract_model-1.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9bee9cdd98fd02f4c072272e7c62fe52",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5540168,
            "upload_time": "2023-11-06T23:30:09",
            "upload_time_iso_8601": "2023-11-06T23:30:09.697707Z",
            "url": "https://files.pythonhosted.org/packages/61/61/434a7fee0c483dee0c100be2fad779cd501bc7d9f3c42a75057e3aa7fefb/extract_model-1.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-06 23:30:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "axiom-data-science",
    "github_project": "extract_model",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "extract-model"
}
        
Elapsed time: 0.13740s