New answers tagged google-earth-engine-javascript-api
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?
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 ...
1
vote
Converting giant JavaScript feature collection of coordinates to GEE feature collection
You simply do:
var fc = ee.FeatureCollection(lots)
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 ...
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 ...
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 ...
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 ...
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) {
...
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 ...
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 ...
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(
...
Top 50 recent answers are included
Related Tags
google-earth-engine-javascript-api × 1112google-earth-engine × 1064
ndvi × 48
sentinel-2 × 46
export × 45
javascript × 43
modis × 40
google-earth-engine-python-api × 36
time-series × 29
raster × 27
classification × 27
feature-collection × 25
landsat × 24
geemap × 24
image × 23
chart × 23
random-forest × 20
filter × 15
reducers × 15
remote-sensing × 14
sentinel-1 × 14
landsat-8 × 13
function × 13
coordinate-system × 12
csv × 11