OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
utils.py File Reference

Go to the source code of this file.

Classes

class  CustomUnpickler
 

Namespaces

 MDN.utils
 

Functions

def ignore_warnings (func)
 
def find_wavelength (k, waves, validate=True, tol=5)
 
def closest_wavelength (k, waves, validate=True, tol=5)
 
def safe_int (v)
 
def get_wvl (nc_data, key)
 
def line_messages (messages, nbars=1)
 
def get_labels (wavelengths, slices, n_out=None)
 
def compress (path, overwrite=False)
 
def uncompress (path, overwrite=False)
 
def store_pkl (filename, output)
 
def read_pkl (filename)
 
def cache (filename, recache=False)
 
def using_feature (args, flag)
 
def split_data (x_data, other_data=[], n_train=0.5, n_valid=0, seed=None, shuffle=True)
 
def mask_land (data, bands, threshold=0.1, verbose=False)
 
def get_tile_data (filenames, sensor, allow_neg=True, rhos=False, anc=False, **kwargs)
 
def generate_config (args, create=True, verbose=True)
 
def get_data (args)