@@ -68,7 +68,6 @@ def __init__(
6868 Output variables can also be specified in the method calls.
6969 cloud_cover_max : float, str
7070 Maximum cloud cover percentage (the default is 70%).
71- - Landsat TOA: CLOUD_COVER_LAND
7271 - Landsat SR: CLOUD_COVER_LAND
7372 et_reference_source : str, float, optional
7473 Reference ET source (the default is None). Source must
@@ -328,6 +327,9 @@ def compute_vars(image):
328327
329328 variable_coll = variable_coll .merge (input_coll )
330329
330+ else :
331+ raise ValueError (f'unsupported collection: { coll_id } ' )
332+
331333 return variable_coll
332334
333335 def overpass (self , variables = None ):
@@ -366,7 +368,7 @@ def interpolate(
366368 interp_days = 32 ,
367369 use_joins = False ,
368370 ** kwargs
369- ):
371+ ):
370372 """
371373
372374 Parameters
@@ -509,9 +511,11 @@ def doy_image(input_img):
509511 )
510512 # elif isinstance(self.model_args['et_reference_source'], computedobject.ComputedObject):
511513 # # Interpret computed objects as image collections
512- # daily_et_ref_coll = self.model_args['et_reference_source']\
513- # .filterDate(self.start_date, self.end_date)\
514+ # daily_et_ref_coll = (
515+ # self.model_args['et_reference_source']
516+ # .filterDate(self.start_date, self.end_date)
514517 # .select([self.model_args['et_reference_band']])
518+ # )
515519 else :
516520 raise ValueError (
517521 f'unsupported et_reference_source: { self .model_args ["et_reference_source" ]} '
@@ -670,9 +674,7 @@ def aggregate_image(agg_start_date, agg_end_date, date_format):
670674 image_list .append (et_reference_img .float ())
671675 if 'et_fraction' in variables :
672676 # Compute average et fraction over the aggregation period
673- image_list .append (
674- et_img .divide (et_reference_img ).rename (['et_fraction' ]).float ()
675- )
677+ image_list .append (et_img .divide (et_reference_img ).rename (['et_fraction' ]).float ())
676678 if 'ndvi' in variables :
677679 # Compute average ndvi over the aggregation period
678680 ndvi_img = (
0 commit comments