PseudoNetCDF.camxfiles.finst package

Submodules

PseudoNetCDF.camxfiles.finst.Memmap module

Memmap – finst Memmap interface

class PseudoNetCDF.camxfiles.finst.Memmap.finst(*args, **kwds)[source]

Bases: PseudoNetCDFFile

finst provides a PseudoNetCDF interface for CAMx finst files. Where possible, the inteface follows IOAPI conventions (see www.baronams.com).

ex:
>>> finst_path = 'camx_finst.bin'
>>> finstfile = finst(finst_path)
>>> finstfile.variables.keys()
['TFLAG', 'O3', 'NO', 'NO2', ...]
>>> v = finstfile.variables['V']
>>> tflag = finstfile.variables['TFLAG']
>>> tflag.dimensions
('TSTEP', 'VAR', 'DATE-TIME')
>>> tflag[0,0,:]
array([2005185,       0])
>>> tflag[-1,0,:]
array([2005185,  240000])
>>> v.dimensions
('TSTEP', 'LAY', 'ROW', 'COL')
>>> v.shape
(25, 28, 65, 83)
>>> finstfile.dimensions
{'TSTEP': 25, 'LAY': 28, 'ROW': 65, 'COL': 83}

Initialization included reading the header and learning about the format.

see __readheader and __gettimestep() for more info

chooseGrid(ngrid)[source]

Module contents

finst – Fine UAM-IV File Interfaces