Questions tagged [google-earth-engine]

Google's cloud computing platform for geospatial data & analysis at earthengine.google.com.

Filter by
Sorted by
Tagged with
0
votes
1answer
32 views

How to apply a Bitmask for radiometric saturation QA in a image collection (earth engine)

I am new to earth engine and I am trying to apply a radiometric saturation mask in a image collection based on ''radsat_qa'' in earth engine data catalog for landsat reflectance tier 1. I am trying ...
2
votes
0answers
12 views

Downsides to saving rasters with NaN as no data values?

I am working with a bunch of satellites images downloaded from Google Earth Engine as .tifs. I have masked some of the pixels in Earth Engine with values of -999999 where there are clouds. Everytime I ...
0
votes
1answer
15 views

How to alter the presentation of FORMA Raw Output FIRMS in Earth Engine?

I'm attempting to view the FORMA Raw Output FIRMS dataset in Google Earth Engine. The thumbnail for the dataset shows it looking mostly transparent with green areas where the deforestation has occured ...
0
votes
1answer
13 views

How to calculate the number of pixels with a specific value in a image Google Earth Engine

I am trying to count the number of pixels who are equal and greater than 0.6 in a specific band (allbedofill1). I am trying to count this for every image in my collection (glacier_final). For now, I ...
0
votes
1answer
11 views

How to Combine Two Image Overlaying Into One Image in Google Earth Engine?

I have two images of different sizes. I can make them overlay each other using Map.addLayer() for each. But I want to combine them into one image as shown in illustration below. How to achieve this?
0
votes
1answer
16 views

Transform gee.geometry() into a raster

In the Python GEE API I'd like to create a .tif file of the selected country boundaries. This file will then be the input of a R script. I can easily select the country but I don't understand how to ...
1
vote
0answers
12 views

Buffer around shoreline hitting user memory limits [closed]

I am having issues hitting user memory limits creating a buffer around a shoreline. I think its because there are too many elements in the feature collection. This might be a tiling issue? How do I ...
0
votes
1answer
15 views

Counting frequency of unique value in a shapefile column in GEE

My shapefile has a column named 'crop'. I have identified unique values of different crops like wheat lentil etc. Now, my goal is to get the frequency of each unique crop in that column. Means I am ...
0
votes
0answers
8 views

Transform an ecozone raster to vector

I want to transform a ee.Iamge that descripbe the ecozone of a specific country to a vector. I try to reproduce this example but I cannot get anything else than black vector... //load the ecozones var ...
0
votes
1answer
9 views

Calculating area of water pixels, and plotting them in GEE - Confusion about the process

I am trying to create a time series of the total area of water pixels in a particular region using the ee.Image.pixelArea() method. I understand that this method creates a raster whereby the value of ...
0
votes
0answers
15 views

Band Selection Dropdown in Google Earth Engine

I am stuck with a simple but annoying problem, please see the code below: https://code.earthengine.google.com/4f53ffc1999bf7f6f419b3928860dc1d I have two drop down menus, the first selects an image (...
0
votes
0answers
15 views

Identifying annual first day of peak NDVI in Google Earth Engine from Sentinel 2 images

I am trying to make a map showing the annual first day of peak NDVI over an agricultural area over multiple years using Sentinel 2. The final result should be similar to this on a smaller scale. https:...
2
votes
1answer
34 views

Prevent loss of timestamp when mapping over image collection

I am using the below code (taken from this post) to make monthly composites of cloud masked S2 data but the reduce.median won't work because my ImageCollection doesn't have a timestamp. Does anyone ...
0
votes
1answer
109 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: ...
3
votes
1answer
819 views

Standard deviation for percentiles interval in Google Earth Engine

I'm working on a GEE script aiming to extract DEM-based elevation statistics for regions defined by polygons. Specifically, I want to obtain the mean, median, standard deviation, and min/max values of ...
2
votes
1answer
19 views

Google Earth Engine; rename columns in FeatureCollection

I have a Feature Collection I'm exporting as a csv. I used the reduceRegions function to get mean values of several different variables per region, and merged these into one large FeatureCollection. I ...
0
votes
0answers
29 views

How to Change Image's Color By Changing Its Pixels' Values Based On Some Bands Computation in Google Earth Engine?

I have this requirement to perform pixel-level computation involving spectral bands of sentinel image. The code in javascript is as follows: var ratio_1 = (B04 - 0.35) / 0.215; var ratio_2 = (B04 - ...
1
vote
1answer
24 views

Compute the size of an ee.Geometry

I am using the EE API in a Python Jupyter Notebook. I am building a map based on the LSIB_SIMPLE country boundaries. My objective is to display my information in a map and adapt the zoom to fit the ...
0
votes
1answer
32 views

Filter FeatureCollection with multiple values

Is it possible to use an equality filter for a FeatureCollection in GEE based on multiple values? I understand how to filter by one value: collectionName.filter(ee.Filter.eq('COLUMN','VALUE')); But ...
1
vote
1answer
22 views

What does the variable “tmmx” in the TerraClimate dataset stand for?

I'm working with TerraClimate and want to display the mean temperature for different decades in relation to the long term trend. I'm just wondering what exactly the variable "tmmx" is. Is ...
3
votes
1answer
27 views

ReduceRegions not writting to feature properties in GEE

I am trying to apply reduceRegions to extract average precipitation from the TerraClimate dataset (developers.google.com/earth-engine/datasets/catalog/IDAHO_EPSCOR_TERRACLIMATE) within each polygon of ...
0
votes
1answer
27 views

How to reduce pixels in polygons by calculating mean in Google Earth Engine?

I'm new at Google Earth Engine environment. I would like to create a time series chart with many large polygons but I get this error: Error generating chart: Error in map(ID=...
0
votes
1answer
22 views

geemap doesn't display attributions

Is it normal that geemap doesn't display attributions in my notebook? Is there a way to add them? I'm running : import geemap m = geemap.Map(center=[40,-100], zoom=4) m.add_basemap('CartoDB.Positron')...
-1
votes
0answers
25 views

Get only coordinates from feature collection in GEE [closed]

I have a shapefile (table) with features. When I print the table in GEE I can see the coordinates and properties of the features. How do I filter to get only the coordinates of the features and not ...
0
votes
0answers
12 views

Google Earth Engine: acos (arc cosine) does not produce any values

I want to generate a time series of degree days, where 30°C is my threshold of interest, using the daily era5 data. I am using this formula: default case 1: tMax <= 30: gen dday30C = 0; case 2: ...
1
vote
1answer
35 views

Filter Image Collection by date with conditions

I want to filter my ImageCollection for my analysis with specif time ranges. I have an Image Collection with annual max NDVI images ranging from 1982 - 2015 and a conflict FeatureCollection for a ...
1
vote
1answer
27 views

Feature causing error in Climate linear regression analysis

In my code, for an unknown reason one of the features (in a FC with a few thousand conflict locations and their dates) is causing a problem leading to this error: FeatureCollection (Error) Error in ...
1
vote
1answer
103 views

Explanation of reduce.count() function in Google Earth Engine

Following the indication on Calculating number of pixels in polygon using Google Earthy Engine? I wrote this script: var gfc =ee.Image('UMD/hansen/global_forest_change_2018_v1_6'); var lossyear = ...
0
votes
1answer
39 views

How to solve bitwise error in Google Earth Engine?

I've wrote the below code for chlorophyll detection using MODIS ocean reflectance data but I've got this error: Image.bitwiseXor: Bitwise operands must be integer only. code link: https://code....
1
vote
1answer
81 views

Counting number of unmasked pixels per image in collection using Google Earth Engine

I'm trying to count the number of pixels that are masked by the cloud mask of the image collection given by the Earth Engine dataset. I have clipped my collection with a ROI and now I want to keep the ...
1
vote
1answer
35 views

Display a gee featureCollection on a leaflet map

I'm using the python GEE api and ipyleaflet in a Jupyter Notebook and I'd like to retrieve an asset (FeatureCollection) and display it as an overlay on my map. The retrieving work just fine ...
0
votes
2answers
62 views

Is AVHRR 5.3 SST data correct in Google Earth Engine [closed]

I am curious about how to scale the units of the AVHRR 5.3 Sea Surface Temperature data. The original units of this dataset is K, but it also has a scale factor of 0.001 (I'm not sure for what). The ...
-1
votes
0answers
33 views

Why I can't export image to my Google Drive using this code anymore? [closed]

This code used to work for me but now I can't export any of the maps I am creating to my drive. The code creates the desired map, however, I can not send it to my Google Drive account. I would like to ...
0
votes
0answers
13 views

Interactively select parameters for snic segmentation in GEE

Which functions/methods/ in GEE , one can use to play with or interactively choose snic segmentation parameters i.e., compactness,size,etc . I have tried ui.slider, linked map but need a code to ...
0
votes
1answer
26 views

How to Convert Number (Type Object) Into Type Number in Google Earth Engine?

I am creating a time-series chart of cloud cover. I calculate the cloud score for image using a custom function and store it as a cloud property. Finally, I try to create a chart as follows: Get the ...
0
votes
0answers
18 views

Script error: Git protocol error - Google Earth Engine

I am doing supervised image classification in Google Earth Engine. For that, I am labeling points on the map to create a dataset. I have labelled around 2.9k points. Now when I am labeling more points ...
2
votes
1answer
554 views

Filter Sentinel-2 images base on cloud cover over a region of interest

I know that there are a lot of examples of how to mask clouds for sentiel-2 images, but what I want is sort the images over an area of interest without change anything of the image. Applying a cloud ...
0
votes
1answer
53 views

Multiply image collection by a list of numbers (pairwise)

I want to know how to multiply every single image of a collection against its respective coefficient allocated in a list. It means to multiply the image 5 with the element 5, image 6 with element 6, ...
2
votes
1answer
207 views

Add base map to animation Google Earth Engine

I want to make an animation of fires using MCD64A1 with a base map something similar to this Sentinel 5-P animation: What I could make until now using this code is: // Define a collection var col = ...
2
votes
1answer
45 views

Reduce image collection to annual maximum in GEE

I want to control my NDVI trends with climate variables. Therefore I am using temperature, precipitation and soil moisture. But since my NDVI is in annual maximum I need to have the same format for ...
-1
votes
1answer
45 views

Calculating daily average using hourly data in Google Earth Engine

I want to get daily data such as net radiation, sensible heat flux and latent heat flux. NOAA NWS National Centers for Environmental Prediction (NCEP)[ee.ImageCollection("NOAA/CFSV2/FOR6H")] ...
0
votes
1answer
39 views

Extracting NDVI for Landcover Classes in Google Earth Engine

I am working on a project where I have created a supervised classification of an image which contains four land cover classes. I have reduced the classification to a frequency histogram that displays ...
1
vote
1answer
733 views

Filter Landsat Images - cloud cover

I'm trying to filter Landsat images based on the percent of cloud cover for my ROI. I have tried to adapt code in link one and link two but cannot get what I want. My ROI has been imported as a ...
0
votes
1answer
30 views

Failing to Show Custom Sentinel 2 Image Collection on a Map in Google Earth Engine

I'm creating a custom image collection over a bound region as follows: Get image collection containing images taken by satellite in 7 days var collection_to_covert_to_image = ee.ImageCollection(&...
0
votes
0answers
9 views

How to decrease the size of a pixel in a collection of images?

How to decrease the size of a pixel in a collection of images? I need to take the PERSIANN images and reduce the pixel to the size of the CHIRPS. One has 0.05 ° resolution and the other 0.25 °
0
votes
1answer
53 views

Create 3 layers Map in GEE

I have code that calculates the NDVI for agriculture plots. now i'm trying to create raster that will be composed from 3 colores according to the NDVI values- red= if the value is lowe then-> Mean- (...
0
votes
0answers
19 views

Convert a ee.Geometry() into a Leaflet polygon

I'm using the Leaflet and gee API in a Python notebook. In this notebook I'd like to display a featureCollection as a layer on a Leaflet map. #retreive the asset asset_descripsion = 'Glad_' + ...
0
votes
1answer
25 views

Exporting table of daily temperature (ERROR: Internal Error)

I am trying to download a table of daily temperature for the year of 2001 and all Brazilian municipalities in Google Earth Engine Code (GEE). After mapping a Reduce Regions function and flatten to ...
-2
votes
0answers
18 views

I have the mean value of single image and I want to attach it as property to that image. Also how can I apply it on a collection of image? [closed]

var listofImages = collection.toList(collection.size()) print(listofImages) var image = ee.Image("LANDSAT/LT05/C01/T1_SR/LT05_150044_19880504") var Ndwi = image.normalizedDifference(['B3','...
0
votes
1answer
51 views

Error in supervised classification output (Earth Engine)

I have a problem in the supervised classification output. The classification itself is giving any problem, but when I try to print or display the image I obtain this error: Image (Error) Unable ...

1
2 3 4 5
49