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

Filter by
Sorted by
Tagged with
1
vote
0answers
14 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 ...
2
votes
1answer
32 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
0answers
15 views

Print NDVI pixel value to an app ui.panel

I want to print the NDVI pixel value of the current image in a collection animation to the ui.panel link to the code it should look like: "NDVI Value is: 0.345" I have two problems 1. I don't know ...
-2
votes
0answers
61 views

Export a table that content results value

I import a table that have a collection of points defined by (pts), but wean 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
32 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
32 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 ...
1
vote
1answer
36 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
29 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 ...
-2
votes
0answers
8 views

Masking clouds mapping function over an image collection of different Landsat images , plotting histogram of good pixel data using Google Earth Engine [duplicate]

want to combine all the Landsat images from 1985 up today in Google Earth Engine and I want to remove the cloud shadow and snow pixels by using the data quality layer from a cloud masking method ...
-1
votes
0answers
35 views

Masking clouds, mapping function over image collection of different Landsat images, plotting histogram of good pixel data using Google Earth Engine [closed]

I want to combine all the Landsat images from 1985 up today in Google Earth Engine and I want to remove the cloud shadow and snow pixels by using the data quality layer from a cloud masking method ...
1
vote
0answers
21 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
38 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 ...
-1
votes
0answers
17 views

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

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. // Import the selected country boundary var ...
2
votes
1answer
20 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
51 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 ...
0
votes
1answer
55 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
1answer
44 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 ...
0
votes
0answers
14 views

First use of the GEE API

I'd like to write my GEE scripts on my personnal IDE instead of using the Google code panel. I find in this documentation a way to perform a npm instalation. I tried my first launch and get the ...
2
votes
0answers
85 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 ...
1
vote
1answer
34 views

Earth Engine: Can you export image from the app-side?

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 ...
0
votes
0answers
58 views

Problem with Google Earth Engine API

I have written this little script .js which would have to initialize Google Earth Engine, but every time I run it, I obtain an Initialization error. Initialization error: Error: Google Earth Engine ...
1
vote
0answers
28 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 ...
3
votes
1answer
111 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
60 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
36 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
59 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
125 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
43 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....
3
votes
1answer
33 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
69 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
35 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 ...