Google Earth Engine - get true color (RGB) of Landsat 8 SRSelecting bands of image collection in google earth...

What is the difference between ashamed and shamed?

Does music exist in Panem? And if so, what kinds of music?

Use comma instead of & in table

What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?

What can I substitute for soda pop in a sweet pork recipe?

Skis versus snow shoes - when to choose which for travelling the backcountry?

How to mitigate "bandwagon attacking" from players?

Easy code troubleshooting in wordpress

I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?

Should I choose Itemized or Standard deduction?

Where is this triangular-shaped space station from?

Why proton concentration is divided by 10⁻⁷?

Replacement ford fiesta radiator has extra hose

Linear regression when Y is bounded and discrete

You'll find me clean when something is full

Closure of presentable objects under finite limits

Did 5.25" floppies undergo a change in magnetic coating?

How would we write a misogynistic character without offending people?

If nine coins are tossed, what is the probability that the number of heads is even?

Must a tritone substitution use a dominant seventh chord?

Non-Italian European mafias in USA?

Contradiction with Banach Fixed Point Theorem

If a druid in Wild Shape swallows a creature whole, then turns back to her normal form, what happens?

Can this function be rewritten with a regex?



Google Earth Engine - get true color (RGB) of Landsat 8 SR


Selecting bands of image collection in google earth engine?Google Earth Engine, Landsat scene extraction?Google Earth Engine. Looking for a way to have information for each location in the mentioned time period based on the non-cloudy layersGEE cloud-free Sentinel2 and linear Regressionee.Algorithm.EEFlux Evapotranspiration (ET) Landsat Google Earth EngineGEE Landsat SR year composite // mask cloud / shadow out w/ other method than quality pixelHow to preprocess and remove noisy data from Landsat-8 image Bands for ndvi time-series analysisGoogle Earth Engine, how to distinguish between rivers/streams and ponds/lakes in a water maskExporting true color sentinel image in Google Earth Engine?Classification of buildings using USGS Landsat 8 images on Google Earth Engine













0















I try to export RGB images from ee.ImageCollection('LANDSAT/LC08/C01/T1_SR'). As explained in the documentation, I select my region of interest and the three bands related to RGB.



To transform my ImageCollection to a single image, I apply the median reduction on that collection. When it is done I compute the percentiles of the image to have the minimum value and the maximum value for each band. When it is done I put the values in the VisParams.



Is my methodology is correct to have the true color of the SR image ?



In tutorials given the value is hard-coded (generally min: 0 and max: 3000).
the other possibility is stretch method but this method only takes into account one value (which is the max of min quantile and max and max quantile).



As result the color image sightly change. Each method differ and the color as well and there is no information that discuss the true color of the image. I think defining the value for each band is the more realistic approach but I am not an expert in that field.



Note: The second method that use stretch is not really feasible in my case since the final code is written in python, thus 'tricks' that can be used on the browser editor does not always work with Python API.



Javascript code:



 var geometry = ee.Geometry.Polygon([[39.05789266 , 13.59051553],
[39.11335033 , 13.59051553],
[39.11335033 , 13.64477783],
[39.05789266 , 13.64477783],
[39.05789266 , 13.59051553]]);

/**
* Function to mask clouds based on the pixel_qa band of Landsat 8 SR data.
* @param {ee.Image} image input Landsat 8 SR image
* @return {ee.Image} cloudmasked Landsat 8 image
*/
function maskL8sr(image) {
// Bits 3 and 5 are cloud shadow and cloud, respectively.
var cloudShadowBitMask = (1 << 3);
var cloudsBitMask = (1 << 5);
// Get the pixel QA band.
var qa = image.select('pixel_qa');
// Both flags should be set to zero, indicating clear conditions.
var mask = qa.bitwiseAnd(cloudShadowBitMask).eq(0)
.and(qa.bitwiseAnd(cloudsBitMask).eq(0));
return image.updateMask(mask);
}

var dataset = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')
.filterBounds(geometry)
.filterDate('2016-01-01', '2016-12-31')
.map(maskL8sr)
.select(['B4', 'B3','B2']);

var image = dataset.median()
var percentiles = image.reduceRegion(ee.Reducer.percentile([0, 100], ['min', 'max']), geometry,30).getInfo();
print(percentiles)
var visParams = {
bands: ['B4', 'B3', 'B2'],
min: [percentiles['B4_min'], percentiles['B3_min'], percentiles['B2_min']],
max: [percentiles['B4_max'], percentiles['B3_max'], percentiles['B2_max']],
gamma: 1
};
Map.centerObject(geometry);
Map.addLayer(image, visParams);


Python code:



import ee

ee.Initialize()
SATELLITE_SR = 'LANDSAT/LC08/C01/T1_SR'
RGB = ['B4', 'B3', 'B2']
geometry = ee.Geometry.Polygon([[39.05789266, 13.59051553],
[39.11335033, 13.59051553],
[39.11335033, 13.64477783],
[39.05789266, 13.64477783],
[39.05789266, 13.59051553]])


def mask_l8_sr(image):
# Bits 3 and 5 are cloud shadow and cloud, respectively.
cloud_shadow_bit_mask = (1 << 3)
clouds_bit_mask = (1 << 5)
# Get the pixel QA band.
qa = image.select('pixel_qa')
# Both flags should be set to zero, indicating clear conditions.
mask = qa.bitwiseAnd(cloud_shadow_bit_mask).eq(0) and (qa.bitwiseAnd(clouds_bit_mask).eq(0))
return image.updateMask(mask)


dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDatefilterDate('2016-01-01', '2016-12-31').map(
mask_l8_sr).select(RGB)
image = dataset.reduce('median')
PERCENTILE_SCALE = 30 # Resolution in meters to compute the percentile at
percentiles = image.reduceRegion(ee.Reducer.percentile([0, 100], ['min', 'max']),
geometry, PERCENTILE_SCALE).getInfo()
# Extracting the results is annoying because EE prepends the channel name
minVal = [val for key, val in percentiles.items() if 'min' in key]
# splitVal = next(val for key, val in percentiles.items() if 'split' in key)
maxVal = [val for key, val in percentiles.items() if 'max' in key]
print(minVal)
print(maxVal)
reduction = image.visualize(bands=RGB,
min=list(reversed(minVal)), # reverse since bands are given in the other way (b2,b3,4b)
max=list(reversed(maxVal)),
gamma=1)

# export reduction to drive









share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Hi, I don't get what's the question. You say Is my methodology is correct to have the true color of the SR image?. You are using the correct bands (RGB) and the stretching depends in how you want to visualize. For example, when I need to visualize I use a global min and max, which is fine for what I need to do. But I guess it depends on your needs.

    – Rodrigo E. Principe
    Oct 28 '18 at 22:33













  • Well What I want is a realistic representation of images for human eyes. A representation that is close to a picture taken with a common camera. Well the method that use the global min and max value seems to work but there is no explanation given that explain why this method seems to be appropriate to represent a realistic picture.

    – Loic L.
    Oct 29 '18 at 9:02


















0















I try to export RGB images from ee.ImageCollection('LANDSAT/LC08/C01/T1_SR'). As explained in the documentation, I select my region of interest and the three bands related to RGB.



To transform my ImageCollection to a single image, I apply the median reduction on that collection. When it is done I compute the percentiles of the image to have the minimum value and the maximum value for each band. When it is done I put the values in the VisParams.



Is my methodology is correct to have the true color of the SR image ?



In tutorials given the value is hard-coded (generally min: 0 and max: 3000).
the other possibility is stretch method but this method only takes into account one value (which is the max of min quantile and max and max quantile).



As result the color image sightly change. Each method differ and the color as well and there is no information that discuss the true color of the image. I think defining the value for each band is the more realistic approach but I am not an expert in that field.



Note: The second method that use stretch is not really feasible in my case since the final code is written in python, thus 'tricks' that can be used on the browser editor does not always work with Python API.



Javascript code:



 var geometry = ee.Geometry.Polygon([[39.05789266 , 13.59051553],
[39.11335033 , 13.59051553],
[39.11335033 , 13.64477783],
[39.05789266 , 13.64477783],
[39.05789266 , 13.59051553]]);

/**
* Function to mask clouds based on the pixel_qa band of Landsat 8 SR data.
* @param {ee.Image} image input Landsat 8 SR image
* @return {ee.Image} cloudmasked Landsat 8 image
*/
function maskL8sr(image) {
// Bits 3 and 5 are cloud shadow and cloud, respectively.
var cloudShadowBitMask = (1 << 3);
var cloudsBitMask = (1 << 5);
// Get the pixel QA band.
var qa = image.select('pixel_qa');
// Both flags should be set to zero, indicating clear conditions.
var mask = qa.bitwiseAnd(cloudShadowBitMask).eq(0)
.and(qa.bitwiseAnd(cloudsBitMask).eq(0));
return image.updateMask(mask);
}

var dataset = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')
.filterBounds(geometry)
.filterDate('2016-01-01', '2016-12-31')
.map(maskL8sr)
.select(['B4', 'B3','B2']);

var image = dataset.median()
var percentiles = image.reduceRegion(ee.Reducer.percentile([0, 100], ['min', 'max']), geometry,30).getInfo();
print(percentiles)
var visParams = {
bands: ['B4', 'B3', 'B2'],
min: [percentiles['B4_min'], percentiles['B3_min'], percentiles['B2_min']],
max: [percentiles['B4_max'], percentiles['B3_max'], percentiles['B2_max']],
gamma: 1
};
Map.centerObject(geometry);
Map.addLayer(image, visParams);


Python code:



import ee

ee.Initialize()
SATELLITE_SR = 'LANDSAT/LC08/C01/T1_SR'
RGB = ['B4', 'B3', 'B2']
geometry = ee.Geometry.Polygon([[39.05789266, 13.59051553],
[39.11335033, 13.59051553],
[39.11335033, 13.64477783],
[39.05789266, 13.64477783],
[39.05789266, 13.59051553]])


def mask_l8_sr(image):
# Bits 3 and 5 are cloud shadow and cloud, respectively.
cloud_shadow_bit_mask = (1 << 3)
clouds_bit_mask = (1 << 5)
# Get the pixel QA band.
qa = image.select('pixel_qa')
# Both flags should be set to zero, indicating clear conditions.
mask = qa.bitwiseAnd(cloud_shadow_bit_mask).eq(0) and (qa.bitwiseAnd(clouds_bit_mask).eq(0))
return image.updateMask(mask)


dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDatefilterDate('2016-01-01', '2016-12-31').map(
mask_l8_sr).select(RGB)
image = dataset.reduce('median')
PERCENTILE_SCALE = 30 # Resolution in meters to compute the percentile at
percentiles = image.reduceRegion(ee.Reducer.percentile([0, 100], ['min', 'max']),
geometry, PERCENTILE_SCALE).getInfo()
# Extracting the results is annoying because EE prepends the channel name
minVal = [val for key, val in percentiles.items() if 'min' in key]
# splitVal = next(val for key, val in percentiles.items() if 'split' in key)
maxVal = [val for key, val in percentiles.items() if 'max' in key]
print(minVal)
print(maxVal)
reduction = image.visualize(bands=RGB,
min=list(reversed(minVal)), # reverse since bands are given in the other way (b2,b3,4b)
max=list(reversed(maxVal)),
gamma=1)

# export reduction to drive









share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Hi, I don't get what's the question. You say Is my methodology is correct to have the true color of the SR image?. You are using the correct bands (RGB) and the stretching depends in how you want to visualize. For example, when I need to visualize I use a global min and max, which is fine for what I need to do. But I guess it depends on your needs.

    – Rodrigo E. Principe
    Oct 28 '18 at 22:33













  • Well What I want is a realistic representation of images for human eyes. A representation that is close to a picture taken with a common camera. Well the method that use the global min and max value seems to work but there is no explanation given that explain why this method seems to be appropriate to represent a realistic picture.

    – Loic L.
    Oct 29 '18 at 9:02
















0












0








0








I try to export RGB images from ee.ImageCollection('LANDSAT/LC08/C01/T1_SR'). As explained in the documentation, I select my region of interest and the three bands related to RGB.



To transform my ImageCollection to a single image, I apply the median reduction on that collection. When it is done I compute the percentiles of the image to have the minimum value and the maximum value for each band. When it is done I put the values in the VisParams.



Is my methodology is correct to have the true color of the SR image ?



In tutorials given the value is hard-coded (generally min: 0 and max: 3000).
the other possibility is stretch method but this method only takes into account one value (which is the max of min quantile and max and max quantile).



As result the color image sightly change. Each method differ and the color as well and there is no information that discuss the true color of the image. I think defining the value for each band is the more realistic approach but I am not an expert in that field.



Note: The second method that use stretch is not really feasible in my case since the final code is written in python, thus 'tricks' that can be used on the browser editor does not always work with Python API.



Javascript code:



 var geometry = ee.Geometry.Polygon([[39.05789266 , 13.59051553],
[39.11335033 , 13.59051553],
[39.11335033 , 13.64477783],
[39.05789266 , 13.64477783],
[39.05789266 , 13.59051553]]);

/**
* Function to mask clouds based on the pixel_qa band of Landsat 8 SR data.
* @param {ee.Image} image input Landsat 8 SR image
* @return {ee.Image} cloudmasked Landsat 8 image
*/
function maskL8sr(image) {
// Bits 3 and 5 are cloud shadow and cloud, respectively.
var cloudShadowBitMask = (1 << 3);
var cloudsBitMask = (1 << 5);
// Get the pixel QA band.
var qa = image.select('pixel_qa');
// Both flags should be set to zero, indicating clear conditions.
var mask = qa.bitwiseAnd(cloudShadowBitMask).eq(0)
.and(qa.bitwiseAnd(cloudsBitMask).eq(0));
return image.updateMask(mask);
}

var dataset = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')
.filterBounds(geometry)
.filterDate('2016-01-01', '2016-12-31')
.map(maskL8sr)
.select(['B4', 'B3','B2']);

var image = dataset.median()
var percentiles = image.reduceRegion(ee.Reducer.percentile([0, 100], ['min', 'max']), geometry,30).getInfo();
print(percentiles)
var visParams = {
bands: ['B4', 'B3', 'B2'],
min: [percentiles['B4_min'], percentiles['B3_min'], percentiles['B2_min']],
max: [percentiles['B4_max'], percentiles['B3_max'], percentiles['B2_max']],
gamma: 1
};
Map.centerObject(geometry);
Map.addLayer(image, visParams);


Python code:



import ee

ee.Initialize()
SATELLITE_SR = 'LANDSAT/LC08/C01/T1_SR'
RGB = ['B4', 'B3', 'B2']
geometry = ee.Geometry.Polygon([[39.05789266, 13.59051553],
[39.11335033, 13.59051553],
[39.11335033, 13.64477783],
[39.05789266, 13.64477783],
[39.05789266, 13.59051553]])


def mask_l8_sr(image):
# Bits 3 and 5 are cloud shadow and cloud, respectively.
cloud_shadow_bit_mask = (1 << 3)
clouds_bit_mask = (1 << 5)
# Get the pixel QA band.
qa = image.select('pixel_qa')
# Both flags should be set to zero, indicating clear conditions.
mask = qa.bitwiseAnd(cloud_shadow_bit_mask).eq(0) and (qa.bitwiseAnd(clouds_bit_mask).eq(0))
return image.updateMask(mask)


dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDatefilterDate('2016-01-01', '2016-12-31').map(
mask_l8_sr).select(RGB)
image = dataset.reduce('median')
PERCENTILE_SCALE = 30 # Resolution in meters to compute the percentile at
percentiles = image.reduceRegion(ee.Reducer.percentile([0, 100], ['min', 'max']),
geometry, PERCENTILE_SCALE).getInfo()
# Extracting the results is annoying because EE prepends the channel name
minVal = [val for key, val in percentiles.items() if 'min' in key]
# splitVal = next(val for key, val in percentiles.items() if 'split' in key)
maxVal = [val for key, val in percentiles.items() if 'max' in key]
print(minVal)
print(maxVal)
reduction = image.visualize(bands=RGB,
min=list(reversed(minVal)), # reverse since bands are given in the other way (b2,b3,4b)
max=list(reversed(maxVal)),
gamma=1)

# export reduction to drive









share|improve this question
















I try to export RGB images from ee.ImageCollection('LANDSAT/LC08/C01/T1_SR'). As explained in the documentation, I select my region of interest and the three bands related to RGB.



To transform my ImageCollection to a single image, I apply the median reduction on that collection. When it is done I compute the percentiles of the image to have the minimum value and the maximum value for each band. When it is done I put the values in the VisParams.



Is my methodology is correct to have the true color of the SR image ?



In tutorials given the value is hard-coded (generally min: 0 and max: 3000).
the other possibility is stretch method but this method only takes into account one value (which is the max of min quantile and max and max quantile).



As result the color image sightly change. Each method differ and the color as well and there is no information that discuss the true color of the image. I think defining the value for each band is the more realistic approach but I am not an expert in that field.



Note: The second method that use stretch is not really feasible in my case since the final code is written in python, thus 'tricks' that can be used on the browser editor does not always work with Python API.



Javascript code:



 var geometry = ee.Geometry.Polygon([[39.05789266 , 13.59051553],
[39.11335033 , 13.59051553],
[39.11335033 , 13.64477783],
[39.05789266 , 13.64477783],
[39.05789266 , 13.59051553]]);

/**
* Function to mask clouds based on the pixel_qa band of Landsat 8 SR data.
* @param {ee.Image} image input Landsat 8 SR image
* @return {ee.Image} cloudmasked Landsat 8 image
*/
function maskL8sr(image) {
// Bits 3 and 5 are cloud shadow and cloud, respectively.
var cloudShadowBitMask = (1 << 3);
var cloudsBitMask = (1 << 5);
// Get the pixel QA band.
var qa = image.select('pixel_qa');
// Both flags should be set to zero, indicating clear conditions.
var mask = qa.bitwiseAnd(cloudShadowBitMask).eq(0)
.and(qa.bitwiseAnd(cloudsBitMask).eq(0));
return image.updateMask(mask);
}

var dataset = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')
.filterBounds(geometry)
.filterDate('2016-01-01', '2016-12-31')
.map(maskL8sr)
.select(['B4', 'B3','B2']);

var image = dataset.median()
var percentiles = image.reduceRegion(ee.Reducer.percentile([0, 100], ['min', 'max']), geometry,30).getInfo();
print(percentiles)
var visParams = {
bands: ['B4', 'B3', 'B2'],
min: [percentiles['B4_min'], percentiles['B3_min'], percentiles['B2_min']],
max: [percentiles['B4_max'], percentiles['B3_max'], percentiles['B2_max']],
gamma: 1
};
Map.centerObject(geometry);
Map.addLayer(image, visParams);


Python code:



import ee

ee.Initialize()
SATELLITE_SR = 'LANDSAT/LC08/C01/T1_SR'
RGB = ['B4', 'B3', 'B2']
geometry = ee.Geometry.Polygon([[39.05789266, 13.59051553],
[39.11335033, 13.59051553],
[39.11335033, 13.64477783],
[39.05789266, 13.64477783],
[39.05789266, 13.59051553]])


def mask_l8_sr(image):
# Bits 3 and 5 are cloud shadow and cloud, respectively.
cloud_shadow_bit_mask = (1 << 3)
clouds_bit_mask = (1 << 5)
# Get the pixel QA band.
qa = image.select('pixel_qa')
# Both flags should be set to zero, indicating clear conditions.
mask = qa.bitwiseAnd(cloud_shadow_bit_mask).eq(0) and (qa.bitwiseAnd(clouds_bit_mask).eq(0))
return image.updateMask(mask)


dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDatefilterDate('2016-01-01', '2016-12-31').map(
mask_l8_sr).select(RGB)
image = dataset.reduce('median')
PERCENTILE_SCALE = 30 # Resolution in meters to compute the percentile at
percentiles = image.reduceRegion(ee.Reducer.percentile([0, 100], ['min', 'max']),
geometry, PERCENTILE_SCALE).getInfo()
# Extracting the results is annoying because EE prepends the channel name
minVal = [val for key, val in percentiles.items() if 'min' in key]
# splitVal = next(val for key, val in percentiles.items() if 'split' in key)
maxVal = [val for key, val in percentiles.items() if 'max' in key]
print(minVal)
print(maxVal)
reduction = image.visualize(bands=RGB,
min=list(reversed(minVal)), # reverse since bands are given in the other way (b2,b3,4b)
max=list(reversed(maxVal)),
gamma=1)

# export reduction to drive






python google-earth-engine






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 28 '18 at 22:31









Rodrigo E. Principe

3,78611020




3,78611020










asked Oct 24 '18 at 18:45









Loic L.Loic L.

126




126





bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Hi, I don't get what's the question. You say Is my methodology is correct to have the true color of the SR image?. You are using the correct bands (RGB) and the stretching depends in how you want to visualize. For example, when I need to visualize I use a global min and max, which is fine for what I need to do. But I guess it depends on your needs.

    – Rodrigo E. Principe
    Oct 28 '18 at 22:33













  • Well What I want is a realistic representation of images for human eyes. A representation that is close to a picture taken with a common camera. Well the method that use the global min and max value seems to work but there is no explanation given that explain why this method seems to be appropriate to represent a realistic picture.

    – Loic L.
    Oct 29 '18 at 9:02





















  • Hi, I don't get what's the question. You say Is my methodology is correct to have the true color of the SR image?. You are using the correct bands (RGB) and the stretching depends in how you want to visualize. For example, when I need to visualize I use a global min and max, which is fine for what I need to do. But I guess it depends on your needs.

    – Rodrigo E. Principe
    Oct 28 '18 at 22:33













  • Well What I want is a realistic representation of images for human eyes. A representation that is close to a picture taken with a common camera. Well the method that use the global min and max value seems to work but there is no explanation given that explain why this method seems to be appropriate to represent a realistic picture.

    – Loic L.
    Oct 29 '18 at 9:02



















Hi, I don't get what's the question. You say Is my methodology is correct to have the true color of the SR image?. You are using the correct bands (RGB) and the stretching depends in how you want to visualize. For example, when I need to visualize I use a global min and max, which is fine for what I need to do. But I guess it depends on your needs.

– Rodrigo E. Principe
Oct 28 '18 at 22:33







Hi, I don't get what's the question. You say Is my methodology is correct to have the true color of the SR image?. You are using the correct bands (RGB) and the stretching depends in how you want to visualize. For example, when I need to visualize I use a global min and max, which is fine for what I need to do. But I guess it depends on your needs.

– Rodrigo E. Principe
Oct 28 '18 at 22:33















Well What I want is a realistic representation of images for human eyes. A representation that is close to a picture taken with a common camera. Well the method that use the global min and max value seems to work but there is no explanation given that explain why this method seems to be appropriate to represent a realistic picture.

– Loic L.
Oct 29 '18 at 9:02







Well What I want is a realistic representation of images for human eyes. A representation that is close to a picture taken with a common camera. Well the method that use the global min and max value seems to work but there is no explanation given that explain why this method seems to be appropriate to represent a realistic picture.

– Loic L.
Oct 29 '18 at 9:02












1 Answer
1






active

oldest

votes


















0














There has an error for python code :



dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDatefilterDate('2016-01-01', '2016-12-31').map(


AttributeError: 'ImageCollection' object has no attribute 'filterDatefilterDate'



it should be :



dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDate('2016-01-01', '2016-12-31').map(
mask_l8_sr).select(RGB)






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "79"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f300065%2fgoogle-earth-engine-get-true-color-rgb-of-landsat-8-sr%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    There has an error for python code :



    dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDatefilterDate('2016-01-01', '2016-12-31').map(


    AttributeError: 'ImageCollection' object has no attribute 'filterDatefilterDate'



    it should be :



    dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDate('2016-01-01', '2016-12-31').map(
    mask_l8_sr).select(RGB)






    share|improve this answer




























      0














      There has an error for python code :



      dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDatefilterDate('2016-01-01', '2016-12-31').map(


      AttributeError: 'ImageCollection' object has no attribute 'filterDatefilterDate'



      it should be :



      dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDate('2016-01-01', '2016-12-31').map(
      mask_l8_sr).select(RGB)






      share|improve this answer


























        0












        0








        0







        There has an error for python code :



        dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDatefilterDate('2016-01-01', '2016-12-31').map(


        AttributeError: 'ImageCollection' object has no attribute 'filterDatefilterDate'



        it should be :



        dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDate('2016-01-01', '2016-12-31').map(
        mask_l8_sr).select(RGB)






        share|improve this answer













        There has an error for python code :



        dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDatefilterDate('2016-01-01', '2016-12-31').map(


        AttributeError: 'ImageCollection' object has no attribute 'filterDatefilterDate'



        it should be :



        dataset = ee.ImageCollection(SATELLITE_SR).filterBounds(geometry).filterDate('2016-01-01', '2016-12-31').map(
        mask_l8_sr).select(RGB)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 3 at 0:32









        iqbalhabibie habibieiqbalhabibie habibie

        11




        11






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f300065%2fgoogle-earth-engine-get-true-color-rgb-of-landsat-8-sr%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Щит и меч (фильм) Содержание Названия серий | Сюжет |...

            is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

            Meter-Bus Содержание Параметры шины | Стандартизация |...