ARCDR
Module Contents
Functions
|
Wrapper function for reading ADF or RDF files |
|
Determine length of header and path to ADF or RDF file |
|
Parse ADF data file. |
|
Parse RDF data file. |
|
Convert VAX floating point numbers to IEEE 754. |
- ARCDR.readARCDR(lbl)
Wrapper function for reading ADF or RDF files
- Parameters:
lbl (string) – PDS label file for ADF or RDF file
- Returns:
Tuple with dict containing header information and structured array containing ADF or RDF file data
- Return type:
(dict, np.ndarray)
- ARCDR.getFileHdr(lbl)
Determine length of header and path to ADF or RDF file
- Parameters:
lbl (string) – PDS label file for ADF or RDF file
- Returns:
Tuple containing path to ADF or RDF file and length of file header
- Return type:
(string, int)
- ARCDR.parseADF(file, hdr)
Parse ADF data file.
- Parameters:
file (string) – Path to ADF data file
hdr (int) – Length of ADF data file header in bytes
- Returns:
Tuple with dict containing header information, nodata mask, and structured array containing ADF file data
- Return type:
(dict, np.ndarray, np.ndarray)
- ARCDR.parseRDF(file, hdr)
Parse RDF data file.
- Parameters:
file (string) – Path to RDF data file
hdr (int) – Length of RDF data file header in bytes
- Returns:
Tuple with dict containing header information, nodata mask, and structured array containing RDF file data
- Return type:
(dict, np.ndarray, np.ndarray)
- ARCDR.vax2ieee(vax)
Convert VAX floating point numbers to IEEE 754.
- Parameters:
vax (np.ndarray) – Array of VAX floats to convert
- Returns:
Array of IEEE 754 floats corresponding to input VAX floats
- Return type:
np.ndarray