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

Incomplete exports #84

Open
kwazineutin opened this issue May 17, 2024 · 0 comments
Open

Incomplete exports #84

kwazineutin opened this issue May 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kwazineutin
Copy link

I tried to calculate a set of indices. I selected the bands/indices to export by looping through a list using the same scale, region, and other export parameters

For some indices, I get the full coverage at the desired scale, but for others, I do not get the full coverage. After reducing the scale from 10 m to 20 m, I get the full coverage for the indices that failed in the first run. However, my desire is to have the exports at 10 m with full coverage in all cases. the error from the export task is "Internal error"

Code

estbound = countries.filter(ee.Filter.eq('country_na', 'Estonia'))

est_coord = estbound.geometry().bounds().getInfo()['coordinates']

est_buf = ee.Geometry.Polygon(est_coord).buffer(5000)

S2 = (ee.ImageCollection("COPERNICUS/S2_SR_HARMONIZED")
.filterDate(start_date, end_date)
.filterBounds(est_buf)
.filterMetadata('CLOUDY_PIXEL_PERCENTAGE','less_than',20)
.map(maskS2clouds)
)
spectral = ["NDVI","NDWI","EVI","LSWI","DSI","GEMI","NDDI","NMDI","SAVI","PISI","EBBI","UI","NDBI","BI"]
S2_inds =S2.spectralIndices(spectral)
S2_inds_comp= S2_inds.median()

for index in spectral :

task_f5 = ee.batch.Export.image.toCloudStorage(
image=S2_inds_comp.select(index),
description=('f5_'+index), #check
bucket='breeze',
fileNamePrefix=('f5_'+index+'/f5_s2_'+index+'/f5_s2_'+index),#check
fileFormat='GeoTIFF',
scale=10,
crs='EPSG:4326',
maxPixels= 1e13,
region= est_buf.geometry().bounds(),
formatOptions={
'cloudOptimized': True
}
)
task_f5.start()
task_f5.status()

Error

{'state': 'FAILED',
'description': 'est_s2_GEMI',
'creation_timestamp_ms': 1715190208033,
'update_timestamp_ms': 1715229122961,
'start_timestamp_ms': 1715220367648,
'task_type': 'EXPORT_IMAGE',
'attempt': 5,
'error_message': 'Internal error.',
'id': '2RZVXS2VOBN7ELZEXAMN36B7',
'name': 'projects/earthengine-legacy/operations/2RZVXS2VOBN7ELZEXAMN36B7'}

Setup (please complete the following information):

  • OS Windowa
  • python version 3.11.5
  • eemont version 0.3.6
  • earthengine-api version 0.1.369
@kwazineutin kwazineutin added the bug Something isn't working label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant