Servir-Mekong / hydra-floods

HYDrologic Remote sensing Analysis for Floods Python package
https://servir-mekong.github.io/hydra-floods/
GNU General Public License v3.0
162 stars 48 forks source link

Dataset.__init__() got an unexpected keyword argument 'rescale' attached scrrenshot. #49

Open something123something opened 5 months ago

something123something commented 5 months ago

issue ds_kwargs = dict( region=region, start_time=start_time, end_time=end_time, rescale=True ) .. lc8 = datasets.Landsat8(**ds_kwargs)

something123something commented 5 months ago

import ee ee.Initialize() import hydrafloods as hf

import the DSWFP module

from hydrafloods.workflows import dswfp region = hf.country_bbox("Cambodia") start_time = "2019-01-01" end_time = "2019-07-01"

define the asset name of the output

output_asset = ( "projects/................../assets/fusionsampling"+ f"{starttime.replace('-','')}{end_time.replace('-','')}" )

run the sampling process

dswfp.export_fusion_samples( region, start_time, end_time, stratify_samples=True, output_asset_path=output_asset, )

something123something commented 5 months ago

ran above chunk and that caused the error