Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 3.04 KB

09.band_adjustment.md

File metadata and controls

49 lines (38 loc) · 3.04 KB

09. Band Adjustment

Objective

General Instruction

Core script

var bound = ee.Geometry.Polygon([
  [[35.96060746534647,33.815740435596645], [36.00472443922342,33.815740435596645], [36.00472443922342,33.85366939280121], [35.96060746534647,33.85366939280121], [35.96060746534647,33.815740435596645]]
]);
var bandIn = ['B2','B3','B4','B5','B6','B7'];
var bandOut = ['blue','green','red','nir','swir1','swir2'];
//Example images of S2 and L8
var imgS2SR = ee.Image('COPERNICUS/S2_SR/20181107T082129_20181107T082732_T36SYC').select(bandIn,bandOut).clip(bound);
var imgL8SR = ee.Image('LANDSAT/LC08/C01/T1_SR/LC08_174036_20181107').select(bandIn,bandOut).clip(bound);

var interceptsL8 = [-0.0107,0.0026,-0.0015,0.0033,0.0065,0.0046];
var slopesL8 = [1.0946,1.0043,1.0524,0.8954,1.0049,1.0002];

var imgL8SR_bandadj = ee.Image(imgL8SR.multiply(slopesL8).add(interceptsL8).float().copyProperties(imgL8SR)).set('system:time_start',imgL8SR.get('system:time_start'))

Visualization and Checking

print(imgL8SR_bandadj)
Map.centerObject(bound,12)
var visParams = {bands: ['red','green','blue'], min:0, max: 3500};
Map.addLayer(imgL8SR, visParams, 'imgL8SR 30m');
Map.addLayer(imgS2SR, visParams, 'imgS2SR 10m');
Map.addLayer(imgL8SR_bandadj, visParams, 'imgL8SR_bandadj'); 
  • Before Band Adjustment.

beforeBandadj.

  • After Band Adjustment.

afterBandadj.

References

  1. Barsi, J.A., Alhammoud, B., Czapla-Myers, J., Gascon, F., Haque, M.O., Kaewmanee, M., Leigh, L., Markham, B.L., 2018. Sentinel-2A MSI and Landsat-8 OLI radiometric cross comparison over desert sites. European Journal of Remote Sensing 51, 822–837. https://doi.org/10.1080/22797254.2018.1507613
  2. Chastain, R., Housman, I., Goldstein, J., Finco, M., Tenneson, K., 2019. Empirical cross sensor comparison of Sentinel-2A and 2B MSI, Landsat-8 OLI, and Landsat-7 ETM+ top of atmosphere spectral characteristics over the conterminous United States. Remote Sensing of Environment 221, 274–285. https://doi.org/10.1016/j.rse.2018.11.012
  3. Claverie, M., Ju, J., Masek, J.G., Dungan, J.L., Vermote, E.F., Roger, J.-C., Skakun, S.V., Justice, C., 2018. The Harmonized Landsat and Sentinel-2 surface reflectance data set. Remote Sensing of Environment 219, 145–161. https://doi.org/10.1016/j.rse.2018.09.002