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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygridsio-0.1.2.tar.gz.
File metadata
- Download URL: pygridsio-0.1.2.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cda6f7824e39bd5237ba952ce0ec6012c8a3896b8e1ecce9717fab3176f7a62e
|
|
| MD5 |
6c62ec4534fa72c32a2686130abafe65
|
|
| BLAKE2b-256 |
103a73bd49e6bf58f4318d1e70fb871cefebb06836e27142b593bc9de70e4916
|
File details
Details for the file pygridsio-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pygridsio-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59541492e79e707ad120d32b8f3a32bed660195134df9164949a66a19c1b484e
|
|
| MD5 |
b8f7910c5334335716654d2f3ef97e2d
|
|
| BLAKE2b-256 |
8c9a500e3874687f4b14947eaae8eed54e6161d9288dc7f829e3a73b815668a8
|