eemont icon indicating copy to clipboard operation
eemont copied to clipboard

Timeseries in Sentinel S1 Index

Open Ivo-G opened this issue 2 years ago • 11 comments

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 avatar Feb 14 '23 14:02 Ivo-G

Error in index choice, band vv

Ivo-G avatar Feb 16 '23 00:02 Ivo-G

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! ;)

davemlz avatar Feb 16 '23 10:02 davemlz

Hola, DavidUse el ejemplo para obtener timeseries, con el punto del ejemplo, pero no me aparecian las bandas, parece que la banda HH no existe para essa region, cambiando el índice funciono, como entendi que seria un error mio, cerre el issue. Abrazo de Brasil y felicitaciones por el brillante trabajo. (point = ee.Geometry.Point([11.178576,51.122064]).Em 16 de fev. de 2023 07:16, David Montero Loaiza @.***> escreveu: 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! ;)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

Ivo-G avatar Feb 16 '23 10:02 Ivo-G

Hola David,

Los índices que no están me volviendo son los que requieren HH. Los índices DpRVIHH, QpRVI y RFDI, son los que traen error, justo em los índices más relativos a vegetacion. Saludos y Gracias novamente

Ivo Wagner

Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows

De: David Montero @.> Enviado:quinta-feira, 16 de fevereiro de 2023 07:16 Para: @.> @.>; State @.> Assunto: Re: [davemlz/eemont] Timeseries in Sentinel S1 Index (Issue #81)

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! ;)

— Reply to this email directly, view it on GitHubhttps://github.com/davemlz/eemont/issues/81#issuecomment-1432846476, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATC466G7FE3MYFNIHYHLLPTWXX465ANCNFSM6AAAAAAU3TEBLM. You are receiving this because you modified the open/close state.Message ID: @.***>

Ivo-G avatar Feb 16 '23 13:02 Ivo-G

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.

davemlz avatar Feb 16 '23 13:02 davemlz

David, Perfecto, voy a intentar con los que están funcionando y en otros puntos. Gracias

Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows

De: David Montero @.> Enviado:quinta-feira, 16 de fevereiro de 2023 10:23 Para: @.> @.>; State @.> Assunto: Re: [davemlz/eemont] Timeseries in Sentinel S1 Index (Issue #81)

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.

— Reply to this email directly, view it on GitHubhttps://github.com/davemlz/eemont/issues/81#issuecomment-1433082950, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATC466AZN3HXCFFLJW5SHQ3WXYS5LANCNFSM6AAAAAAU3TEBLM. You are receiving this because you modified the open/close state.Message ID: @.***>

Ivo-G avatar Feb 16 '23 13:02 Ivo-G

Dale! Si algo me cuentas :)

davemlz avatar Feb 16 '23 13:02 davemlz

Hola,

Revise algunos puntos em America del Sur, Peru, Estados Unidos, Europa e Africa com el índice QpRVI, incluso en um ejemplo que tenia hecho por ti (HH-HV-example-eemont.ipynb) al cambiar el índice para QpRVI vuelve con error la imagen.

Si te ayuda puedo abir un issue, en inglês de Google Translate, mas con buena intencion.

Abrazo

Ivo

do do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows

De: David Montero @.> Enviado:quinta-feira, 16 de fevereiro de 2023 10:31 Para: @.> @.>; State @.> Assunto: Re: [davemlz/eemont] Timeseries in Sentinel S1 Index (Issue #81)

Dale! Si algo me cuentas :)

— Reply to this email directly, view it on GitHubhttps://github.com/davemlz/eemont/issues/81#issuecomment-1433092550, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATC466FPI3UNMFFUTP5HRFTWXYTZZANCNFSM6AAAAAAU3TEBLM. You are receiving this because you modified the open/close state.Message ID: @.***>

Ivo-G avatar Feb 16 '23 13:02 Ivo-G

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

davemlz avatar Feb 16 '23 13:02 davemlz

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)

Ivo-G avatar Feb 17 '23 01:02 Ivo-G

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()

davemlz avatar Feb 23 '23 14:02 davemlz