Questions tagged [google-earth-engine]

Google's cloud computing platform for geospatial data & analysis at earthengine.google.com, which can be programmed using either Python or JavaScript client libraries.

Earth Engine has client libraries in both and .

807 questions
0
votes
1 answer

.map is not a function in Google Earth Engine

I am trying to normalize my data. But it says, .map is not a function. How can I come up with this? var Stprep = raindata.subtract(ltamean).divide(ltastd); var SPI = Stprep .map(function(image){ var Imin = Stprep .reduce(ee.Reducer.min()) var…
0
votes
1 answer

How to convert Zarr data to GeoTiff?

I want to load the HRRR forecast data into Google Earth Engine, so I think I need to convert it to GeoTiff. e.g. import xarray as xr import s3fs fs = s3fs.S3FileSystem(anon=True) urls =…
Adair
  • 1,697
  • 18
  • 22
0
votes
1 answer

Keeping feature collection properties when merging with another feature collection in Google Earth Engine

I'm a relatively new user of Google Earth Engine, although have some experience coding in R. I'm trying to merge several ee.FeatureCollections with identical property labels, as seen in a brief example using trees below. I've first defined two…
0
votes
1 answer

Can an ImageCollection contain a single image?

I found about GEE yesterday and found an interesting dataset (https://developers.google.com/earth-engine/datasets/catalog/NASA_ORNL_biomass_carbon_density_v1) about biomass during 2010. I am fairly new at programming so maybe I am missing something,…
0
votes
0 answers

recursive function on each pixel in google earth engine

I want to filter time series in the google earth engine which requires two for loops over time-series of a single pixel. I searched around and not found any example related to this. I know about .map function and I am using it for the generation of…
gis.rajan
  • 517
  • 3
  • 20
0
votes
0 answers

I can't use IF in GEE, it's very strange

As you can see, the result is 'yes', but my flag is 0, how could this happen? What can I do? var img=imageCollection.filterBounds(geometry).filterDate('2021-08-09','2021-08-10').median(); print(img) var…
0
votes
0 answers

How can I reshape a satellite image in Earth Engine?

I have satellite image with 3 bands as B2,B3,B4, I want to convert each band to one column. for example B2 band places in first column, B3 band places in second column...
CHH
  • 5
  • 2
0
votes
1 answer

masked results in smileRandomForest

I used the deprecated randomForest function to classify land use using about 60,000 training points in a ee.FeatureClass with data from about 130 ee.Image bands. Somehow the old classifier always gave 'wall to wall' predictions, where in spite of…
dgketchum
  • 302
  • 3
  • 11
0
votes
2 answers

Google earth Engine ... Export images as ascii

Is it possible to export an image from Google Earth Engine as ASCII raster Export.image.toDrive({ image: 'image', region: region, scale: 30, crs: 'EPSG:4326', });
0
votes
1 answer

Format of CSV file to upload to GEE

I am trying to upload a geometry file in .csv format to GEE. The file uploads just fine, but when I add layer nothing shows up. id type geometry bbox ID class…
ilyywa
  • 40
  • 6
0
votes
0 answers

Extract Year from properties of features in Google Earth Engine

While batch downloading the rasters from GEE I want to pass the year, which are there in the properties of feature so that it can name the output dynamically instead of numeric ID's i.e. the name should be…
0
votes
0 answers

NDBaI Index calculation in GEE- JS

I am having difficulty in generating the NDBaI index using Landsat 8 correctly, the range of values is not ranging from -1 to 1. Either the values are all negative or it has a very small range from 0.8 to 0.9 which is unrealistic wrt the on ground…
Deepthi
  • 21
  • 6
0
votes
1 answer

How to mask out shadows from LANDSAT/LE07/C01/T1_TOA?

I want to use the LANDSAT/LE07/C01/T1_TOA collection in google earth engine and I am struggling to understand how the bits work in order to mask out areas with clouds and shadows. I managed to write the following, but I am not very confident and do…
foo
  • 33
  • 6
0
votes
1 answer

Animated GIF wih Annotations. Annoying Bar on the side

I wrote a script that downloads a series of images with Google Earth Engine into a GIF-File and puts the Date of the image as annotation on it. See the code below: import geopandas as gpd import ee import os import geemap from datetime import date,…
0
votes
1 answer

Error uploading asset to Google Earth Engine

I am trying to upload a simple shapefile to my assets in Google Earth Engine (GEE). Since I started studying GEE I found these errors when uploading some .shp files: "Error: Multiple primary files found."; and "Error: Could not unzip file." Both…