New answers tagged

1

You do this by mapping over the feature collection. Unfortunately I think you didn't give access to your script to others, so I can't test it. But this should work: // CSV file var coord = ee.FeatureCollection("users/eginamalaj/site_test"); // Select sampling date var results = coord.map(function(feature){ var date = ee.Date(feature.get('date'))...


1

Assuming you have put your stacks into a list stacks_list, looping in R can be done either using the regular for structure: for (stk in stacks_list) { # Calculate NDVI here } Or with lapply from the apply family: ndvis = lapply(stacks_list, FUN = function(s) { # Calculate NDVI for stack s here }) I would add that if you convert the stacks to a stars object ...


1

You need client-side iteration to do this. Call aggregate_array() with a property that uniquely identify each element in your collection. Then evaluate() the result, to turn it into a client-side array. I normally use system:index, but here I used the name of the county, ADM2_NAME, to easily get the county name as a client-side string for use in the chart ...


Top 50 recent answers are included