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

JavaScript client library for calling the Google Earth Engine API.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

I want to write coding for MCD43A4.006 MODIS for NDVI time series

I want to write the code for MCD43A4.006 MODIS for NDVI time series. If I compare the chart with the NDVI of LANDSAT8, it displays a much greater difference. What is the reason for this variation? Map....
1 vote
1 answer
13 views

Nested function for SLC-filling using Google Earth Engine JavaScript API

I wrote a function to fill in a bitmasked and filtered SLC from Landsat 7. I want multiple inputs because I need to fill in the SLC with different values each time like the median reflectance, the ...
1 vote
1 answer
13 views

Unable to extract surface pressure value from ERA 5 on Google Earth Engine

I have a point coordinate value, and I am trying to extract the surface pressure value and export it to a CSV file from the ERA5 Hourly dataset on google earth engine; however, I am getting an error ...
0 votes
1 answer
21 views

GEE Animation, print thumbnail black

The following code is conceived to create a thumbnail image of landsat 7 images: // Feature Collection var aoi = geometry print(aoi); Map.addLayer(aoi); var centroid = aoi.centroid(1) print(centroid)...
1 vote
1 answer
28 views

Conversion of LST from K to F in gee

I'm trying to get LST using Landsat 8. I have successfully generated images for LST in Kelvin. But I need to get images in Fahrenheit. I'm trying to use expression for formula but I don't know How I ...
  • 13
0 votes
0 answers
32 views

How can hourly ERA5 data be converted to daily data?

I'm going to convert the hourly data into average, maximum, and minimum data and then calculate the reference evaporation and transpiration based on that, but finally I get an error. How can I correct ...
0 votes
0 answers
14 views

Output of connectedComponents retrieved with Selector Tool and with reduceRegions are different using Google Earth Engine

In Earth Engine, I am trying to extract the random IDs assigned by the connectedComponents tool to the objects (or 'regions') of a LULC dataset at the locations defined by a FeatureCollection. The ...
0 votes
1 answer
15 views

Trying to reduce NAIP resolution from 1m GSD to 5m GSD using reduceResolution

I'm trying to reduce the resolution of a NAIP mosaic from 1m GSD to 5m GSD. I get the following error: Image.reduceResolution: The input to reduceResolution does not have a valid default projection. ...
0 votes
1 answer
30 views

How to save mosaiced Landsat8 to Google drive from Google Earth Engine?

I am trying to download Landsat 8 surface reflectance images from Google Earth Engine to Google Drive for a large region. So, I am using mosaic function to stitch multiple scenes using the following ...
0 votes
1 answer
18 views

Earth Engine App: How to load a layer from select dropdown?

I want to create a dropdown menu and when the user selects an item I want it to load that layer. This is my code https://code.earthengine.google.com/dfbb128862bd8a3b0fb2139f5b0f5a28 var layers = { ...
  • 52
0 votes
1 answer
44 views

Export all images from VIIRS's ImageCollection from Google Earth Engine to drive

I am trying to export all images of the image collection of VIIRS. I am following the answer from this post. Instead of setting a bounding box as a clipping layer I have a .shp of my study area. When ...
  • 367
0 votes
2 answers
24 views

Map.setCenter using a variable in Google Earth Image

How can I pass a variable to Map.setCenter? I'm trying to use GEE to to view a location that comes from a variable. That is, the following works: var scene = "LC80122482013122LGN01" var ...
  • 1,600
0 votes
0 answers
18 views

Creating vertical gradient legend in Google Earth Engine

I am trying to create two legends in Google Earth Engine. The first one, the horizontal legend is fine, but I can't find a way to properly create the vertical legend. Also, my script seems very long. ...
  • 139
0 votes
0 answers
28 views

Layer error: Computation timed out

I want to run object-based svm classification with Sentinel 1 and Sentinel-2 images, and for that I first segmented the Sentinel-2 images which worked well. But then I wanted to make classification ...
-1 votes
1 answer
28 views

Want to take all Januarys from 2000 to 2021 [closed]

var collection = ee.ImageCollection("MODIS/006/MOD09GA") var iniDate = ee.Date.fromYMD(2000,1,1) var endDate = ee.Date.fromYMD(2021,12,30) var mon = collection.filter(ee.Filter....
  • 1
0 votes
1 answer
26 views

Making selection and loading layer using Google Earth Engine JavaScript API

I have created a simple ui.select() menu and want the app to load the desired layer upon selection. This is my code, this code is not working and second thing is that I don't want to do if else ...
  • 52
1 vote
1 answer
105 views

Earth Engine App: How to Reset Charts Displayed on Map?

I have created an Earth Engine app in which user selects a class from dropdown menu. When a class is selected and load button is clicked chart is displayed on Map as well as other layers. When I ...
  • 52
1 vote
1 answer
26 views

How to create a buffer around a feature present in a feature collection in Google Earth Engine?

I am trying to create a buffer of specific radius around a feature present in a feature collection through the following code: var cellular_data= ee.FeatureCollection("users/jazibimran_farmdar/...
0 votes
1 answer
60 views

Capture monthly yearly change temperature from CSV in GEE

I did not receive any data from change temperature CSV from my code. How can I correct it? I need to export monthly yearly change temperature in single CSV but I did not receive any data in my CSV. ...
  • 9
0 votes
0 answers
53 views

Sentinel 1 Soil Moisture Calculation using dubious model and topps equation

I'm trying to calculate soil moisture using dubious model and topps model using gee. But I'm finally getting no data values using the topps model. What could be the solution? var roi = table.geometry()...
  • 1
0 votes
1 answer
48 views

How to refresh layers and ui elements in google earth engine app?

I want to create a Google Earth Engine app. When a user selects something from the dropdown element and clicks on the load button I want it to load that particular layer and its label displayed on map....
  • 52
0 votes
1 answer
26 views

NDSI masking values are not coming best

I'm trying to get yearly NDSI using MODIS and within range of 0-1. higher NDSI values indicate snow presence. While my code is showing 0 values in glacier and snow areas, and snows as 1 for areas ...
0 votes
3 answers
158 views

Determine whether an ee.Image dictionary property has nulls using a mapped function

I have an Earth Engine image collection. Each image has a property that is a dictionary with multiple keys. I want to know if there are any null values in the dictionary. My idea (code below) is to ...
0 votes
1 answer
51 views

dataset.clip is not a function

I took Modis burnt area monthly 500m resolution data. For this data I am applying clip operation and its showing clip is not a function My code: var dataset1=ee.ImageCollection("MODIS/006/...
0 votes
1 answer
23 views

Visualization of multiple classes based on one raster band with Google Earth Engine

I'm working with Google Earth Engine and I have a raster image with one band and pixel values between 0 and 2. I want to create three classes: class 1: pixel value = 0 class 2: pixel value = 0.01 - 0....
  • 139
0 votes
1 answer
33 views

Calculating yearly air temperature mean for selected region ERA5

Using ERA5 data, I am trying to extract the average annual temperature for a region. I am interested in a single value for each year. This is the code I tried to use: //Define area var area = ee....
  • 67
0 votes
1 answer
29 views

Thresholding for NDSI in Google Earth Engine

I'm trying to apply thresholding on MODIS NDSI. My goal is the Yearly NDSI images. For both Yearly and Monthly images, NDSI should move between -1 to 1, considering as a threshold value of 0.1, we ...
0 votes
1 answer
42 views

Google Earth Engine: mapping over feature collection returns image collection of unknown elements [closed]

I have a variable that is a function that returns an image collection of the monthly mode from google's dynamic world. This works great. I'm attempting to use this while mapping over a feature ...
1 vote
0 answers
40 views

Scan Line Error Landsat7 GEE

I have a code that works, but I want assistance on how the scan line error in GEE can be fixed. The link to the code is below: https://code.earthengine.google.com/?scriptPath=users%2Fmpalasimbarashe%...
  • 69
0 votes
0 answers
24 views

interchangeability of nightlights between two data(DMSP OLS) and VIRRS

I am collecting nighttime lights in African countries between 1992-2021 to utilize it as an economic growth indicator. So far, I have managed to correct them from two data; 1992-2013 from DMSP OLS ...
  • 1
0 votes
1 answer
34 views

Stacking two images from different satellite providers

I am trying to stack two images from different satellite providers in one GeoTIFF file. Basically, what I have is a shapefile of South East Asia which I use to clip the two images. I have tried to ...
1 vote
1 answer
38 views

Google Earth Engine: Name layer with date of the image

I want to map a layer in Google Earth Engine and the layer name should be the date the image was taken. I created a variable with the date as a string, but I always get the error that the layer name ...
  • 139
1 vote
1 answer
24 views

Albedo using Landsat 8 not giving correct values

I'm trying to get albedo for my study area but my values are not coming good. I need values in range of 0-1 but these values are out of this range. I don't know when I multiply scale value, its not ...
0 votes
1 answer
46 views

User memory limit exceeded in gee for calculate PCA

I want to calculate PCA for the image Landsat 5 but i get this error User memory limit exceeded, I know it's because the memory but i don't know how can i resolve this problem. This is my code : var ...
  • 1
1 vote
1 answer
25 views

Image.constant: Parameter 'value' is required Error generating chart

I am trying to generate a chart and I am finding it hard to generate it. Is it a coding error in calling my functions? https://code.earthengine.google.com/?scriptPath=users%2Fmpalasimbarashe%...
  • 69
0 votes
1 answer
75 views

Urban Heat Islands in Google Earth Engine

I am working to create Urban Heat Islands effect in Google Earth Engine. But there is a problem with function BT - images.addBands is not a function var images = ee.ImageCollection("LANDSAT/LC08/...
0 votes
0 answers
16 views

Google Earth Engine code NBR daily difference(δNBR)

I calculated the NBR for a Landsat 8 imagecollection and mapped it over. I now want to calculate daily difference of the index as NBR[i] - NBR[i-1] for each day ,for each pixel in the image collection ...
0 votes
0 answers
21 views

Seasonal/monthly image composite generation for crop classification

I want to create multi-temporal composites for crop classification. However, when I print, I get 36 bands, but I was supposed to get 27, right? Besides, if I want to add multiple indices to each of ...
  • 1
0 votes
1 answer
41 views

Customising band names before exporting

I am unable to identify the bands after exporting as it shows no band name after exporting in google drive I have tried to download Landsat 8 Surface Reflectance Tier 1 image. I filtered the images ...
0 votes
0 answers
14 views

Monthly and yearly images visualization [duplicate]

I'm trying to get monthly and yearly images of MODIS Snow and also I have converted images into monthly and yearly too. Now I want to get visualization of all images by monthly and yearly but I don't ...
0 votes
0 answers
35 views

Get all monthly and yearly collection images into single time

I'm doing MODIS Snow mapping for monthly and yearly but every time I need to write again and again code for separate month and year when I take median for each. But I want to get all images within ...
0 votes
0 answers
25 views

Google Earth Engine exports empty files

I'm using Google Earth Engine's JavaScript API to process and export a set of Sentinel-2 images. I'd like to export the whole ImageCollection, and have successfully done so with a similar dataset ...
  • 181
0 votes
1 answer
28 views

Cloud masking function giving null values

I'm trying to do cloud masking using sentinel but As you can observe, there are pixels that are ‘black’ (or dark) especially on the cloud areas. These are potential pixels with ‘NULL’ values (values ...
1 vote
1 answer
28 views

MODIS NDSI Monthly Map

I'm trying to map monthly NDSI map using MODIS dataset but when I clip it to my area using Snow band, it is showing the band is not found. Here is the code: Map.centerObject(area) var dataCollection = ...
0 votes
0 answers
105 views

Exporting average annual/monthly NDVI using Google Earth Engine

I referred to the code to export NDVI from GEE, but the console always says: Error generating chart: No features contain non-null values of "system:time_start". code link: https://code....
  • 1
0 votes
1 answer
56 views

How does "ee.reducer.mean()" work when applying a mask over an image if the spatial resoultions of the image and the mask aren't the same? [closed]

I am trying to calculate NDVI using MODIS images over corn fields. But I'd like to mask the areas which are not corn. The spatial resolution of MODIS images is 250m, but the resolution of the cropland ...
1 vote
0 answers
23 views

Mapping Cloud Correcting Function using Google Earth Engine [closed]

I'm using the JavaScript API of Google Earth Engine. I'm running code given here and described in the developers forum here. The functions supplied work independently of each other, but at the bottom, ...
  • 181
1 vote
1 answer
52 views

Creating time-series chart out of list in Google Earth Engine

I have reduced a band/variable of daily image collection to monthly collection. The function returns a list containing objects with 2 properties. Like this I want to plot a time-series chart of all ...
0 votes
1 answer
28 views

Error reducing daily image collection to monthly and making a time-series chart in Google Earth Engine

I am new to GEE and don't know lots of concepts. I am trying to make a time-series chart of an image collection that I have reduced "Daily NASA Earth Exchange Global Climate Projections" ...
0 votes
0 answers
10 views

Why is my band scale changing?

I want to calculate the monthly precipitation from the daily CHIRPS collection. However, my band scale changes from 5565.97 m (0.05 Deg which is the original CHIRPS data resolution) to 111319.49 m (1 ...

1
2 3 4 5
17