-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_bands.py
32 lines (23 loc) · 1.06 KB
/
get_bands.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/python
""" Define bands used by BALTIC+ AC """
import re
import sys
def main(sensor):
if sensor == 'OLCI':
bands_sat = [400,412,443,490,510,560,620,665,674,681,709,754,760,764,767,779,865,885,900,940,1020]
bands_chi2 = [400,412,443,490,510,560,620,665,674,681, 754, 779,865,885]#, 1020]
bands_corr = [400,412,443,490,510,560,620,665,674,681, 754, 779,865,885]#, 1020]
bands_abs = [ 760,764,767, 900,940]
elif sensor == 'S2MSI':
bands_sat = [443, 490, 560, 665, 705, 740, 783, 842, 865, 945, 1375, 1610, 2190]
bands_corr = [443, 490, 560, 665, 705, 740, 783, 865]
bands_chi2 = [443, 490, 560, 665, 705, 740, 783, 865]
bands_abs = []
else:
print( "Unknown sensor %s"%sensor)
sys.exit(1)
return(bands_sat, bands_corr, bands_chi2, bands_abs)
if __name__ == "__main__":
import sys
arg = ' '.join(sys.argv[1:])
main(arg)