New answers tagged

0

This error is extremely confusing, but it is thrown when the in- or output projection is not set. Check your crs and crsGeo to check if they are not an empty. If so, try updating pyproj, setting your PROJ_LIB correctly etc.


-1

NDBI = (Band 6 - Band 5) / (Band 6 + Band 5) for Landsat 8.


1

The normalizedDifference() function clamps inputs to be non-negative, i.e., negative values are first set to 0 before evaluating. For most applications using normalizedDifference() is the best practice. The same behavior can be achieved with your band math method by adding .max(0) to the lines that define the red and nir variables. The fact that there are ...


1

Please see the Landsat 8 surface reflectance product guide from USGS, which can answer your questions in detail. The following is a summary. Data values: the reflectance fraction is scaled by 10,000 so that the data can be distributed as Int16 type to reduce file size. To unscale these data: image.divide(10000) Cloud masking: the surface reflectance product ...


0

You can create a function calculating LST for a single year (you already have all the code for the function), invoke it for every year, finally combine the results to a single multi-band image. function calculateLST(col) { // ... } var annualLST = ee.ImageCollection( years.map(function (year) { var colForYear = col.filter( ee.Filter....


2

It s best to avoid converting to vector to do the sampling if you do not have to. You can use the sampleStratified() function in the raster package to generate randomly stratified points in your land cover classes. For example: library(raster) # Generate some sample landcover raster data r <- raster(ncol=10, nrow=10) names(r) <- 'stratum' values(r) &...


0

I didn't follow all your steps, but I did notice one error when you add a map layer: Map.addLayer(hot2019,{palette: '0000ff'},'2019'); When you have a palette with one single color, that's the color you will get on your map, no matter what value you have. In your case, you have three discrete values: -1, 1, 1, so you'd want to provide three colors in your ...


Top 50 recent answers are included