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

New to Open EO in R: Trouble getting job to download #55

Open
zzznelsonsm opened this issue Oct 1, 2024 · 1 comment
Open

New to Open EO in R: Trouble getting job to download #55

zzznelsonsm opened this issue Oct 1, 2024 · 1 comment

Comments

@zzznelsonsm
Copy link

Hi All,
Thanks in advance for any help here.!!! I am just learning openeo and am having problems despite following the examples. Here is the error message, and the code is below.

HTTP 400 Bad Request.
• SERVER-ERROR: Batch job has not finished computing the results yet. Please try again later or contact our support.list()

###Build Bounding box from Shapefile

fb <- sf::read_sf("allfb_UTM.shp")[1, ]
plot(fb)

fb_bbox = fb |>
sf::st_bbox()

fb_bbox

list collection and processes

list_collections()
describe_collection("SENTINEL2_L2A")

list_processes()

p <- processes()
datacube <- p$load_collection(
id = "SENTINEL2_L2A",
spatial_extent= fb_bbox,
temporal_extent=list("2024-07-01", "2024-07-16"),
bands=list('B01', 'B02', 'B03', 'B04', 'B05', 'B06', 'B07', 'B08', 'B8A', 'B09', 'B11', 'B12')
)

evi_cube <- p$reduce_dimension(data = datacube, dimension = "bands",reducer = function(data,context) {
B08 = data[1]
B04 = data[2]
B02 = data[3]
(2.5 * (B08 - B04)) / sum(B08, 6.0 * B04, -7.5 * B02, 1.0)
})

temporal_reduce_evi <- p$reduce_dimension(data=evi_cube,dimension = "t", reducer = function(x,y){
max(x)
})

job <- create_job(graph=temporal_reduce_evi,title = "EVI using R client")

start_job(job = job)

download_results(job = job, folder = "C:/Users/scott/OneDrive/Desktop/Consulting/Becks/Seed Fields/CI")

@jdries
Copy link
Contributor

jdries commented Oct 1, 2024

Hi,
this simply looks as if your job started successfully, and you need to wait a bit longer for it to finish before you can actually download results.
For a user interface that shows the job status, and also for easy download, you can open 'https://openeo.dataspace.copernicus.eu" in your web browser and log in.

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