def recallList(sceneListTemp, recallStage): """ Define and recall landsat images with stage """ recallList = [] for scene in sceneListTemp: scene = qvf.changestage(scene, recallStage) if not os.path.exists(scene) and qv.existsonfilestore(scene): recallList.append(scene) qv.recallToHere(recallList)
gcSummer = 'lztmre_%s_m%s12%s02_%sa2.img' % (scene,year-1,year,obs.stage) gcAutumn = 'lztmre_%s_m%s03%s05_%sa2.img' % (scene,year,year,obs.stage) gcWinter = 'lztmre_%s_m%s06%s08_%sa2.img' % (scene,year,year,obs.stage) gcSpring = 'lztmre_%s_m%s09%s11_%sa2.img' % (scene,year,year,obs.stage) for zone in [3,4,5,6]: if qv.existsonfilestore(qvf.changeutmzone(gcSummer,zone)): obs.inputImages.append(qvf.changeutmzone(gcSummer,zone)) if qv.existsonfilestore(qvf.changeutmzone(gcAutumn,zone)): obs.inputImages.append(qvf.changeutmzone(gcAutumn,zone)) if qv.existsonfilestore(qvf.changeutmzone(gcWinter,zone)): obs.inputImages.append(qvf.changeutmzone(gcWinter,zone)) if qv.existsonfilestore(qvf.changeutmzone(gcSpring,zone)): obs.inputImages.append(qvf.changeutmzone(gcSpring,zone)) qv.recallToHere(obs.inputImages) produceTotal(obs) for image in obs.inputImages: os.remove(image)