PseudoNetCDF.icarttfiles package

Submodules

PseudoNetCDF.icarttfiles.ffi1001 module

class PseudoNetCDF.icarttfiles.ffi1001.TestFfi1001(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

testNCF2FFI1001()[source]
class PseudoNetCDF.icarttfiles.ffi1001.ffi1001(*args, **kwds)[source]

Bases: PseudoNetCDFFile

Overview:

ffi1001 is a reader object for the NASA AMES format also known as the ICARTT file format. The format is defined in detail at https://www-air.larc.nasa.gov/missions/etc/IcarttDataFormat.htm Standard of practice is to write files in UTF-8 encoding. However, it is not uncommon to receive files with special characters. To specify an encoding use the encoding keyword.

Example

datafile = ffi1001(path, encoding = ‘latin1’)

Parameters:
  • file (path - path to)

  • and (keysubs - dictionary of characters to remove from variable keys) – their replacements

  • encoding (encoding - file)

  • not (default_ulod_flag - flag value for upper limit of detections if) – specified

  • llod_flag (default_llod_value - default value to use for replacement of)

  • not – specified

  • ulod_flag (default_ulod_value - default value to use for replacement of)

Returns:

out - PseudoNetCDFFile interface to data in file.

classmethod isMine(path)[source]

True if this file or object can be identified for use by this class. Useful to override for classes that can be initialized from disk.

PseudoNetCDF.icarttfiles.ffi1001.get_lodval(v)[source]
PseudoNetCDF.icarttfiles.ffi1001.ncf2ffi1001(f, outpath, mode='w', delim=', ')[source]
Parameters:
  • meta-data (f - input file with 1-D variables and)

  • output (outpath - location to create)

  • file (delim - delimiter for data in output)

  • file

Returns:

out - output file (still open)

Module contents