ptypy.io.rawIO.rawread#
- ptypy.io.rawIO.rawread(filename, doglob=None, roi=None)#
- d,meta = rawread(filename)
reads array in CDF file filename and returns it as a numpy array, along with metadata (from header). d and meta are lists if filename is a list of file names.
- … = rawread(filename, doglob=True)
reads all matching files if filename contains unix-style wildcards, and returns lists.
- … = rawread(filename, doglob=False)
ignores wildcards
- … = rawread(filename, doglob=None) [default]
behaves like doglob=True, except that it returns a list only if filename contains wildcards, while doglob=True always returns a list, even if there is only one match.
- … = rawread(filename, roi=(RowFrom, RowTo, ColumnFrom, ColumnTo))
returns a region of interest (applied on all files if gobbing or if filename is a list)