OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
mlp.get_obpg_file_type Namespace Reference

Classes

class  ObpgFileTyper
 

Functions

def convert_millisecs_to_time_str (millisecs)
 
def get_timestamp_from_month_day (sdate, stime)
 
def get_timestamp_from_year_day_mil (year, doy, millisecs)
 

Variables

list KNOWN_SENSORS
 
 MONTH_ABBRS = dict((v.upper(), k) for k, v in enumerate(calendar.month_abbr))
 

Detailed Description

A class for determining the OBPG type of a file.

Function Documentation

◆ convert_millisecs_to_time_str()

def mlp.get_obpg_file_type.convert_millisecs_to_time_str (   millisecs)
Converts a number of milliseconds to a string representing the time of day.

Definition at line 32 of file get_obpg_file_type.py.

◆ get_timestamp_from_month_day()

def mlp.get_obpg_file_type.get_timestamp_from_month_day (   sdate,
  stime 
)
Creates timestamp for VIIRS L1.

Definition at line 44 of file get_obpg_file_type.py.

◆ get_timestamp_from_year_day_mil()

def mlp.get_obpg_file_type.get_timestamp_from_year_day_mil (   year,
  doy,
  millisecs 
)
Return a timestamp in the YYYYDDDHHMMSS form from a given year (yr), day
of year (doy) and milliseconds (after 00:00 - millisecs).

Definition at line 57 of file get_obpg_file_type.py.

Variable Documentation

◆ KNOWN_SENSORS

list KNOWN_SENSORS
Initial value:
1 = ['Aquarius', 'CZCS', 'HAWKEYE','HICO',
2  'HMODISA', 'HMODIST', 'MERIS', 'MODISA',
3  'MODIS Aqua', 'MODIST', 'MODIS Terra',
4  'MOS', 'OCIS', 'OCM2', 'OCTS', 'OSMI',
5  'SeaWiFS', 'SGLI','VIIRSN', 'VIIRSJ1']

Definition at line 23 of file get_obpg_file_type.py.

◆ MONTH_ABBRS

MONTH_ABBRS = dict((v.upper(), k) for k, v in enumerate(calendar.month_abbr))

Definition at line 29 of file get_obpg_file_type.py.