Home | Trees | Index | Help |
---|
Package atmopy :: Package io :: Module binary |
|
Function Summary | |
---|---|
(list of datetime, numpy.array) |
Filters data based on the cells and the days to be discarded according to a given configuration. |
int |
Gets a file's size. |
int |
Gets the number of timesteps in a file given its record length (in Bytes). |
numpy.array |
Loads a binary file into an array using specified shape. |
numpy.array |
Loads a binary file into an array using specified 3D shape for X, Y and T dimensions (a time sequence of planes). |
Saves a numpy in a binary file using specified type. |
Function Details |
---|
filter_config(config, data)Filters data based on the cells and the days to be discarded according to a given configuration.
|
get_filesize(filename)Gets a file's size.
|
get_timesteps(filename, recordLength)Gets the number of timesteps in a file given its record length (in Bytes).
|
load_binary(filename, shape, type='f')Loads a binary file into an array using specified shape. Returns numpy.
|
load_binary_first_level(filename, shape, type='f')Loads a binary file into an array using specified 3D shape for X, Y and T dimensions (a time sequence of planes). If the given binary file is a 4D file (XYZT), the plane Z = 1 is extracted.
|
save_binary(arrayToSave, filename, type='f')Saves a numpy in a binary file using specified type.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue May 19 10:37:13 2009 | http://epydoc.sf.net |