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.
1
vote
Tracking GEE API costs with workload tags: Unable to get complete EECU summary
The cloud monitoring tools is terrible, but there's some pointers here: https://developers.google.com/earth-engine/guides/monitoring_usage#view_consumption_in_cloud_monitoring
The important part is th …
0
votes
Accepted
Why does Image.reduce(ee.Reducer.sum()) fail to sum the multi-band values correctly?
Reducers weight the pixels according to the image mask; addition doesn't.
You can see in the inspection that the input pixels and the final pixel have a mask of approximately 81%. 724*0.81 = 586. If …
0
votes
Distance to nearest non-NA pixel in Google Earth Engine - exported image is pixelated
You didn't set a scale in the Export.
You also haven't set a neighborhood on the fastDistanceTransform() call, which means you're only getting a default neighborhood of 256 pixels, which at 100m scale …
0
votes
USGS slope less than 30° excluding water bodies (Earth Engine)
Theres a lot of land with slope = 0 at 10m. If you don't want water, you need to use some other dataset for determining water/not-water.
1
vote
Checking if object is still cached in Google Earth Engine
No part of the example you gave involves any significant caching on the server side. There is no unique ID to be had; nothing's kept in that example.
The only things that are kept longer than a few se …
0
votes
Accepted
Using ee.Image.stratifiedSample with .smileRandomForest produces type error (python)
As the error messagbe says: you've provided an incorrect argument to Classifier.train(). The inputProperties argument is expected to be a list of property names. That's not what you used. You proba …
0
votes
Dictionary.get: Dictionary does not contain key: bucketMeans error when mapping Otsu thresho...
FilterBounds includes any image whose footprint intersects your ROI in any way. That doesn't mean there are always valid pixels in your ROI, and if there are no valid pixels, then the output of a red …
0
votes
Accepted
How to extract a grid layer from GEE image?
Add the bands from ee.Image.pixelLonLat() to your image. But getInfo is not the right way to get the pixels. Check out ee.data.computePixels(). It'll even give you numpy format if you ask for it.
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 …
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().
0
votes
Filtering image collection based on a custom function Google Earth Engine Python API
It's expensive.
You need to make a histogram of all the pixels in each image (mapped reduceRegion using a frequencyHistogram reducer) and store the results (just the list of values found, not the coun …
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.
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.
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 …
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 …