OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
model.py
Go to the documentation of this file.
1 '''
2 Copy this folder into a product directory, and rename it to be the algorithm name
3 '''
4 
5 from ...utils import get_required, optimize
6 
7 # Define any optimizable parameters
8 @optimize(['a', 'b'])
9 def model(Rrs, wavelengths, *args, **kwargs):
10  required = []
11  tol = kwargs.get('tol', 5) # allowable difference from the required wavelengths
12  Rrs = get_required(Rrs, wavelengths, required, tol) # get values as a function: Rrs(443)
13 
14  # Set default values for these parameters
15  a = kwargs.get('a', )
16  b = kwargs.get('b', )
17  return
def model(Rrs, wavelengths, *args, **kwargs)
Definition: model.py:9
def optimize(opt_vars, has_default=True)
Definition: utils.py:151
def get_required(Rrs, waves, required=[], tol=5, squeeze=False)
Definition: utils.py:45