3

You can do this by calling the same function on either slider change and then accessing the values from the slider directly from within the function which in this case i've named updateLayer var slider = ui.Slider({ min:-1, max: 1, step: 0.01, style: {stretch: 'horizontal', width:'500px'}, onChange: updateLayer }); var slider1 = ui.Slider({ min:...


2

As the error says, the max pixel's allowed is 10000000. You can change this to suit your data: image.reduceRegion({ reducer: x, geometry: x, scale: x, maxPixels: 1e9 });


2

Ok, this is a bit tricky, I assume you want to filter counties by state, so I found a linking property: STATEFP var states = ee.FeatureCollection("TIGER/2016/States") var counties = ee.FeatureCollection("TIGER/2016/Counties") var statesNames = states.aggregate_array('NAME') var getCounties = function(state) { // Given a state get all counties var feat ...


2

You can convert the geometry to a feature in a feature collection and export that to the drive. You are getting that error because Export.FeatureCollection does not exist and so there is no property "toDrive" of something that does not exist. The easiest way to do what you want would be var fc = ee.FeatureCollection(geometry4sub); Export.table.toDrive({ ...


1

Okay I figured it out, I think the image was too large because I didn't define a region to export, so it cut away a part. I just had to draw a square incorporating my whole region of interest and add it to the export command: Export.image.toDrive({ image: LandCoverAgricultureMaskedClip, description: 'Landcover Agriculture in ROI', scale: 500, region:...


1

As Map.addLayer and Export are client side function, it must be done in the client side, so if you want to do it straight forward, make a simple loop var listOfImages =(withNDVI.toList(withNDVI.size())); var toExport = [1, 3, 4] for (var i in toExport) { var image = ee.Image(listOfImages.get(toExport[i])) // do what ever you need with image Map....


1

The problem is that you are redefining the variable list within your loop so the scope of that variable extends only within the loop and the list variable outside the loop is never getting updated. It should be fixed by removing the "var" in front of list WITHIN the loop. (line 12 in code below) var list = ee.List([]); for(var i = 0; i < 5; i++){ var ...


1

I had the same problem and it worked when I renamed all the files with the same name as the .zip file.


1

The output of classified isn't an ImageCollection object, is an Image object (see print(classified);) and this image has only 1 band. You can use either: // Export the image, specifying scale and region. Export.image.toDrive({ image: classified, description: 'imageToDriveExample', scale: 30, region: roi }); or // Export the image, specifying ...


1

The main difference between getThumbURL and export operations in Earth Engine is that export operations are batch tasks — they are allowed to run longer, whereas ‘thumbnails’ are only suitable for images that are small and fast to compute. You'll get the same content whichever method you use. You will need to specify format: 'geotiff' to get a GeoTIFF ...


1

Every ee.Geometry object has a method called bounds: bounds(maxError, proj) Returns the bounding rectangle of the geometry. Arguments: this:geometry (Geometry): Return the bounding box of this geometry. maxError (ErrorMargin, default: null): The maximum amount of error tolerated when performing any necessary reprojection. proj (...


1

Assuming your aoi is stored in a variable StudyArea, something like below should work. Remember that loops in Earth Engine is achived via map() and conditionals via filter(). See this guide for more examples. var filtered = ee.ImageCollection('FIRMS') .filterDate('2018-01-01', '2018-12-31') .select('T21') // Create a list of start days var ...


1

This a common mistake, since you're new in GEE, maybe you didn't notice it. Once created the visParams object, needs to be called from Map.addLayer() function: Map.addLayer(filteredCollection,visParams); I recommend you to stretch a bit the visualization range: var visParams = {bands: ['B4', 'B3', 'B2'],min:0,max:0.25}; Map.addLayer(filteredCollection, ...


1

The objects (Most of them, if not all) in GEE are immutable so you'll have to do ... newList = newList.add(mosaic) ...


1

In this section var precipNum = lastPrecip.reduceRegion(ee.Reducer.last(), geom) ... The issue is that lastPrecip is a temporary layer only stored in memory and doesn't have a nominal scale so GEE can't determine the scale by itself. There is a simple solution to this i.e. just specify the scale you want. So the code would now be var precipNum = ...


1

The problem comes from the classifier mode. The default classifier mode is classification mode. Setting it in REGRESSION mode with the setOutputMode solved the issue. Code: var model = ee.Classifier.randomForest({numberOfTrees:10}) .setOutputMode('REGRESSION') .train(train, ...


1

I think there is some confusion here regarding what dateRangeContains does. It DOES NOT give you the image closest to the date you want. It just checks a DateRange object in the metadata of an image and gives you images which contains the date you supplied within the range listed in its metadata. The string field is actually supposed to be the name of the ...


1

With unweighted reducers (e.g. count) pixels are included if their centroid is in the region. See https://developers.google.com/earth-engine/reducers_reduce_region#pixels-in-the-region


1

When you apply the mean, the collection is masked to the filtered path and row, therefore, the bounding box is still the whole collection. My suggestion is to get the first image or the image of your preference in the collection instead of getting the median. Also, bear in mind that the bounding box of the image selected is irregular and you will have more ...


Only top voted, non community-wiki answers of a minimum length are eligible