def do_cc(self): self.do_progress(text='Performing conditional correlation') self.cf = pio.loadcontrolfile('../controlfiles') InLevel = 'L1' self.ds = pio.xl_read_series_hf(self.cf, InLevel) pts.conditional_correlation(self.cf, self.ds) self.do_progress(text='Finished conditional correlation') print '\a'
def do_cc(self): self.do_progress(text='Performing conditional correlation') self.cf = pio.loadcontrolfile('../controlfiles') InLevel = 'L1' self.ds = pio.xl_read_series_hf(self.cf,InLevel) pts.conditional_correlation(self.cf,self.ds) self.do_progress(text='Finished conditional correlation') print '\a'
def do_xl2ncCall(self): self.do_progress(text='Load xl2nc Control File ...') self.cf = pio.loadcontrolfile('../controlfiles') if len(self.cf)==0: self.do_progress(text='Waiting for input ...') return self.do_progress(text='Importing Xcel file -> NetCDF v4 ...') if putils.cfkeycheck(self.cf,'General','InLevel') and putils.cfkeycheck(self.cf,'General','OutLevel'): InLevel = self.cf['General']['InLevel'] OutLevel = self.cf['General']['OutLevel'] else: InLevel = 'L3' OutLevel = 'L3' pio.autoxl2nc(self.cf,InLevel,OutLevel) self.do_progress(text='Finished Data Ingest') log.info(' Finished Data Ingest') print '\a'
def do_savexL6(self): self.do_progress(text='Exporting L4 Diurnal NetCDF -> Xcel ...') # put up the progress message if (putils.cfkeycheck(self.cf,'Output','DefaultXl') and self.cf['Output']['DefaultXl'] == 'False'): self.cf = pio.loadcontrolfile('../controlfiles') if len(self.cf)==0: self.do_progress(text='Waiting for input ...') return if putils.cfkeycheck(self.cf,Base='General',ThisOne='InputLevel') and putils.cfkeycheck(self.cf,Base='General',ThisOne='OutputLevel'): InLevel = self.cf['General']['InputLevel'] OutLevel = self.cf['General']['OutputLevel'] else: InLevel = 'L3' OutLevel = 'Partitioning' pio.autonc2xl(self.cf,InLevel,OutLevel) self.do_progress(text='Finished L4 Data Export') # tell the user we are done log.info(' Finished saving L4 data') print '\a'
def do_xl2ncCall(self): self.do_progress(text='Load xl2nc Control File ...') self.cf = pio.loadcontrolfile('../controlfiles') if len(self.cf) == 0: self.do_progress(text='Waiting for input ...') return self.do_progress(text='Importing Xcel file -> NetCDF v4 ...') if putils.cfkeycheck(self.cf, 'General', 'InLevel') and putils.cfkeycheck( self.cf, 'General', 'OutLevel'): InLevel = self.cf['General']['InLevel'] OutLevel = self.cf['General']['OutLevel'] else: InLevel = 'L3' OutLevel = 'L3' pio.autoxl2nc(self.cf, InLevel, OutLevel) self.do_progress(text='Finished Data Ingest') log.info(' Finished Data Ingest') print '\a'
def do_l3_er_night(self): self.cf = pio.loadcontrolfile('../controlfiles') if len(self.cf)==0: self.do_progress(text='Waiting for input ...') return if putils.cfkeycheck(self.cf,Base='General',ThisOne='InputLevel'): InLevel = self.cf['General']['InputLevel'] else: InLevel = 'L3' self.ds2 = pio.nc_read_series(self.cf,InLevel) self.do_progress(text='Doing partitioning prep...') self.ds3 = pls.l3partition(self.cf,self.ds2) self.do_progress(text='Finished partitioning prep') self.do_progress(text='Saving L3 Partitioning NetCDF data ...') # put up the progress message if putils.cfkeycheck(self.cf,Base='General',ThisOne='OutputLevel'): OutLevel = self.cf['General']['OutputLevel'] else: OutLevel = 'Partitioning' pio.nc_write_series(self.cf,self.ds3,OutLevel) # save the L3 data self.do_progress(text='Finished L3 ER_night Partitioning') # tell the user we are done log.info(' Finished saving L3 Partitioning NetCDF data') print '\a'
def do_l6_partition(self): self.cf = pio.loadcontrolfile('../controlfiles') if len(self.cf)==0: self.do_progress(text='Waiting for input ...') return if putils.cfkeycheck(self.cf,Base='General',ThisOne='InputLevel'): InLevel = self.cf['General']['InputLevel'] else: InLevel = 'L5' self.ds5 = pio.nc_read_series(self.cf,InLevel) self.do_progress(text='Partitioning daytime ER_dark and GPP...') self.ds6 = pls.l6partition(self.cf,self.ds5) self.do_progress(text='Finished partitioning daytime ER_dark and GPP') self.do_progress(text='Saving L4 Partitioning NetCDF data ...') # put up the progress message if putils.cfkeycheck(self.cf,Base='General',ThisOne='OutputLevel'): OutLevel = self.cf['General']['OutputLevel'] else: OutLevel = 'Partitioning' pio.nc_write_series(self.cf,self.ds6,OutLevel) # save the L3 data self.do_progress(text='Finished L6 Partitioning') # tell the user we are done log.info(' Finished saving L6 Partitioning NetCDF data') print '\a'
def do_savexL6(self): self.do_progress(text='Exporting L4 Diurnal NetCDF -> Xcel ...' ) # put up the progress message if (putils.cfkeycheck(self.cf, 'Output', 'DefaultXl') and self.cf['Output']['DefaultXl'] == 'False'): self.cf = pio.loadcontrolfile('../controlfiles') if len(self.cf) == 0: self.do_progress(text='Waiting for input ...') return if putils.cfkeycheck( self.cf, Base='General', ThisOne='InputLevel') and putils.cfkeycheck( self.cf, Base='General', ThisOne='OutputLevel'): InLevel = self.cf['General']['InputLevel'] OutLevel = self.cf['General']['OutputLevel'] else: InLevel = 'L3' OutLevel = 'Partitioning' pio.autonc2xl(self.cf, InLevel, OutLevel) self.do_progress( text='Finished L4 Data Export') # tell the user we are done log.info(' Finished saving L4 data') print '\a'
def do_l6_partition(self): self.cf = pio.loadcontrolfile('../controlfiles') if len(self.cf) == 0: self.do_progress(text='Waiting for input ...') return if putils.cfkeycheck(self.cf, Base='General', ThisOne='InputLevel'): InLevel = self.cf['General']['InputLevel'] else: InLevel = 'L5' self.ds5 = pio.nc_read_series(self.cf, InLevel) self.do_progress(text='Partitioning daytime ER_dark and GPP...') self.ds6 = pls.l6partition(self.cf, self.ds5) self.do_progress(text='Finished partitioning daytime ER_dark and GPP') self.do_progress(text='Saving L4 Partitioning NetCDF data ...' ) # put up the progress message if putils.cfkeycheck(self.cf, Base='General', ThisOne='OutputLevel'): OutLevel = self.cf['General']['OutputLevel'] else: OutLevel = 'Partitioning' pio.nc_write_series(self.cf, self.ds6, OutLevel) # save the L3 data self.do_progress( text='Finished L6 Partitioning') # tell the user we are done log.info(' Finished saving L6 Partitioning NetCDF data') print '\a'
def do_l3_er_night(self): self.cf = pio.loadcontrolfile('../controlfiles') if len(self.cf) == 0: self.do_progress(text='Waiting for input ...') return if putils.cfkeycheck(self.cf, Base='General', ThisOne='InputLevel'): InLevel = self.cf['General']['InputLevel'] else: InLevel = 'L3' self.ds2 = pio.nc_read_series(self.cf, InLevel) self.do_progress(text='Doing partitioning prep...') self.ds3 = pls.l3partition(self.cf, self.ds2) self.do_progress(text='Finished partitioning prep') self.do_progress(text='Saving L3 Partitioning NetCDF data ...' ) # put up the progress message if putils.cfkeycheck(self.cf, Base='General', ThisOne='OutputLevel'): OutLevel = self.cf['General']['OutputLevel'] else: OutLevel = 'Partitioning' pio.nc_write_series(self.cf, self.ds3, OutLevel) # save the L3 data self.do_progress(text='Finished L3 ER_night Partitioning' ) # tell the user we are done log.info(' Finished saving L3 Partitioning NetCDF data') print '\a'