I don't know if I am the only one who struggles with this, but I seem to have a lot of problems selecting the best parameters to visualize images in Google Earth Engine. I am wondering if anyone has a methodology for doing this for multiband images (e.g. Landsat)?
I don't need to know what the best parameters are, but rather the best method for selecting parameters.
> var ROI = ee.Geometry.Rectangle(-79.6179, 34.8945,-78.7994, 35.2923);
>
> var landsat5 = "LANDSAT/LT05/C01/T1_SR";
>
> var start = '1998-09-24';
> var end = '1998-09-29';
>
> var collection = ee.ImageCollection(landsat5)
> .filter(ee.Filter.eq('WRS_PATH', 16))
> .filter(ee.Filter.eq('WRS_ROW', 36))
> .filterDate(start, end);
>
> var image = ee.Image(collection.first()); // get first image
>
> // Define the visualization parameters.
> var visParams = {
> bands: ['B3', 'B2', 'B1'],
> min: 0,
> max: 2500,
> gamma: [0.95, 1.1, 1]
> };
>
> Map.centerObject(ROI); Map.addLayer(image,visParams,
> 'image');
I know that I can change min, max, and gamma, but I always feel like I am just shooting in the dark.