New answers tagged

0 votes

How to annotate features in google earth engine?

style() doesn't do text. Your only option is the text module from gena. See this previous question: Google Earth Engine - Add text label at lat/lon location?
Noel Gorelick's user avatar
0 votes

Tiling a polygon into relatively even squares?

You could use the coveringGrid() method to split up the polygon into tiles of 100 meter resolution. But this might not be what you want - if your use case is better fitted to the raster space, you ...
Katie Friis's user avatar
1 vote

Converting giant JavaScript feature collection of coordinates to GEE feature collection

You simply do: var fc = ee.FeatureCollection(lots)
JonasV's user avatar
  • 3,689
0 votes
Accepted

Create a multiband constant Image from a list object

To instantiate a multi-band constant image using an ee.List, you'll need to use ee.Image.constant instead of ee.Image. var list = ee.List([1,2,3]); var image = ee.Image.constant(list); // Works! var ...
Aaron Zuspan's user avatar
1 vote
Accepted

Getting null pixels during soil texture analysis

Generally, null pixels indicate NoData or missing data. If you inspect from the Google Earth Engine editor you can see the water bodies show null pixels or masked value whereas others show a certain ...
Padmanabha's user avatar
  • 1,267
1 vote
Accepted

Downloading EVI from Google Earth Engine

There are three issues with your code in the dataset and the for loop. According to the documentation, there is no data after 2022-01-01. However, you have given date range after that period. There ...
Padmanabha's user avatar
  • 1,267
0 votes

Aligning my geometry object using the projection/transformation of an ee.Image object in Google Earth Engine

When you use an ee.Projection to construct your geometry, Earth Engine applies the projection's transformation to the coordinates. In other words, xmin, xmax, ymin, and ymax are incorrectly scaled and ...
Aaron Zuspan's user avatar
1 vote
Accepted

How to copy over date (system time index) variable from first image within a function

You are right about the need to copy the 'system:time_start' from the first image. This is one way to do it: var lt_precip = ee.ImageCollection.fromImages( years.map(function (y) { ...
Keiko_geo's user avatar
0 votes

Principal Component Analysis (PCA) error found for getting results as a Chart (ui.chart) in GEE

To create a time series of Principal component values, several images from different periods are required. In the following example, I have given an example that uses the least cloud cover images from ...
Padmanabha's user avatar
  • 1,267
0 votes

Extracting some daily parameter of points from era5 land hourly in GEE

The problem is in res variable. To use math operations like divide, multiply a constant with an image, it has to be done directly do this without conversion. var avg = sum.divide(2) Likewise, you ...
Padmanabha's user avatar
  • 1,267
1 vote

Google Earth Engine: Error generating chart: Data column(s) for axis #0 cannot be of type string

You don't provide access to your PNI variable so, I think your problem is in it. By using your code with an arbitrary PNI area in USA (with 2 features) as follows: var geometry1 = ee.Geometry.Polygon( ...
xunilk's user avatar
  • 29.4k

Top 50 recent answers are included