Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
something123something opened this issue May 6, 2024 · 2 comments

Comments

@something123something
Copy link

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

@something123something
Copy link
Author

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/fusion_sampling_"+
f"{start_time.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
Copy link
Author

ran above chunk and that caused the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant