Puppy 0.1
pip install Puppy==0.1
Newer version available (0.1.8)
Released:
DSL for creating NetCDF files
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Roberto De Almeida
- Tags netcdf , data , array , math
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
A DSL for creating NetCDF files. Here’s a simple example:
from pup import * class Test(NetCDF): # NC_GLOBAL attributes go here history = 'Created for a test' # dimensions need to be set explicitly only when they # have no variable associated with them dim0 = Dimension(2) # variables that don't specify dimensions are assumed to # be their own dimension time = Variable(range(10), record=True, units='days since 2008-01-01') # now a regular variable temperature = Variable(range(10), (time,), units='deg C') Test.save('simple.nc')
This will produce the following NetCDF file:
netcdf simple { dimensions: dim0 = 2 ; time = UNLIMITED ; // (10 currently) variables: int time(time) ; time:units = "days since 2008-01-01" ; int temperature(time) ; temperature:units = "deg C" ; // global attributes: :history = "Created for a test" ; data: time = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ; temperature = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ; }
By default it uses pupynere for creating files, but this can be overloaded:
from pynetcdf import netcdf_file class Test(NetCDF): loader = netcdf_file ...
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Roberto De Almeida
- Tags netcdf , data , array , math
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
File details
Details for the file Puppy-0.1.tar.gz
.
File metadata
- Download URL: Puppy-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e43f5a698a220c1260aca375f76d4176e38343022568dc4e2273df96ea1c02ee
|
|
MD5 |
15d0f055f28627ab2d961cb555167693
|
|
BLAKE2b-256 |
0a218af780e3ce5065f157f59e3b3884db1c1a6f75d7383d03ff430da1473846
|
File details
Details for the file Puppy-0.1-py2.6.egg
.
File metadata
- Download URL: Puppy-0.1-py2.6.egg
- Upload date:
- Size: 3.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9eff82d7556f03dca843ca388d163c13c763435131d0f0019a28482f12489ac5
|
|
MD5 |
d4c4fd37480615df6575f79d73b77a86
|
|
BLAKE2b-256 |
dd220093835136d8abc255e1a2fbbd2996431009f98b956f93187323122ea082
|