ocssw
V2022
|
Classes | |
class | HawkeyeNextLevelNameFinder |
class | MerisNextLevelNameFinder |
class | ModisNextLevelNameFinder |
class | NextLevelNameFinder |
class | SeawifsNextLevelNameFinder |
Functions | |
def | convert_str_to_int (short_str) |
def | find_extension (format_data_list, search_term) |
def | get_l0_timestamp (l0_file_name) |
def | get_end_day_year (metadata) |
def | get_start_day_year (metadata) |
def | get_time_period_extension (start_date_str, end_date_str) |
def | is_month (day1, day2) |
def | is_year (day1, day2) |
def | read_fileformats () |
Variables | |
bool | DEBUG = False |
Detailed Description
The next_level_name_finder module contains the NextLevelNameFinder class, some instrument specific subclasses, and miscellaneous functions for working with OBPG file names, etc.
Function Documentation
◆ convert_str_to_int()
def mlp.next_level_name_finder.convert_str_to_int | ( | short_str | ) |
Returns an integer taken from the passed in string.
Definition at line 27 of file next_level_name_finder.py.
◆ find_extension()
def mlp.next_level_name_finder.find_extension | ( | format_data_list, | |
search_term | |||
) |
Returns the extension from format_data_list that is indicated by search_term.
Definition at line 38 of file next_level_name_finder.py.
◆ get_end_day_year()
def mlp.next_level_name_finder.get_end_day_year | ( | metadata | ) |
Returns the end day and year for a file, determined from the contents of metadata as ints.
Definition at line 115 of file next_level_name_finder.py.
◆ get_l0_timestamp()
def mlp.next_level_name_finder.get_l0_timestamp | ( | l0_file_name | ) |
A method to get the date/time stamp from L0 files.
Definition at line 87 of file next_level_name_finder.py.
◆ get_start_day_year()
def mlp.next_level_name_finder.get_start_day_year | ( | metadata | ) |
Returns the start day and year for a file, determined from the contents of metadata as ints.
Definition at line 143 of file next_level_name_finder.py.
◆ get_time_period_extension()
def mlp.next_level_name_finder.get_time_period_extension | ( | start_date_str, | |
end_date_str | |||
) |
Return the part of the file extension based on the time period within the start and end dates.
Definition at line 171 of file next_level_name_finder.py.
◆ is_month()
def mlp.next_level_name_finder.is_month | ( | day1, | |
day2 | |||
) |
Returns True if the days are the endpoints of a month; False otherwise.
Definition at line 191 of file next_level_name_finder.py.
◆ is_year()
def mlp.next_level_name_finder.is_year | ( | day1, | |
day2 | |||
) |
Returns True if the days are the endpoints of a year; False otherwise.
Definition at line 198 of file next_level_name_finder.py.
◆ read_fileformats()
def mlp.next_level_name_finder.read_fileformats | ( | ) |
Returns a tuple containing the file formats.
Definition at line 205 of file next_level_name_finder.py.
Variable Documentation
◆ DEBUG
Definition at line 24 of file next_level_name_finder.py.