Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathause/netcdf4p
allow coordinate subscripting in netcdf4-python
https://github.com/mathause/netcdf4p
Last synced: about 1 month ago
JSON representation
allow coordinate subscripting in netcdf4-python
- Host: GitHub
- URL: https://github.com/mathause/netcdf4p
- Owner: mathause
- License: mit
- Created: 2014-12-16T08:28:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T14:13:49.000Z (almost 7 years ago)
- Last Synced: 2024-10-14T09:41:14.908Z (3 months ago)
- Language: Python
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.md
Awesome Lists containing this project
README
netCDF4p
========Wrapper around python-netCDF4 that allows Coordinate subscripting, similar to NCL.
What's new
---------
- version 0.1.0It has the full capability of python-netCDF4 *plus* allows coordinate subsetting. This is how you use it::
import netCDF4p as ncp
# open netCDF file
ncf = nc.Dataset('file.nc')
# given the variable Temperature has the dimensions | time x lat x lon |
# you can select a region that conforms to 0° to 30°N and 0° to 20° E like so:
ncf.variables['Temperature'][:, {0, 30}, {0, 20}]
# coordinate selections can also be made passing a dict ('named argument')
ncf.variables['Temperature'][:, {'lat' : (0, 30), 'lon' : (0, 20)}]What's new
----------
- version 0.1.1
- relax netCDF4 requirements- version 0.1.0
- check in for freezeFeatures
--------- Everything netCDF4 allows
- Coordinate subsetting by positional argument.
- Coordinate subsetting by named (dict) argument.Installation
------------Not published on PyPy (yet). Install netCDF4p directly from GitHub:
pip install git+git://github.com/mathause/netCDF4p.git
Contribute
----------- Issue Tracker: github.com/mathause/netCDF4p/issues
- Source Code: github.com/mathause/netCDF4pSupport
-------If you are having issues, please let us know.
Please use the Issue Tracker: github.com/mathause/netCDF4p/issuesLicense
-------The project is licensed under the MIT license.