Questions tagged [google-earth-engine-javascript-api]

JavaScript client library for calling the Google Earth Engine API.

Filter by
Sorted by
Tagged with
2
votes
2answers
831 views

Max NDVI per month & year using Google Earth Engine to CSV - CSV gives -999 values only

This question refers to Calculating NDVI per region, month & year with Google Earth Engine I have modified the code posted by @Kel Markert at https://code.earthengine.google.com/...
1
vote
1answer
331 views

Reducing a feature collection over features instead of columns

I created a feature collection where features are grid cells, columns are monthly images and the values represent pixel area. I would like to find the mean for each feature over all columns. I tried ...
1
vote
1answer
223 views

How to call the output of one function into another in Google Earth Engine?

i have to run a nested loop in GEE. I have two feature collections. I have to copy the id of features from one featureCollection to the other if they overlap (Eg. if feature1.contains(feature2) then ...
4
votes
1answer
861 views

Calculating NDVI per region, month & year with Google Earth Engine

This question refers to post: https://stackoverflow.com/questions/53280885 on stackoverflow. It was recommended by a user to repost here. I have modified the code posted by @Kel Markert https://code....
0
votes
1answer
191 views

Export a table that content results value

I import a table that have a collection of points defined by (pts), but when I call (pts) by ee.Feature (pts) I can not export the table. var feat = ee.Feature(pts, {date: ee.Date(date), rain: ...
1
vote
1answer
607 views

Converting Feature Collection of one element (consisting of Multipolygon geometries) into feature collection of many features

I took help from Converting Feature Collection of one element (Multi Point Geometry) into Feature Collection of different elements I tried the code suggested in the above question but i get the ...
1
vote
1answer
625 views

Water pixel detection in Landsat imagery using Google Earth Engine

I want to extract or detect water bodies in a selected region using the relationship between water and vegetation indices, and these water and vegetation indices were calculated by using the cloud and ...
0
votes
1answer
376 views

Error generating chart: Collection query aborted after accumulating over 5000 elements

I have problem with generating charts in GEE. I am trying to calculate NDVI for more than 100 Shapefiles (FeatureCollection) and export the results to a chart and CSV file. I got an error: Error ...
0
votes
1answer
200 views

Google Earth Engine: Difference in Area of Feature Collection when calculating using a reducer vs. when calculating using clipping

I am wondering why the two approaches to calculate the area of a feature collection return different results and which one is "correct"? I clip the feature collection on a white image and sum up over ...
1
vote
0answers
176 views

Image (Error) Image.constant: Invalid Image.constant type?

I'm trying to find actual evapotranspiration by use equation ETa = ETf*pet I import image collection of pet from IDAHO_EPSCOR/TERRACLIMATE for 3 years. When I multiply Etf with pet for finding ...
1
vote
1answer
148 views

How to display a large series of images to the map with a for loop in Earth Engine

I need to view imagery from a collection as separate layers. Since I have to do this for several sites and the number of images in the collection therefore varies, I tried to apply a for loop to solve ...
2
votes
1answer
54 views

Google Earth Engine chart error: No features contain non-null values of “year” [closed]

I'm trying to plot a chart from a collection I have created. While the data from this collection maps fine, I can't seem to produce a chart for it. Here is the code: var l5_coll = ee.ImageCollection('...
0
votes
1answer
133 views

Creating maplayer to show high chlorophyll and sst locations based on SMI Modis imagecollection using Google Earth Engine

I'm trying to create a maplayer to show spots where both chlor_a and sst show high values in google earth engine I've used this code bellow but instead generated a map showing the chlorophyll values ...
1
vote
1answer
161 views

ImageCollection (Error) User memory limit exceeded. Mean annual land surface temperature landsat data

I am trying to calculate mean annual and monthly land surface temperature for three image collection of landsat8, Landsat5, and landsat7(image collection of landsat7 and landsat 5 are merged). The ...
0
votes
2answers
639 views

Spectral signatures chart in Google Earth Engine

I have been reading the documentation and some related questions online, but I cannot seem to make it work. I use Google Earth Engine to access an old Landsat 5 image, and classify later on. I want ...
3
votes
0answers
398 views

Earth Engine NodeJS API: Failed to load resource and CORS policy issue

I am developing a GEE nodeJS custom application. I have gone through the documentation and source(https://github.com/google/earthengine-api/tree/master/demos/server-auth-nodejs). I setup the service ...
3
votes
1answer
529 views

Exporting image from app-side using Google Earth Engine

I've built an app that displays an image. I want the user of the app to be able to download the data from the viewport in a GeoTIFF format for further use in GIS. I've got my export function running ...
1
vote
0answers
134 views

Google Earth Engine: Maintain area calculation accuracy while reducing resolution and exporting from

I am struggling to find a best practice for exporting data from Google Earth Engine at a reduced resolution for further analysis outside of GEE, while maintaining similar results analysis in the code ...
5
votes
1answer
1k views

Calculate mean EVI for multiple polygons across an image collection in Google Earth Engine

My goal is to calculate mean EVI for a collection of polygons for each image in an image collection. My collection of polygons is a GEE feature collection (called 'polys') and I'm using the Landsat ...
1
vote
1answer
296 views

getDownloadURL not working

I try to download some data using getDownloadUrl (see below). Unfortunately, i always get the following message: Failed to execute 'send' on 'XMLHttpRequest': Failed to load Does anyone have an ...
1
vote
1answer
93 views

Applying visualisation parameters to all images in image collection when exporting to drive

I want to apply an image visualisation to all the images from a filtered image collection, and export the images to Google Drive using the GEE Javascript API. I can do the export fine, but I just end ...
2
votes
0answers
154 views

Calculating area fraction of pixels covered by larger pixel using Google Earth Engine

My goal is to calculate an area fraction from one image as the threshold to select (mask)another image. Specifically, the land cover layer has a spatial resolution of 30m and the EVI data is 250m. I ...
1
vote
1answer
851 views

Earth Engine - UI image selection linked maps, Split Panel

I'm trying to create a split panel where a linked map loads different images and wipe allows one to see clearly the difference between years. But I'm stuck with a weird issue when placing the panels ...
1
vote
0answers
251 views

Subset ('get') ee.List using multiple indices in Google Earth Engine

I need to split a long, flattened list of coordinates by even indices (longitude) and odd indices (latitude). Here's an example list: var roi = ee.Geometry.Polygon( [[[24.331249999999955, 1....
4
votes
1answer
114 views

Earth Engine - how to access an image added to Map from inside a function

I have a simple UI that allows the user to select an image from a collection, and loads it to the map. The user then can select a polygon from a list, and a .reduceRegion() using that geometry is to ...
1
vote
1answer
287 views

Getting surrounding pixel coordinates from ee.Geometry.Point

Not the best example, but say I have an image of Sea Surface Temperature and a point like so: // Load an image of sea surface temperature (SST). var sst = ee.Image('NOAA/AVHRR_Pathfinder_V52_L3/...
2
votes
0answers
273 views

What does Unit-Scale actually do in GEE?

I am experimenting with Google Earth Engine and normalized my images using UnitScale as per this post. When I view the image in the lower pane in Google Earth Engine Code editor and switch the ...
5
votes
1answer
232 views

Why is Earth Engine Export.map.toCloudStorage taking much longer than before?

I've created a script to identify the nth least cloudy mosaic for Sentinel-2 data for a given place and time. A few months ago, I was able to execute an Export.map.toCloudStorage for a visualization ...
0
votes
1answer
1k views

Editing list of strings using Google Earth Engine?

I'm trying to edit string elements in a list object. I need to get a list of IDs of a image collection, and then replace the orbit row to another (in this case, 073 to 074). I'm new to GEE and got ...
1
vote
1answer
114 views

Getting table of daily temperatures for host of cities using Google Earth Engine?

I'm not experienced in using Google Earth Engine (GEE), so I've been beating my head against the wall for the past week trying to figure out how to do this. I am trying to export a table with daily ...
3
votes
1answer
2k views

GEE ImageCollection.map() with multiple-input function

I have an Image Collection, I want to Calculate a Normalized difference and got this Function called ND /////normalized Differense/////// function ND(Im,B1,B2){ var four = Im.select(B1) var eight = Im....
1
vote
1answer
100 views

Get a list of all the images that match the conditions in Google Earth Engine (not only the first)?

Normally when I run this code I get the least cloudy image but I want to know what the other images are. I use this code: var image = ee.ImageCollection('COPERNICUS/S2') .filterBounds(...
10
votes
1answer
13k views

Extracting pixel values by points and converting to table in Google Earth Engine?

I realise that this question has been asked before as Extract pixel values by points and convert to a table in Google Earth Engine at Stack Overflow. However, I can't get the code to work. It runs, ...
2
votes
2answers
3k views

Filter Image Collection by Multiple WRS Path/Rows using Google Earth Engine JavaScript API

How can I filter an image collection in Google Earth Engine by multiple WRS paths/rows? This is an example of a filter using one path.row: var sr2011 = ee.ImageCollection('LANDSAT/LT5_SR') ....
3
votes
2answers
2k views

Summing of individual image's statistic over ImageCollection Google Earth Engine

I have an ImageCollection containing FIRMS fire image in 2014. I want to count the number of fires in the year for a predefined region. I can find a way to count the number of fires for an individual ...

1 2 3 4 5
6