OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Inheritance diagram for NextLevelNameFinder:
[legend]
Collaboration diagram for NextLevelNameFinder:
[legend]

Public Member Functions

def __init__ (self, data_files_list, next_level, suite=None, resolution=None, oformat=None)
 
def get_next_level_name (self)
 
def get_platform_indicator (self)
 

Public Attributes

 user_next_level
 
 next_level
 
 data_files
 
 next_suffix
 
 transition_functions
 
 transition_sequence
 
 suite
 
 resolution
 
 oformat
 

Static Public Attributes

dictionary PROCESSING_LEVELS
 
dictionary transitions
 

Detailed Description

A class to determine what the standard OBPG filename would be when the
given input name is run through the next level of OBPG processing.
Note that some instruments are handled in subclasses.

Definition at line 230 of file next_level_name_finder.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  data_files_list,
  next_level,
  suite = None,
  resolution = None,
  oformat = None 
)

Member Function Documentation

◆ get_next_level_name()

def get_next_level_name (   self)
The API method to return the file name of the next level file(s) from
the file given when the object was instantiated.  For example, if the
given filename is an L1B file, the next level file name will be an L2.
For some levels, if the filename already follows the OBPG convention,
the only change will be to the extension; e.g. A2000123010100.L1B_LAC ->
A2000123010100.L2_LAC.  However, it is not assumed that the input file
follows this convention, so the output file name is derived from data
in the file header.

Reimplemented in ModisNextLevelNameFinder, and AquariusNextLevelNameFinder.

Definition at line 642 of file next_level_name_finder.py.

◆ get_platform_indicator()

def get_platform_indicator (   self)
Returns the misson/instrument indicator according to the new OBPG file naming convention.

Reimplemented in SeawifsNextLevelNameFinder, ModisNextLevelNameFinder, HawkeyeNextLevelNameFinder, and ViirsNextLevelNameFinder.

Definition at line 677 of file next_level_name_finder.py.

Member Data Documentation

◆ data_files

data_files

Definition at line 297 of file next_level_name_finder.py.

◆ next_level

next_level

Definition at line 279 of file next_level_name_finder.py.

◆ next_suffix

next_suffix

Definition at line 299 of file next_level_name_finder.py.

◆ oformat

oformat

Definition at line 314 of file next_level_name_finder.py.

◆ PROCESSING_LEVELS

dictionary PROCESSING_LEVELS
static
Initial value:
= {
'l1agen': 'Level 1A',
'Level 1': 'Level 1B',
'Level 1A': 'Level 1A',
'level 1a': 'Level 1A',
'l1bgen': 'Level 1B',
'Level 1B': 'Level 1B',
'level 1b': 'Level 1B',
'l1brsgen': 'l1brsgen',
'l1mapgen': 'l1mapgen',
'l2gen': 'Level 2',
'l2gen_aquarius': 'Level 2',
'Level 2': 'Level 2',
'level 2': 'Level 2',
'l2bin': 'l2bin',
'l2bin_aquarius': 'l2bin_aquarius',
'l2brsgen': 'l2brsgen',
'l2extract': 'l2extract',
'l2mapgen': 'l2mapgen',
'l3bin': 'l3bin',
'L3b': 'l3bin',
'l3gen': 'l3gen',
'l3mapgen': 'SMI', # Temporary(?)
'mapgen': 'mapgen',
'Level 3 Binned': 'l3bin',
'SMI': 'SMI',
'smigen': 'SMI'
}

Definition at line 236 of file next_level_name_finder.py.

◆ resolution

resolution

Definition at line 313 of file next_level_name_finder.py.

◆ suite

suite

Definition at line 304 of file next_level_name_finder.py.

◆ transition_functions

transition_functions

Definition at line 300 of file next_level_name_finder.py.

◆ transition_sequence

transition_sequence

Definition at line 301 of file next_level_name_finder.py.

◆ transitions

dictionary transitions
static
Initial value:
= {
'general' : {'L1A':'L1B', 'L1B': 'L2', 'L2': 'L3b',
'L3b': ['L3b', 'SMI', 'l3gen']},
# 'modis' : {'L0': 'L1A', 'L1A':['GEO', 'L1B'], 'L1B': 'L2',
# 'L2': 'L3b','L3b': ['L3b', 'SMI']}
}

Definition at line 265 of file next_level_name_finder.py.

◆ user_next_level

user_next_level

Definition at line 277 of file next_level_name_finder.py.


The documentation for this class was generated from the following file: