OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
prismbil2oci Namespace Reference

Functions

def ParseCommandLine (args)
 
def SetLogger (pargs)
 
def read_prism_L1 (logger, fname_in)
 
def subsample_spectral (band_data, band_weights)
 
def resample_prism2oci (bands_prism, widths_prism, lt_prism)
 
def read_OCIP_L1C_CDL (fname_in, num_scans, num_pix, num_bands)
 
def PRISMmain (args)
 

Function Documentation

◆ ParseCommandLine()

def prismbil2oci.ParseCommandLine (   args)
Defines and parses command line arguments

Definition at line 23 of file prismbil2oci.py.

◆ PRISMmain()

def prismbil2oci.PRISMmain (   args)
Coordinates calls to PRISM L1 BIL to L1C netCDF conversion process

Definition at line 201 of file prismbil2oci.py.

◆ read_OCIP_L1C_CDL()

def prismbil2oci.read_OCIP_L1C_CDL (   fname_in,
  num_scans,
  num_pix,
  num_bands 
)
A subroutine to read a OCIP L1C CDL file and fill the proper dimensions

Definition at line 185 of file prismbil2oci.py.

◆ read_prism_L1()

def prismbil2oci.read_prism_L1 (   logger,
  fname_in 
)
A subroutine to read PRISM L1 data

Definition at line 75 of file prismbil2oci.py.

◆ resample_prism2oci()

def prismbil2oci.resample_prism2oci (   bands_prism,
  widths_prism,
  lt_prism 
)
A subroutine to resample PRISM data to OCI targets to create OCIP data

Definition at line 145 of file prismbil2oci.py.

◆ SetLogger()

def prismbil2oci.SetLogger (   pargs)
Initiates a logger instance

Definition at line 45 of file prismbil2oci.py.

◆ subsample_spectral()

def prismbil2oci.subsample_spectral (   band_data,
  band_weights 
)
a subroutine to subsample via weighted averaging
spectral data about a desired band center

Inputs:    band_data    -- 3-dim numpy array of shape-order (number_of_bands(_to_average), number_of_scans, pixels_per_scan)
           band_weights -- list or 1-dim numpy array of length (number_of_bands(_to_average))

Outputs:   data         -- 2-dim numpy array of shape-order (number_of_scans, pixels_per_scan)
           width        -- floating point value of sub-sampled FWHM value

Definition at line 122 of file prismbil2oci.py.