New answers tagged

0

You cannot do band math on collections, only images. You would need to map a function over the collection, applying the scaling to each image. return unitScale.map(function(img) { return img.multiply(100) })


0

Mapping over a collection happens on the server; you cannot use (or see the results of) a print inside a mapped function. The server is applying your function to all the images, but your function just isn't doing anything or returning anything. See also: https://developers.google.com/earth-engine/guides/client_server#looping https://developers.google.com/...


0

After a comment was made here I was reminded of this question. After a while I was able to solve my issues, I wrote a little tutorial of how to export imagery in my github page, but the most relevant to me was the following: Defining my are to be clipped didn't worked after using bounds, so I ended up doing the following to convert the patch around the ...


0

I solved part of clean_invalid by : leftField: 'callsign', rightField: 'callsign' }); // Create the join. var simpleJoin = ee.Join.simple(); // Apply the join. var simpleJoined = simpleJoin.apply(Join, filter, callsign_Filter) print("simpleJoined: ", simpleJoined)


3

This would be my simple solution using the threading module. I think asyncio is too much for a simple use case, but could be implemented in a complex situation like a web app. import ee import threading ee.Initialize() def retrieve(f): def wrap(obj, *args): f(obj.getInfo(), *args) return wrap def evaluate(obj, callback, args): args....


1

sampleRectangle samples using the image's projection. In the case of a mosaic, there is no projection so it uses 1 degree/pixel WGS84 by default. In that projection, there's less than 1 whole pixel in the rectangle, so it is treated as empty, and it's complaining that there is no defaultValue set because that's what it's trying to use. Just force the ...


0

Solved this by changing permissions on the .config directory by running: $ sudo chown -R my_username .config Instructions found here: https://apple.stackexchange.com/questions/320682/ownership-of-the-config-folder-in-home-directory


0

Fixed USDA/NAIP/DOQQ/n_4211317_sw_12_1_20040628: https://code.earthengine.google.com/36c93b69d7a8848a4ebe1e9d0aecfea3


5

Yes, it is possible using one of the few available libraries with similar functionality. Asyncio is the first thing that comes to my mind https://docs.python.org/3/library/asyncio.html You basically get the functionality of async/await, it's possible to create callbacks. Here is a step by step comparison of pulling data asynchronously using asyncio and the ...


0

This is possible, but not for any larger number of pixels. Earth Engine will complain. In practice, you almost certainly would be better off exporting your imagery to Google Drive or Google Cloud Storage, then download them and process the imagery locally. If you do want to play with extracting pixel values directly, here's how you can go ahead: import ee ...


0

You can determine latency from image metadata by differencing the 'system:version' date property from the 'system:time_start' date property. 'system:version' represents the time the data were ingested into the Earth Engine Data Catalog in units of microseconds since Unix epoch. 'system:time_start' represents the time the data were collected in units of ...


0

How often are data in EE updated? Normally, all ongoing datasets are updated at least daily (though not all such datasets have new data every day). Some datasets are updated several times a day. However, there is no policy to guarantee the presence of the most recent assets in the catalog. — https://developers.google.com/earth-engine/faq#...


Top 50 recent answers are included