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

Timeseries in Sentinel S1 Index #81

Open
Ivo-G opened this issue Feb 14, 2023 · 11 comments
Open

Timeseries in Sentinel S1 Index #81

Ivo-G opened this issue Feb 14, 2023 · 11 comments

Comments

@Ivo-G
Copy link

Ivo-G commented Feb 14, 2023

Hello, I'm having trouble running the Sentinel S1 indices in the example 013-Time-Series-By-Region-Pandas.ipynb. It seems that the index parameters are not being passed. I don't know if it's a library update or some mistake on my part.

The code
point = ee.Geometry.Point([11.178576,51.122064]).buffer(100)

RAD = (ee.ImageCollection('COPERNICUS/S1_GRD')
.filterBounds(point)
.filterDate("2021")
.spectralIndices(index="QpRVI")
.select("QpRVI"))

ts = RAD.getTimeSeriesByRegion(geometry = point,
bands = ['QpRVI'],
reducer = [ee.Reducer.mean()],
scale = 10)

tsPandas = geemap.ee_to_pandas(ts)

Error:
Exception: Element.propertyNames: Parameter 'element' is required.

Thanks

@Ivo-G Ivo-G closed this as completed Feb 16, 2023
@Ivo-G
Copy link
Author

Ivo-G commented Feb 16, 2023

Error in index choice, band vv

@davemlz
Copy link
Owner

davemlz commented Feb 16, 2023

Thank you, Ivo! Still, I find it weird that it didn't tell you that Sentinel-1 doesn't have the bands. It should. I will check that! ;)

@Ivo-G
Copy link
Author

Ivo-G commented Feb 16, 2023 via email

@Ivo-G
Copy link
Author

Ivo-G commented Feb 16, 2023 via email

@davemlz
Copy link
Owner

davemlz commented Feb 16, 2023

Hola Ivo. Lo único que se me ocurre es que algunas imágenes de S1 para tu región en específico no traen HH o HV y por lo tanto no están funcionando.

@Ivo-G
Copy link
Author

Ivo-G commented Feb 16, 2023 via email

@davemlz
Copy link
Owner

davemlz commented Feb 16, 2023

Dale! Si algo me cuentas :)

@Ivo-G
Copy link
Author

Ivo-G commented Feb 16, 2023 via email

@davemlz
Copy link
Owner

davemlz commented Feb 16, 2023

Hola Ivo!, Si quieres puedes poner el script aquí, voy a re-abrir el Issue!

@davemlz davemlz reopened this Feb 16, 2023
@Ivo-G
Copy link
Author

Ivo-G commented Feb 17, 2023

Hi David,
point = ee.Geometry.Point([-56.2828972327858,-30.292632902046854]).buffer(150)

RAD = (ee.ImageCollection('COPERNICUS/S1_GRD')
.filterBounds(point)
.filterDate("2022","2023")
.spectralIndices(index="DpRVIHH")
.select("DpRVIHH")) # 'RFDI' , 'DpRVIHH','QpRVI' Error
RAD.first().bandNames().getInfo()

HttpError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/ee/data.py in _execute_cloud_call(call, num_retries)
328 try:
--> 329 return call.execute(num_retries=num_retries)
330 except googleapiclient.errors.HttpError as e:

5 frames
HttpError: <HttpError 400 when requesting https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/value:compute?prettyPrint=false&alt=json returned "Collection.first: Error in map(ID=S1A_IW_GRDH_1SDV_20220108T090553_20220108T090618_041367_04EB14_901B):
Image.select: Pattern 'HV' did not match any bands.". Details: "Collection.first: Error in map(ID=S1A_IW_GRDH_1SDV_20220108T090553_20220108T090618_041367_04EB14_901B):
Image.select: Pattern 'HV' did not match any bands.">

During handling of the above exception, another exception occurred:

EEException Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/ee/data.py in _execute_cloud_call(call, num_retries)
329 return call.execute(num_retries=num_retries)
330 except googleapiclient.errors.HttpError as e:
--> 331 raise _translate_cloud_exception(e)

@davemlz
Copy link
Owner

davemlz commented Feb 23, 2023

Hi Ivo!

Sorry I'm late. I just tested it and the problem is that there are no HH and HV bands that can be used for DpRVIHH in this collection. For this you will have to use DpRVIVV:

point = ee.Geometry.Point([-56.2828972327858,-30.292632902046854]).buffer(150)

RAD = (ee.ImageCollection('COPERNICUS/S1_GRD')
    .filterBounds(point)
    .filterDate("2022","2023")
    .spectralIndices(index="DpRVIVV") # Here :)
    .select("DpRVIVV")) 
RAD.first().bandNames().getInfo()

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

2 participants