Commit 6bcb57636711ff8f5ce69a45e88588d72c15c147

Authored by Jordi Inglada
1 parent 796875d0
Exists in master and in 1 other branch avignon

ENH: integration of S2Agri Ukr in validation

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
scripts/validation.py
... ... @@ -26,7 +26,7 @@ from spot4_data import *
26 26 from spot5_data import *
27 27 from landsat_data import *
28 28 from landsat2015_data import *
29   -
  29 +from s2_10m_ukr_data import *
30 30  
31 31  
32 32 config_file = file(sys.argv[1])
... ... @@ -57,6 +57,7 @@ spot4 = bool(str(cfg.sensors.spot4)=="yes")
57 57 landsat2013 = bool(str(cfg.sensors.landsat2013)=="yes")
58 58 spot5 = bool(str(cfg.sensors.spot5)=="yes")
59 59 landsat2015 = bool(str(cfg.sensors.landsat2015)=="yes")
  60 +s2_10m_ukr = bool(str(cfg.sensors.s2_10m_ukr)=="yes")
60 61  
61 62 print "Working dir = ", working_dir
62 63  
... ... @@ -87,6 +88,8 @@ if spot5 :
87 88 simus_list.append(spot5_data)
88 89 if landsat2015 :
89 90 simus_list.append(lsat2015_data)
  91 +if s2_10m_ukr:
  92 + simus_list.append(s2_10m_ukr_data)
90 93  
91 94 for sat in simus_list:
92 95 sat_name = sat[0]
... ... @@ -105,6 +108,9 @@ for sat in simus_list:
105 108 if (sat_name == "landsat8" or sat_name == "landsat82015") and useVI:
106 109 red_index = 2
107 110 nir_index = 3
  111 + if(sat_name == "s2_10m_ukr") and useVI:
  112 + red_index = 3
  113 + nir_index = 4
108 114  
109 115 print useVI, red_index, nir_index
110 116 for acqu in sat[2:]:
... ...