struc_array | index /users/schrei_f/src/py4CAtS/lite/src/struc_array.py |
Structured arrays --- some convenience functions to read and manipulate:
loadStrucArray: Read a tabular ascii file and return a structured array
strucArrayChangeNames: Change field names of some entries of a structured array
strucArrayExtractFields: Extract some field entries of a structured array
strucArrayDeleteFields: Delete some field entries of a structured array
strucArrayAddField: Add a new field (data array) to a structured array
dict2strucArray: Transform a dictionary of arrays into a structured numpy array
Documentation:
http://docs.scipy.org/doc/numpy/user/basics.rec.html
http://www.scipy.org/Cookbook/Recarray
Example:
atm=loadStrucArray('midLatSummer.xy', -2, changeNames={'pressure':'p', 'temperature':'T'})
Functions | ||
|