Metadata-Version: 1.0
Name: Puppy
Version: 0.1
Summary: DSL for creating NetCDF files
Home-page: UNKNOWN
Author: Roberto De Almeida
Author-email: roberto@dealmeida.net
License: MIT
Description: A DSL for creating NetCDF files. Here's a simple example::
        
        .. code-block:: python
        
        from pup import *
        
        class Test(NetCDF):
        history = 'Created for a test'
        time = Variable(range(10), units='days since 2008-01-01')
        
        Test.save('simple.nc')
        
        By default it uses pupynere for creating files, but this can be overloaded::
        
        .. code-block:: python
        
        from pynetcdf import netcdf_file
        
        class Test(NetCDF):
        loader = netcdf_file
        ...
        
        A more complex example::
        
        .. code-block:: python
        
        from pup import *
        
        # t1, lon, lat and runoff must be defined before
        
        class Runoff(NetCDF):
        TIME = Variable(t1.astype('d'), record=True,
        long_name='time',
        units=units,
        time_origin='01-JAN-1900 00:00:00',
        axis='T', cartesian_axis='T',
        calendar_type='JULIAN')
        
        grid_x_T = Variable(lon,
        long_name='Nominal Longitude of T-cell center',
        axis='X',
        units='degrees_east')
        
        grid_y_T = Variable(lat,
        long_name='Nominal Latitude of T-cell center',
        axis='Y',
        units='degrees_north')
        
        RUNOFF = Variable(runoff, (TIME, grid_y_T, grid_x_T),
        long_name='water flux: runoff',
        missing_value=f1.variables['FLOW']._FillValue,
        units='(kg/s)/m^2')
        
        Runoff.save('RUNOFF_interannual.nc')
        
        
Keywords: netcdf data array math
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Libraries :: Python Modules
