Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Python client library for calling the Google Earth Engine API.
3
votes
Handling null images using map function with Google Earth Engine Python API
You should basically never use ee.Algorithms.If. If that's the tool you're reaching for, you should rethink what you're doing.
In this case, separate the reduceRegion and the unmask into separate fun …
2
votes
Accepted
How is User Memory allocated in GEE?
Your code is incomplete so it's not possible to check on things, however
You're manually creating a collection from a bunch of what looks like geoJSON. If that collection is large, then the manual c …
1
vote
Weighted overlay in Google Earth Engine Python API
Your first quote is in the wrong place. It should be outside the parentheses.
'(0.6 * slopereclass) + (0.4 * elevationreclass)'
0
votes
Accepted
Source Code for Eigen-Analysis in GEE using .eigen()?
The documentation for the eigen function states: This implementation uses DecompositionFactory.eig() from https://ejml.org, so the source code, modulo any version differences, is here: https://github. …
0
votes
how to transform a doy band into a date in specific format?
Assume for a second that you could have a pixel with a string in it; what would you then do with that? If the answer is: "I'd display it so I knew what day the pixel came from", or something like tha …
1
vote
Accepted
Should I use map or iterate in EarthEngine?
I can't tell what you're really trying to do, but there are no situations where you can use both map and iterate where you should choose iterate. You should also avoid converting to list when possibl …
1
vote
Accepted
Invalid GeoJSON geometry when using GEE assets with .filterBounds GEE python API
getAsset just gets metadata about the asset; it doesn't actually load it.
In order to use it, you use the FeatureCollection constructor with the asset's ID/path.
ee.FeatureCollection("projects/ee-alen …
3
votes
Accepted
Connecting twice to same Google Earth Engine service account
It's no big deal if you call it twice. Most of the library notices that it's already been initialized once and skips doing unnecessary work.
2
votes
GEE API error computed value is too large when running Random forest classification
You can figure out which of the operations is too big by trying to print the size of each of the point samples, and the classifier.explain(), and seeing which one barfs first.
Most likely, you are sam …
1
vote
Accepted
How to check if a featurecollection have empty geometries
reduceRegions just copies the input feature and adds some properties to it, so in order to have empty geometries, you had to start out with them that way. Buffering something with no geometry results …
0
votes
Accepted
how to efficiently retreive the latest image in an imagecollection in GEE?
You can skip the If() by just merging the collections and taking the first().
2
votes
Set Fill Color of vector polygon layer to transparent in Google Earth Engine
When passed a Geometry, Feature or FeatureCollection, Map.addLayer uses collection.draw() to create the layer. There aren't a lot of options to draw, so instead, you should make your own call to col …
3
votes
Accepted
Getting bounds of projection in Google Earth Engine Python API
No, there's nothing built in for that. It would make a good feature request though.
2
votes
Accepted
Extracting spectral indices from a cloud-masked image collection using the s2cloudless maski...
You simply misspelled the function's name. It's normalizedDifference
0
votes
Accepted
Neighborhood statistics in Google Earth Engine Python API
This function (and all the other neighborhood operations like GLCMTexture, slope, aspect, etc) operates in units of "output pixels". So if you zoom in, you're working on pixels that are ultimately sm …