Skip to main content

This is a utility package to read in .zmap and .asc grids to numpy or xarrays

Project description

pygridsio

Introduction

This is a python submodule containing IO functionality for reading and writing .asc and .zmap grids, frequently used within the property modelling and temperature modelling pre- and post- processing codes.

Usage

from pygridsio.pygridsio import read_grid

grid = read_grid(filename)

Installation

Pip

pip install pygridsio

Anaconda virtual environment

Create/update anaconda environment

The file environment.yml can be used to create a working python environment with the needed packages. For this open an Anaconda Prompt and:

conda env create -f environment.yml

Or to update the existing anaconda environment (with an updated version of theenvironment.ymlfile :

conda env update -n pygridsio -f environment.yml

Export (updated) anaconda environment

The environment.yml file needs to be updated when new packages are added:

conda env export --from-history -n pygridsio > environment.yml

Use anaconda environment in PyCharm

To connect the anaconda environment to Pycharm you can go to File , Settings, Project, Python Interpreter, add interpreter, add local interpreter, conda environment and then select the environment you created using the above steps.

Verify Installation

You can verify the installation of the different python packages by running the tests stored in tests. In pycharm: Right click on the folder marked tests and click on Run python tests in test

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

pygridsio-0.1.4.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

pygridsio-0.1.4-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file pygridsio-0.1.4.tar.gz.

File metadata

  • Download URL: pygridsio-0.1.4.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for pygridsio-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c0bdd60e3b06225eaf03c29a3df6e382ad0886243d181834b874c55463b12e73
MD5 c8aa1ad108bd65f835bb2f67f99d1247
BLAKE2b-256 5bcfbfa8d33b539f251e58f0063d5144f5bc46274da92ba5f910d285edb53a60

See more details on using hashes here.

File details

Details for the file pygridsio-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pygridsio-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for pygridsio-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 025cf94995374125d75d54267ef994ade40becb49655e8c9ec479f1bd8108294
MD5 ecf6a2598bc3567bce7388754e229dac
BLAKE2b-256 9eb13a87662b764a48586df83bf84836cb7a22cde517fdc11b341cb7fd6dee8f

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