To get near infrared band reflectance values for S2 and L8 and I setup the S2 NIR layer JS script as: return [B08];
The pixel values show as min of 0 and max of 0 for the NIR band when I open in ArcMap…
s2r5 = WcsRequest(data_source=DataSource.SENTINEL2_L1C,
layer=‘S2NIR’,
bbox=taber,
time=(‘2017-04-01’, ‘2017-06-01’),
resx=‘10m’, resy=‘10m’,
maxcc=0.1,
instance_id=‘my-instance’,
image_format=MimeType.TIFF_d32f,
data_folder = ‘C:/POC/S21’,
custom_url_params={CustomUrlParam.ATMFILTER: ‘ATMCOR’,
CustomUrlParam.TRANSPARENT: True,
CustomUrlParam.SHOWLOGO: False,
CustomUrlParam.QUALITY: ‘100’,
CustomUrlParam.PREVIEW: ‘0’,
CustomUrlParam.UPSAMPLING: ‘NEAREST’,
CustomUrlParam.DOWNSAMPLING: ‘NEAREST’,
CustomUrlParam.BGCOLOR: False})
s2r5.save_data()
os.listdir(s2r5.data_folder)