예제 #1
0
        row = '0%s' % cmdargs.row
    else:
        row = cmdargs.row

    print path,row
    scene = 'p%sr%s' % (path,row)
    print scene 

    for year in range(int(cmdargs.startYear),int(cmdargs.endYear)+1):
        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)
 
예제 #2
0
    for year in range(int(cmdargs.startYear),int(cmdargs.endYear)+1):
        if obs.season == 'summer':
            obs.stage = 'djo'
            gcSeason  = 'lztmre_%s_m%s12%s02_dixa2.img' % (scene,year-1,year)
        if obs.season == 'autumn':
            obs.stage = 'djp'
            gcSeason = 'lztmre_%s_m%s03%s05_dixa2.img' % (scene,year,year)
        if obs.season == 'winter':
            obs.stage = 'djq'
            gcSeason = 'lztmre_%s_m%s06%s08_dixa2.img' % (scene,year,year)
        if obs.season == 'spring':
            obs.stage = 'djr'
            gcSeason = 'lztmre_%s_m%s09%s11_dixa2.img' % (scene,year,year)

        for zone in [3,4,5,6]:
            if qv.existsonfilestore(qvf.changeutmzone(gcSeason,zone)):
                obs.inputImages.append(qvf.changeutmzone(gcSeason,zone))
            
    qv.recallToHere(obs.inputImages)
   
    produceTotal(obs)

    for image in obs.inputImages:
        os.remove(image)