In [1]:
%run basics
%matplotlib


Using matplotlib backend: Qt4Agg

In [2]:
def gfalternate_main(ds_tower,ds_alt,alternate_info,label_tower_list=[]):
    '''
    This is the main routine for using alternate data to gap fill drivers.
    '''
    mode = "quiet"  #"verbose"
    ts = alternate_info["time_step"]
    startdate = alternate_info["startdate"]
    enddate = alternate_info["enddate"]
    print "Gap filling using alternate data: "+startdate+" to "+enddate
    # close any open plot windows
    if len(plt.get_fignums())!=0:
        for i in plt.get_fignums():
            if i!=0: plt.close(i)
    # read the control file again
    cfname = ds_tower.globalattributes["controlfile_name"]
    cf = qcio.get_controlfilecontents(cfname,mode="quiet")
    # do any QC checks
    qcck.do_qcchecks(cf,ds_tower,mode="quiet")
    # update the ds.alternate dictionary
    qcgf.gfalternate_updatedict(cf,ds_tower,ds_alt)
    # get local pointer to the datetime series
    ldt_tower = ds_tower.series["DateTime"]["Data"]
    attr_ldt_tower = ds_tower.series["DateTime"]["Attr"]
    si_tower = qcutils.GetDateIndex(ldt_tower,str(alternate_info["startdate"]),ts=ts,default=0)
    ei_tower = qcutils.GetDateIndex(ldt_tower,str(alternate_info["enddate"]),ts=ts,default=len(ldt_tower)-1)
    # now loop over the variables to be gap filled using the alternate data
    if len(label_tower_list)==0:
        label_tower_list = list(set(alternate_info["series_list"]))
    for fig_num,label_tower in enumerate(label_tower_list):
        alternate_info["label_tower"] = label_tower
        label_composite = label_tower+"_composite"
        alternate_info["label_composite"] = label_composite
        # read the tower data and check for gaps
        data_tower,flag_tower,attr_tower = qcutils.GetSeriesasMA(ds_tower,label_tower,si=si_tower,ei=ei_tower)
        alternate_info["min_points"] = int(len(data_tower)*alternate_info["min_percent"]/100)
        # check to see if we have any gaps to fill
        if not qcgf.gfalternate_gotgaps(data_tower,label_tower,mode=mode):
            # if there are no gaps, fill the composite series with tower data so coverage lines will plot
            ds_tower.series[label_composite]["Data"][si_tower:ei_tower+1] = numpy.ma.filled(data_tower,c.missing_value)
            ds_tower.series[label_composite]["Flag"][si_tower:ei_tower+1] = flag_tower
            continue
        # initialise a dictionary to hold the data
        data_dict = {}
        stats_dict = {}
        data_dict[label_tower] = {"attr":attr_tower,"output_list":[label_tower]}
        stats_dict[label_tower] = {"startdate":alternate_info["startdate"],"enddate":alternate_info["enddate"]}
        # get a list of the output names for this tower series
        label_output_list = qcgf.gfalternate_getlabeloutputlist(ds_tower,label_tower)
        # loop over the outputs for this tower series
        for label_output in label_output_list:
            alternate_info["label_output"] = label_output
            # update the alternate_info dictionary
            qcgf.gfalternate_update_alternate_info(ds_tower,alternate_info)
            # get a local pointer to the alternate data structure
            ds_alternate = ds_alt[ds_tower.alternate[label_output]["file_name"]]
            ldt_alternate = ds_alternate.series["DateTime"]["Data"]
            attr_ldt_alternate = ds_alternate.series["DateTime"]["Attr"]
            # get the indices of the start and end datetimes
            qcgf.gfalternate_getdateindices(ldt_tower,ldt_alternate,alternate_info,"exact")
            # check that the start and end times match
            if not qcgf.gfalternate_startendtimesmatch(ldt_tower,ldt_alternate,alternate_info,mode=mode): continue
            # get the tower data, check we have enough points and if we have, update the data_dict
            si = alternate_info["tower"]["si"]; ei = alternate_info["tower"]["ei"]
            data_dict["DateTime"] = {"data":ldt_tower[si:ei+1]}
            data_tower,flag_tower,attr_tower = qcutils.GetSeriesasMA(ds_tower,label_tower,si=si,ei=ei)
            if not qcgf.gfalternate_gotminpoints(data_tower,alternate_info,label_tower,mode=mode): pass
            # looks like we have enough to continue so load the dictionaries
            stats_dict[label_output] = {"startdate":alternate_info["startdate"],"enddate":alternate_info["enddate"]}
            stats_dict[label_composite] = {"startdate":alternate_info["startdate"],"enddate":alternate_info["enddate"]}
            data_dict[label_tower]["data"] = data_tower
            data_dict[label_output] = {"data":numpy.ma.masked_all_like(data_tower),
                                       "fitcorr":numpy.ma.masked_all_like(data_tower),
                                       "attr":attr_tower,"source":alternate_info["source"]}
            if label_composite not in data_dict.keys():
                data_dict[label_composite] = {"data":numpy.ma.masked_all_like(data_tower),
                                              "fitcorr":numpy.ma.masked_all_like(data_tower),
                                              "attr":attr_tower}
                data_dict[label_tower]["output_list"].append(label_composite)
            # get the alternate series that has the highest correlation with the tower data
            alternate_var_list = qcgf.gfalternate_getalternatevaratmaxr(data_dict,ds_alternate,alternate_info)
            # loop over alternate variables
            for label_alternate in alternate_var_list:
                alternate_info["label_alternate"] = label_alternate
                # get the raw alternate data
                si = alternate_info["alternate"]["si"]; ei = alternate_info["alternate"]["ei"]; mode = alternate_info["getseries_mode"]
                data_alternate,flag_alternate,attr_alternate = qcutils.GetSeriesasMA(ds_alternate,label_alternate,si=si,ei=ei,mode=mode)
                # skip this alternate variable if there are not enough points
                if not qcgf.gfalternate_gotminpoints(data_alternate,alternate_info,label_alternate,mode=mode): continue
                if not qcgf.gfalternate_gotdataforgaps(data_dict[alternate_info["label_output"]]["data"],
                                                  data_alternate,label_alternate,mode=mode): continue
                # this alternate series can fill gaps, let's continue
                stats_dict[label_output][label_alternate] = {"startdate":alternate_info["startdate"],"enddate":alternate_info["enddate"]}
                if label_output not in data_dict[label_tower]["output_list"]:
                    data_dict[label_tower]["output_list"].append(label_output)
                data_dict[label_output][label_alternate] = {"data":data_alternate,"attr":attr_alternate}
                gfalternate_getlagcorrecteddata(ds_alternate,data_dict,stats_dict,alternate_info)
                qcgf.gfalternate_getfitcorrecteddata(data_dict,stats_dict,alternate_info)
                qcgf.gfalternate_loadoutputdata(ds_tower,data_dict,alternate_info)
                # check to see if we have alternate data for this whole period, if so there is no reason to continue
                si = alternate_info["tower"]["si"]; ei = alternate_info["tower"]["ei"]
                ind_tower = numpy.where(abs(ds_tower.series[label_output]["Data"][si:ei+1]-float(c.missing_value))<c.eps)[0]
                if len(ind_tower)==0: break
        # we have completed the loop over the alternate data for this output
        # now do the statistics, diurnal average and daily averages for this output
        qcgf.gfalternate_getoutputstatistics(data_dict,stats_dict,alternate_info)
        diel_avg = qcgf.gfalternate_getdielaverage(data_dict,alternate_info)
        # plot the gap filled data
        pd = qcgf.gfalternate_initplot(data_dict,alternate_info)
        # reserve figure number 0 for the coverage lines/progress plot
        fig_num = fig_num+1
        qcgf.gfalternate_plotcomposite(fig_num,data_dict,stats_dict,diel_avg,alternate_info,pd)
    # make sure this processing step gets written to the global attribute "Functions"
    if "GapFillFromalternate" not in ds_tower.globalattributes["Functions"]:
        ds_tower.globalattributes["Functions"] = ds_tower.globalattributes["Functions"]+", GapFillFromalternate"

In [3]:
def gfalternate_getlagcorrecteddata(ds_alternate,data_dict,stats_dict,alternate_info):
    label_tower = alternate_info["label_tower"]
    label_output = alternate_info["label_output"]
    label_alternate = alternate_info["label_alternate"]
    if alternate_info["lag"].lower()=="yes":
        data_tower = data_dict[label_tower]["data"]
        data_alternate = data_dict[label_output][label_alternate]["data"]
        maxlags = alternate_info["max_lags"]
        minpoints = alternate_info["min_points"]
        lags,corr = get_laggedcorrelation(data_tower,data_alternate,maxlags,minpoints)
        nLags = numpy.argmax(corr) - alternate_info["max_lags"]
        si = alternate_info["alternate"]["si"] - nLags
        ei = alternate_info["alternate"]["ei"] - nLags
        data,flag,attr = qcutils.GetSeriesasMA(ds_alternate,label_alternate,si=si,ei=ei,mode="pad")
        data_dict[label_output][label_alternate]["lagcorr"] = data
        stats_dict[label_output][label_alternate]["nLags"] = nLags
    else:
        data_dict[label_output][label_alternate]["lagcorr"] = numpy.ma.copy(data_dict[label_output][label_alternate]["data"])
        stats_dict[label_output][label_alternate]["nLags"] = int(0)

In [4]:
def get_laggedcorrelation(x_in,y_in,maxlags,minpoints):
    """
    Calculate the lagged cross-correlation between 2 1D arrays.
    Taken from the matplotlib.pyplot.xcorr source code.
    PRI added handling of masked arrays.
    """
    if numpy.ma.isMA(x_in)!=numpy.ma.isMA(y_in):
        raise ValueError('qcts.get_laggedcorrelation: one of x or y is a masked array, the other is not')
    lags = numpy.arange(-maxlags,maxlags+1)
    if numpy.ma.isMA(x_in) and numpy.ma.isMA(y_in):
        mask = numpy.ma.mask_or(x_in.mask,y_in.mask)
        x = numpy.ma.array(x_in,mask=mask)
        y = numpy.ma.array(y_in,mask=mask)
        if numpy.ma.count(x)<minpoints:
            #log.error('qcts.get_laggedcorrelation: x or y all masked')
            corr = numpy.zeros(len(lags))
            return lags,corr
        x = numpy.ma.compressed(x)
        y = numpy.ma.compressed(y)
    nx = len(x)
    if nx!=len(y):
        raise ValueError('qcts.get_laggedcorrelation: x and y must be equal length')
    corr = numpy.correlate(x, y, mode=2)
    corr/= numpy.sqrt(numpy.dot(x,x) * numpy.dot(y,y))
    if maxlags is None: maxlags = nx - 1
    if maxlags >= nx or maxlags < 1:
        raise ValueError('qcts.get_laggedcorrelation: maglags must be None or strictly positive < %d'%nx)
    corr = corr[nx-1-maxlags:nx+maxlags]
    return lags,corr

In [5]:
def gfalternate_loadoutputdata(ds_tower,data_dict,alternate_info):
    label_tower = alternate_info["label_tower"]
    label_output = alternate_info["label_output"]
    label_composite = alternate_info["label_composite"]
    label_alternate = alternate_info["label_alternate"]
    data_tower = data_dict[label_tower]["data"]
    if numpy.ma.count(data_tower)<alternate_info["min_points"] and alternate_info["fit_type"]!="replace": return
    si = alternate_info["tower"]["si"]
    ei = alternate_info["tower"]["ei"]
    ind = numpy.where((numpy.ma.getmaskarray(data_dict[label_output]["data"])==True)&
                         (numpy.ma.getmaskarray(data_dict[label_output][label_alternate]["data"])==False))[0]
    #ind = numpy.ma.where((numpy.ma.getmaskarray(data_dict[label_output]["data"])==True)&
                         #(numpy.ma.getmaskarray(data_dict[label_output][label_alternate]["data"])==False))[0]
    data_dict[label_output]["data"][ind] = data_dict[label_output][label_alternate]["data"][ind]
    data_dict[label_output]["fitcorr"][ind] = data_dict[label_output][label_alternate]["fitcorr"][ind]
    ind = numpy.where((numpy.ma.getmaskarray(data_dict[label_composite]["data"])==True)&
                         (numpy.ma.getmaskarray(data_dict[label_output][label_alternate]["data"])==False))[0]
    #ind = numpy.ma.where((numpy.ma.getmaskarray(data_dict[label_composite]["data"])==True)&
                         #(numpy.ma.getmaskarray(data_dict[label_output][label_alternate]["data"])==False))[0]
    data_dict[label_composite]["data"][ind] = data_dict[label_output][label_alternate]["data"][ind]
    data_dict[label_composite]["fitcorr"][ind] = data_dict[label_output][label_alternate]["fitcorr"][ind]
    ds_tower.series[label_composite]["Data"][si:ei+1][ind] = numpy.ma.filled(data_dict[label_output][label_alternate]["fitcorr"][ind],c.missing_value)
    ds_tower.series[label_composite]["Flag"][si:ei+1][ind] = numpy.int32(20)
    ind = numpy.where((abs(ds_tower.series[label_output]["Data"][si:ei+1]-float(c.missing_value))<c.eps)&
                      (numpy.ma.getmaskarray(data_dict[label_output][label_alternate]["fitcorr"])==False))[0]
    ds_tower.series[label_output]["Data"][si:ei+1][ind] = numpy.ma.filled(data_dict[label_output][label_alternate]["fitcorr"][ind],c.missing_value)
    ds_tower.series[label_output]["Flag"][si:ei+1][ind] = numpy.int32(20)

In [6]:
# preliminary set up from OzFluxQC.do_l4qc
cfname = "../controlfiles/SturtPlains/all/L4_ipynb.txt"
cf = qcio.get_controlfilecontents(cfname)
infilename = qcio.get_infilenamefromcf(cf)
ds3 = qcio.nc_read_series(infilename)
ds3.globalattributes['controlfile_name'] = cf['controlfile_name']

In [7]:
# set up from qcls.do_l4qc
ds4 = qcio.copy_datastructure(cf,ds3)
ds4.cf = cf
ds_alt = {}
for ThisOne in cf["Drivers"].keys():
    if ThisOne not in ds4.series.keys(): log.error("Series "+ThisOne+" not in data structure"); continue
    # interpolate over short gaps
    qcts.InterpolateOverMissing(ds4,series=ThisOne,maxlen=3)
    # parse the control file for information on how the user wants to do the gap filling
    qcgf.GapFillParseControlFile(cf,ds4,ThisOne,ds_alt)

In [8]:
# now the work starts, code from qcgf.GapFillFromAlternate (but without the GUI) and qcgf.gfalternate_run
ds4.returncodes["alternate"] = "normal"
if "alternate" not in dir(ds4): print "alternate not in ds"
ldt_tower = ds4.series["DateTime"]["Data"]
startdate = ldt_tower[0]
enddate = ldt_tower[-1]
alternate_info = {"overlap_startdate":startdate.strftime("%Y-%m-%d %H:%M"),
                  "overlap_enddate":enddate.strftime("%Y-%m-%d %H:%M"),
                  "startdate":startdate.strftime("%Y-%m-%d"),
                  "enddate":enddate.strftime("%Y-%m-%d")}
# following code from qcgf.gfalternate_run
# load GUI options into alternate_info
alternate_info["peropt"] = 3
alternate_info["show_plots"] = True
alternate_info["auto_complete"] = True
alternate_info["min_percent"] = int(50)
alternate_info["site_name"] = ds4.globalattributes["site_name"]
alternate_info["time_step"] = int(ds4.globalattributes["time_step"])
alternate_info["nperhr"] = int(float(60)/alternate_info["time_step"]+0.5)
alternate_info["nperday"] = int(float(24)*alternate_info["nperhr"]+0.5)
alternate_info["max_lags"] = int(float(12)*alternate_info["nperhr"]+0.5)
alternate_info["tower"] = {}
alternate_info["alternate"] = {}
series_list = [ds4.alternate[item]["label_tower"] for item in ds4.alternate.keys()]
alternate_info["series_list"] = series_list
print "Gap filling "+str(list(set(series_list)))+" using alternate data"
nDays = int(90)
#if len(alt_gui.startEntry.get())!=0: alternate_info["startdate"] = alt_gui.startEntry.get()
#if len(alt_gui.endEntry.get())!=0: alternate_info["enddate"] = alt_gui.endEntry.get()
#alternate_info["startdate"]="2012-01-01"
#alternate_info["enddate"]="2012-03-01"
alternate_info["gui_startdate"] = alternate_info["startdate"]
alternate_info["gui_enddate"] = alternate_info["enddate"]
startdate = dateutil.parser.parse(alternate_info["startdate"])
gui_enddate = dateutil.parser.parse(alternate_info["gui_enddate"])
overlap_enddate = dateutil.parser.parse(alternate_info["overlap_enddate"])
enddate = startdate+dateutil.relativedelta.relativedelta(days=nDays)
enddate = min([overlap_enddate,enddate,gui_enddate])
alternate_info["enddate"] = datetime.datetime.strftime(enddate,"%Y-%m-%d")
stopdate = min([overlap_enddate,gui_enddate])
if "plot_path" in ds4.cf["Files"]: alternate_info["plot_path"] = ds4.cf["Files"]["plot_path"]


Gap filling ['ps', 'Wd', 'Fsd', 'Ah', 'Flu', 'Ts', 'Fa', 'Precip', 'Ws', 'Fsu', 'Fg', 'Sws', 'Fld', 'Fn', 'Ta'] using alternate data

In [9]:
# loop over start and end dates
#label_tower_list=["Ah","Ta"]
while startdate<stopdate:
    # following code from gfalternate_main    
    gfalternate_main(ds4,ds_alt,alternate_info)
    #gfalternate_plotcoveragelines(ds_tower)
    startdate = enddate
    enddate = startdate+dateutil.relativedelta.relativedelta(days=nDays)
    run_enddate = min([stopdate,enddate])
    alternate_info["startdate"] = startdate.strftime("%Y-%m-%d")
    alternate_info["enddate"] = run_enddate.strftime("%Y-%m-%d")


Gap filling using alternate data: 2008-08-29 to 2008-11-27
Gap filling using alternate data: 2008-11-27 to 2009-02-25
Gap filling using alternate data: 2009-02-25 to 2009-05-26
Gap filling using alternate data: 2009-05-26 to 2009-08-24
Gap filling using alternate data: 2009-08-24 to 2009-11-22
Gap filling using alternate data: 2009-11-22 to 2010-02-20
Gap filling using alternate data: 2010-02-20 to 2010-05-21
Gap filling using alternate data: 2010-05-21 to 2010-08-19
Gap filling using alternate data: 2010-08-19 to 2010-11-17
Gap filling using alternate data: 2010-11-17 to 2011-02-15
Gap filling using alternate data: 2011-02-15 to 2011-05-16
Gap filling using alternate data: 2011-05-16 to 2011-08-14
Gap filling using alternate data: 2011-08-14 to 2011-11-12
Gap filling using alternate data: 2011-11-12 to 2012-02-10
Gap filling using alternate data: 2012-02-10 to 2012-05-10
Gap filling using alternate data: 2012-05-10 to 2012-08-08
Gap filling using alternate data: 2012-08-08 to 2012-11-06
Gap filling using alternate data: 2012-11-06 to 2013-02-04
Gap filling using alternate data: 2013-02-04 to 2013-05-05
Gap filling using alternate data: 2013-05-05 to 2013-08-03
Gap filling using alternate data: 2013-08-03 to 2013-11-01
Gap filling using alternate data: 2013-11-01 to 2014-01-30
Gap filling using alternate data: 2014-01-30 to 2014-04-30
Gap filling using alternate data: 2014-04-30 to 2014-07-29
Gap filling using alternate data: 2014-07-29 to 2014-10-27
Gap filling using alternate data: 2014-10-27 to 2014-12-31
/home/peter/anaconda/lib/python2.7/site-packages/numpy/ma/core.py:3895: UserWarning: Warning: converting a masked element to nan.
  warnings.warn("Warning: converting a masked element to nan.")

In [11]:
# following code from gfalternate_autocomplete
mode="verbose"
ldt_tower = ds4.series["DateTime"]["Data"]
ts = alternate_info["time_step"]
si = qcutils.GetDateIndex(ldt_tower,alternate_info["gui_startdate"],ts=ts,default=0)
ei = qcutils.GetDateIndex(ldt_tower,alternate_info["gui_enddate"],ts=ts,default=len(ldt_tower))
ldt_tower = ldt_tower[si:ei+1]
nRecs = len(ldt_tower)-1
label_tower_list = list(set(alternate_info["series_list"]))
data_all = {}
for label_tower in label_tower_list:
    label_composite = label_tower+"_composite"
    not_enough_points = False
    data_composite,flag_composite,attr_composite = qcutils.GetSeriesasMA(ds4,label_composite,si=si,ei=ei)
    data_tower,flag_tower,attr_tower = qcutils.GetSeriesasMA(ds4,label_tower,si=si,ei=ei)
    data_all[label_tower] = data_tower
    data_merged = numpy.ma.copy(data_tower)
    idx = numpy.where((numpy.ma.getmaskarray(data_tower)==True)&(numpy.ma.getmaskarray(data_composite)==False))[0]
    data_merged[idx] = data_composite[idx]
    mask_merged = numpy.ma.getmaskarray(data_merged)
    gapstartend = qcutils.contiguous_regions(mask_merged)
    if len(gapstartend)==0:
        if mode.lower()!="quiet":
            msg = " autocomplete: no gaps in "+label_tower+",  skipping ..."
            print msg
    # code from here is new addition
    gotdataforgap = [False]*len(gapstartend)
    output_list = [item for item in ds4.alternate.keys() if label_tower in item]
    for label_output in output_list:
        alt_filename = ds4.alternate[label_output]["file_name"]
        ds_alternate = ds_alt[alt_filename]
        alt_series_list = [item for item in ds_alternate.series.keys() if "_QCFlag" not in item]
        alt_series_list = [item for item in alt_series_list if label_tower in item]
        ldt_alt = ds_alternate.series["DateTime"]["Data"][si:ei+1]
        mask_alt = numpy.ma.masked_all(len(ldt_alt))
        for label_alternate in alt_series_list:
            data_alt,flag_alt,attr_alt = qcutils.GetSeriesasMA(ds_alternate,label_alternate,si=si,ei=ei)
            data_all[label_alternate] = data_alt
            for n,gap in enumerate(gapstartend):
                result = qcgf.gfalternate_gotdataforgaps(data_tower[gap[0]:gap[1]],data_alt[gap[0]:gap[1]],
                                                         label_alternate,mode="quiet")
                gotdataforgap[n] = gotdataforgap[n] or result
    #print label_tower,gotdataforgap
    # code from here comes from gfalternate_autocomplete
    for n,gap in enumerate(gapstartend):
        # except for this line which is new
        if not gotdataforgap[n]:
            if mode.lower()!="quiet":
                gap_startdate = ldt_tower[gap[0]].strftime("%Y-%m-%d %H:%M")
                gap_enddate = ldt_tower[gap[0]].strftime("%Y-%m-%d %H:%M")
                msg = " autocomplete: no alternate data for "+gap_startdate+" to "+gap_enddate
                print msg
            continue
        if mode.lower()!="quiet":
            gap_startdate = ldt_tower[gap[0]].strftime("%Y-%m-%d %H:%M")
            gap_enddate = ldt_tower[gap[1]].strftime("%Y-%m-%d %H:%M")
            msg = " autocomplete: "+label_tower+" gap is "+gap_startdate+" to "+gap_enddate
            print msg
        min_points = int((gap[1]-gap[0])*alternate_info["min_percent"]/100)
        num_good_points = (gap[1] - gap[0])
        num_points_list = data_all.keys()
        for label in data_all.keys():
            if numpy.ma.count(data_all[label][gap[0]:gap[1]])<min_points:
                num_points_list.remove(label)
                continue
            num_good_points = min([num_good_points,numpy.ma.count(data_all[label][gap[0]:gap[1]])])
        #num_good_points = numpy.ma.count(data_tower[gap[0]:gap[1]])
        while num_good_points<min_points:
            gap[0] = max(0,gap[0] - alternate_info["nperday"])
            gap[1] = min(nRecs,gap[1] + alternate_info["nperday"])
            if gap[0]==0 and gap[1]==nRecs:
                print " autocomplete: Unable to find enough good points in "+label_tower
                not_enough_points = True
            if not_enough_points: break
            min_points = int((gap[1]-gap[0])*alternate_info["min_percent"]/100)
            num_good_points = (gap[1] - gap[0])
            for label in num_points_list:
                num_good_points = min([num_good_points,numpy.ma.count(data_all[label][gap[0]:gap[1]])])
            #num_good_points = numpy.ma.count(data_tower[gap[0]:gap[1]])
        if not_enough_points: break
        if mode.lower()!="quiet":
            gap_startdate = ldt_tower[gap[0]].strftime("%Y-%m-%d %H:%M")
            gap_enddate = ldt_tower[gap[1]].strftime("%Y-%m-%d %H:%M")
            print " autocomplete: "+label_tower+" gap fill period is "+gap_startdate+" to "+gap_enddate
        alternate_info["startdate"] = ldt_tower[gap[0]].strftime("%Y-%m-%d")
        alternate_info["enddate"] = ldt_tower[gap[1]].strftime("%Y-%m-%d")
        print "I will do a plot here",label_tower,alternate_info["startdate"],alternate_info["enddate"]
        #gfalternate_main(ds4,ds_alt,alternate_info,label_tower_list=[label_tower])
# following code to be added to gfalternate_autocomplete
# this code checks to see if there is data available to fill the remaining gaps identified


 autocomplete: ps gap is 2009-02-22 07:00 to 2009-05-26 00:00
 autocomplete: ps gap fill period is 2009-02-22 07:00 to 2009-05-26 00:00
I will do a plot here ps 2009-02-22 2009-05-26
 autocomplete: no alternate data for 2010-06-26 18:00 to 2010-06-26 18:00
 autocomplete: no alternate data for 2010-06-27 10:00 to 2010-06-27 10:00
 autocomplete: no alternate data for 2010-06-28 09:00 to 2010-06-28 09:00
 autocomplete: no alternate data for 2010-06-28 15:00 to 2010-06-28 15:00
 autocomplete: ps gap is 2013-08-22 14:00 to 2013-10-16 00:30
 autocomplete: ps gap fill period is 2013-08-22 14:00 to 2013-10-16 00:30
I will do a plot here ps 2013-08-22 2013-10-16
 autocomplete: no alternate data for 2009-02-07 23:00 to 2009-02-07 23:00
 autocomplete: no alternate data for 2009-02-08 17:00 to 2009-02-08 17:00
 autocomplete: no alternate data for 2009-02-08 21:30 to 2009-02-08 21:30
 autocomplete: no alternate data for 2009-02-09 06:00 to 2009-02-09 06:00
 autocomplete: no alternate data for 2009-02-09 17:30 to 2009-02-09 17:30
 autocomplete: no alternate data for 2009-02-10 19:30 to 2009-02-10 19:30
 autocomplete: no alternate data for 2009-02-11 09:30 to 2009-02-11 09:30
 autocomplete: Wd gap is 2009-02-22 07:00 to 2009-03-10 21:00
 autocomplete: Wd gap fill period is 2009-02-22 07:00 to 2009-03-10 21:00
I will do a plot here Wd 2009-02-22 2009-03-10
 autocomplete: no alternate data for 2009-04-07 13:30 to 2009-04-07 13:30
 autocomplete: no alternate data for 2010-06-26 18:00 to 2010-06-26 18:00
 autocomplete: no alternate data for 2010-06-27 10:30 to 2010-06-27 10:30
 autocomplete: no alternate data for 2010-06-28 09:00 to 2010-06-28 09:00
 autocomplete: no alternate data for 2010-06-28 15:00 to 2010-06-28 15:00
 autocomplete: Fsd gap is 2009-02-25 00:30 to 2009-05-26 00:00
 autocomplete: Fsd gap fill period is 2009-02-25 00:30 to 2009-05-26 00:00
I will do a plot here Fsd 2009-02-25 2009-05-26
 autocomplete: Fsd gap is 2013-08-22 14:00 to 2013-10-15 13:00
 autocomplete: Fsd gap fill period is 2013-08-22 14:00 to 2013-10-15 13:00
I will do a plot here Fsd 2013-08-22 2013-10-15
 autocomplete: Ah gap is 2009-02-25 00:30 to 2009-05-26 00:00
 autocomplete: Ah gap fill period is 2009-02-25 00:30 to 2009-05-26 00:00
I will do a plot here Ah 2009-02-25 2009-05-26
 autocomplete: Ah gap is 2012-02-10 00:30 to 2012-02-10 01:00
 autocomplete: Ah gap fill period is 2012-02-10 00:30 to 2012-02-10 01:00
I will do a plot here Ah 2012-02-10 2012-02-10
 autocomplete: Ah gap is 2012-02-10 03:30 to 2012-02-10 05:30
 autocomplete: Ah gap fill period is 2012-02-10 03:30 to 2012-02-10 05:30
I will do a plot here Ah 2012-02-10 2012-02-10
 autocomplete: Ah gap is 2012-02-10 06:00 to 2012-02-10 09:30
 autocomplete: Ah gap fill period is 2012-02-10 06:00 to 2012-02-10 09:30
I will do a plot here Ah 2012-02-10 2012-02-10
 autocomplete: Ah gap is 2012-02-11 04:00 to 2012-02-11 06:30
 autocomplete: Ah gap fill period is 2012-02-11 04:00 to 2012-02-11 06:30
I will do a plot here Ah 2012-02-11 2012-02-11
 autocomplete: Ah gap is 2012-02-11 19:30 to 2012-02-11 23:30
 autocomplete: Ah gap fill period is 2012-02-11 19:30 to 2012-02-11 23:30
I will do a plot here Ah 2012-02-11 2012-02-11
 autocomplete: Ah gap is 2012-02-13 06:00 to 2012-02-13 09:00
 autocomplete: Ah gap fill period is 2012-02-13 06:00 to 2012-02-13 09:00
I will do a plot here Ah 2012-02-13 2012-02-13
 autocomplete: Ah gap is 2012-02-13 20:00 to 2012-02-13 22:30
 autocomplete: Ah gap fill period is 2012-02-13 20:00 to 2012-02-13 22:30
I will do a plot here Ah 2012-02-13 2012-02-13
 autocomplete: Ah gap is 2012-02-14 19:30 to 2012-02-14 23:00
 autocomplete: Ah gap fill period is 2012-02-14 19:30 to 2012-02-14 23:00
I will do a plot here Ah 2012-02-14 2012-02-14
 autocomplete: Ah gap is 2012-02-15 02:30 to 2012-02-15 05:30
 autocomplete: Ah gap fill period is 2012-02-15 02:30 to 2012-02-15 05:30
I will do a plot here Ah 2012-02-15 2012-02-15
 autocomplete: Ah gap is 2012-02-15 06:00 to 2012-02-15 08:30
 autocomplete: Ah gap fill period is 2012-02-15 06:00 to 2012-02-15 08:30
I will do a plot here Ah 2012-02-15 2012-02-15
 autocomplete: Ah gap is 2012-02-15 20:00 to 2012-02-15 22:00
 autocomplete: Ah gap fill period is 2012-02-15 20:00 to 2012-02-15 22:00
I will do a plot here Ah 2012-02-15 2012-02-15
 autocomplete: Ah gap is 2012-02-18 20:00 to 2012-02-18 22:30
 autocomplete: Ah gap fill period is 2012-02-18 20:00 to 2012-02-18 22:30
I will do a plot here Ah 2012-02-18 2012-02-18
 autocomplete: Ah gap is 2012-02-19 05:30 to 2012-02-19 08:00
 autocomplete: Ah gap fill period is 2012-02-19 05:30 to 2012-02-19 08:00
I will do a plot here Ah 2012-02-19 2012-02-19
 autocomplete: Ah gap is 2012-02-23 01:00 to 2012-02-23 05:00
 autocomplete: Ah gap fill period is 2012-02-23 01:00 to 2012-02-23 05:00
I will do a plot here Ah 2012-02-23 2012-02-23
 autocomplete: Ah gap is 2012-02-24 14:00 to 2012-02-24 16:30
 autocomplete: Ah gap fill period is 2012-02-24 14:00 to 2012-02-24 16:30
I will do a plot here Ah 2012-02-24 2012-02-24
 autocomplete: Ah gap is 2012-02-24 20:00 to 2012-02-25 03:00
 autocomplete: Ah gap fill period is 2012-02-24 20:00 to 2012-02-25 03:00
I will do a plot here Ah 2012-02-24 2012-02-25
 autocomplete: Ah gap is 2012-02-25 03:30 to 2012-02-25 10:30
 autocomplete: Ah gap fill period is 2012-02-25 03:30 to 2012-02-25 10:30
I will do a plot here Ah 2012-02-25 2012-02-25
 autocomplete: Ah gap is 2012-02-26 19:00 to 2012-02-27 01:00
 autocomplete: Ah gap fill period is 2012-02-26 19:00 to 2012-02-27 01:00
I will do a plot here Ah 2012-02-26 2012-02-27
 autocomplete: Ah gap is 2012-02-27 16:00 to 2012-02-27 18:30
 autocomplete: Ah gap fill period is 2012-02-27 16:00 to 2012-02-27 18:30
I will do a plot here Ah 2012-02-27 2012-02-27
 autocomplete: Ah gap is 2012-02-28 02:30 to 2012-02-28 12:00
 autocomplete: Ah gap fill period is 2012-02-28 02:30 to 2012-02-28 12:00
I will do a plot here Ah 2012-02-28 2012-02-28
 autocomplete: Ah gap is 2012-02-28 20:00 to 2012-02-29 08:00
 autocomplete: Ah gap fill period is 2012-02-28 20:00 to 2012-02-29 08:00
I will do a plot here Ah 2012-02-28 2012-02-29
 autocomplete: Ah gap is 2012-02-29 20:30 to 2012-03-01 01:30
 autocomplete: Ah gap fill period is 2012-02-29 20:30 to 2012-03-01 01:30
I will do a plot here Ah 2012-02-29 2012-03-01
 autocomplete: Ah gap is 2012-03-01 05:30 to 2012-03-01 08:30
 autocomplete: Ah gap fill period is 2012-03-01 05:30 to 2012-03-01 08:30
I will do a plot here Ah 2012-03-01 2012-03-01
 autocomplete: Ah gap is 2012-03-02 00:00 to 2012-03-02 03:00
 autocomplete: Ah gap fill period is 2012-03-02 00:00 to 2012-03-02 03:00
I will do a plot here Ah 2012-03-02 2012-03-02
 autocomplete: Ah gap is 2012-03-02 19:00 to 2012-03-03 01:30
 autocomplete: Ah gap fill period is 2012-03-02 19:00 to 2012-03-03 01:30
I will do a plot here Ah 2012-03-02 2012-03-03
 autocomplete: Ah gap is 2012-03-03 18:00 to 2012-03-03 22:00
 autocomplete: Ah gap fill period is 2012-03-03 18:00 to 2012-03-03 22:00
I will do a plot here Ah 2012-03-03 2012-03-03
 autocomplete: Ah gap is 2012-03-03 22:30 to 2012-03-04 06:30
 autocomplete: Ah gap fill period is 2012-03-03 22:30 to 2012-03-04 06:30
I will do a plot here Ah 2012-03-03 2012-03-04
 autocomplete: Ah gap is 2012-03-04 07:30 to 2012-03-04 10:00
 autocomplete: Ah gap fill period is 2012-03-04 07:30 to 2012-03-04 10:00
I will do a plot here Ah 2012-03-04 2012-03-04
 autocomplete: Ah gap is 2012-03-04 15:30 to 2012-03-04 18:30
 autocomplete: Ah gap fill period is 2012-03-04 15:30 to 2012-03-04 18:30
I will do a plot here Ah 2012-03-04 2012-03-04
 autocomplete: Ah gap is 2012-03-04 19:30 to 2012-03-05 01:00
 autocomplete: Ah gap fill period is 2012-03-04 19:30 to 2012-03-05 01:00
I will do a plot here Ah 2012-03-04 2012-03-05
 autocomplete: Ah gap is 2012-03-05 02:00 to 2012-03-05 10:30
 autocomplete: Ah gap fill period is 2012-03-05 02:00 to 2012-03-05 10:30
I will do a plot here Ah 2012-03-05 2012-03-05
 autocomplete: Ah gap is 2012-03-05 11:30 to 2012-03-05 13:30
 autocomplete: Ah gap fill period is 2012-03-05 11:30 to 2012-03-05 13:30
I will do a plot here Ah 2012-03-05 2012-03-05
 autocomplete: Ah gap is 2012-03-05 14:00 to 2012-03-05 16:00
 autocomplete: Ah gap fill period is 2012-03-05 14:00 to 2012-03-05 16:00
I will do a plot here Ah 2012-03-05 2012-03-05
 autocomplete: Ah gap is 2012-03-06 00:30 to 2012-03-06 13:30
 autocomplete: Ah gap fill period is 2012-03-06 00:30 to 2012-03-06 13:30
I will do a plot here Ah 2012-03-06 2012-03-06
 autocomplete: Ah gap is 2012-03-06 15:00 to 2012-03-08 09:00
 autocomplete: Ah gap fill period is 2012-03-06 15:00 to 2012-03-08 09:00
I will do a plot here Ah 2012-03-06 2012-03-08
 autocomplete: Ah gap is 2012-03-08 11:00 to 2012-03-09 09:00
 autocomplete: Ah gap fill period is 2012-03-08 11:00 to 2012-03-09 09:00
I will do a plot here Ah 2012-03-08 2012-03-09
 autocomplete: Ah gap is 2012-03-09 20:30 to 2012-03-12 09:30
 autocomplete: Ah gap fill period is 2012-03-09 20:30 to 2012-03-12 09:30
I will do a plot here Ah 2012-03-09 2012-03-12
 autocomplete: Ah gap is 2012-03-12 10:00 to 2012-03-12 17:30
 autocomplete: Ah gap fill period is 2012-03-12 10:00 to 2012-03-12 17:30
I will do a plot here Ah 2012-03-12 2012-03-12
 autocomplete: Ah gap is 2012-03-12 20:00 to 2012-03-13 13:30
 autocomplete: Ah gap fill period is 2012-03-12 20:00 to 2012-03-13 13:30
I will do a plot here Ah 2012-03-12 2012-03-13
 autocomplete: Ah gap is 2012-03-14 12:00 to 2012-03-14 14:30
 autocomplete: Ah gap fill period is 2012-03-14 12:00 to 2012-03-14 14:30
I will do a plot here Ah 2012-03-14 2012-03-14
 autocomplete: Ah gap is 2012-03-14 16:30 to 2012-03-15 01:00
 autocomplete: Ah gap fill period is 2012-03-14 16:30 to 2012-03-15 01:00
I will do a plot here Ah 2012-03-14 2012-03-15
 autocomplete: Ah gap is 2012-03-15 01:30 to 2012-03-15 06:00
 autocomplete: Ah gap fill period is 2012-03-15 01:30 to 2012-03-15 06:00
I will do a plot here Ah 2012-03-15 2012-03-15
 autocomplete: Ah gap is 2012-03-15 06:30 to 2012-03-16 09:30
 autocomplete: Ah gap fill period is 2012-03-15 06:30 to 2012-03-16 09:30
I will do a plot here Ah 2012-03-15 2012-03-16
 autocomplete: Ah gap is 2012-03-16 21:30 to 2012-03-17 00:00
 autocomplete: Ah gap fill period is 2012-03-16 21:30 to 2012-03-17 00:00
I will do a plot here Ah 2012-03-16 2012-03-17
 autocomplete: Ah gap is 2012-03-17 01:00 to 2012-03-17 11:30
 autocomplete: Ah gap fill period is 2012-03-17 01:00 to 2012-03-17 11:30
I will do a plot here Ah 2012-03-17 2012-03-17
 autocomplete: Ah gap is 2012-03-17 14:00 to 2012-03-17 22:00
 autocomplete: Ah gap fill period is 2012-03-17 14:00 to 2012-03-17 22:00
I will do a plot here Ah 2012-03-17 2012-03-17
 autocomplete: Ah gap is 2012-03-17 23:00 to 2012-03-19 13:00
 autocomplete: Ah gap fill period is 2012-03-17 23:00 to 2012-03-19 13:00
I will do a plot here Ah 2012-03-17 2012-03-19
 autocomplete: Ah gap is 2012-03-20 21:30 to 2012-03-21 15:00
 autocomplete: Ah gap fill period is 2012-03-20 21:30 to 2012-03-21 15:00
I will do a plot here Ah 2012-03-20 2012-03-21
 autocomplete: Ah gap is 2012-03-21 19:30 to 2012-03-21 22:00
 autocomplete: Ah gap fill period is 2012-03-21 19:30 to 2012-03-21 22:00
I will do a plot here Ah 2012-03-21 2012-03-21
 autocomplete: Ah gap is 2012-03-22 19:30 to 2012-03-24 03:30
 autocomplete: Ah gap fill period is 2012-03-22 19:30 to 2012-03-24 03:30
I will do a plot here Ah 2012-03-22 2012-03-24
 autocomplete: Ah gap is 2012-03-24 04:00 to 2012-03-26 17:30
 autocomplete: Ah gap fill period is 2012-03-24 04:00 to 2012-03-26 17:30
I will do a plot here Ah 2012-03-24 2012-03-26
 autocomplete: Ah gap is 2012-03-26 20:30 to 2012-03-27 04:00
 autocomplete: Ah gap fill period is 2012-03-26 20:30 to 2012-03-27 04:00
I will do a plot here Ah 2012-03-26 2012-03-27
 autocomplete: Ah gap is 2012-03-27 09:00 to 2012-03-27 11:00
 autocomplete: Ah gap fill period is 2012-03-27 09:00 to 2012-03-27 11:00
I will do a plot here Ah 2012-03-27 2012-03-27
 autocomplete: Ah gap is 2012-03-27 21:00 to 2012-03-29 14:30
 autocomplete: Ah gap fill period is 2012-03-27 21:00 to 2012-03-29 14:30
I will do a plot here Ah 2012-03-27 2012-03-29
 autocomplete: Ah gap is 2012-03-29 23:30 to 2012-03-30 04:00
 autocomplete: Ah gap fill period is 2012-03-29 23:30 to 2012-03-30 04:00
I will do a plot here Ah 2012-03-29 2012-03-30
 autocomplete: Ah gap is 2012-03-30 06:30 to 2012-03-30 08:30
 autocomplete: Ah gap fill period is 2012-03-30 06:30 to 2012-03-30 08:30
I will do a plot here Ah 2012-03-30 2012-03-30
 autocomplete: Ah gap is 2012-03-31 02:00 to 2012-03-31 04:00
 autocomplete: Ah gap fill period is 2012-03-31 02:00 to 2012-03-31 04:00
I will do a plot here Ah 2012-03-31 2012-03-31
 autocomplete: Ah gap is 2012-03-31 06:00 to 2012-03-31 08:30
 autocomplete: Ah gap fill period is 2012-03-31 06:00 to 2012-03-31 08:30
I will do a plot here Ah 2012-03-31 2012-03-31
 autocomplete: Ah gap is 2012-03-31 19:30 to 2012-03-31 22:00
 autocomplete: Ah gap fill period is 2012-03-31 19:30 to 2012-03-31 22:00
I will do a plot here Ah 2012-03-31 2012-03-31
 autocomplete: Ah gap is 2012-04-01 00:00 to 2012-04-01 05:00
 autocomplete: Ah gap fill period is 2012-04-01 00:00 to 2012-04-01 05:00
I will do a plot here Ah 2012-04-01 2012-04-01
 autocomplete: Ah gap is 2012-04-01 06:00 to 2012-04-01 09:00
 autocomplete: Ah gap fill period is 2012-04-01 06:00 to 2012-04-01 09:00
I will do a plot here Ah 2012-04-01 2012-04-01
 autocomplete: Ah gap is 2012-04-02 00:00 to 2012-04-02 09:30
 autocomplete: Ah gap fill period is 2012-04-02 00:00 to 2012-04-02 09:30
I will do a plot here Ah 2012-04-02 2012-04-02
 autocomplete: Ah gap is 2012-04-02 19:00 to 2012-04-02 23:00
 autocomplete: Ah gap fill period is 2012-04-02 19:00 to 2012-04-02 23:00
I will do a plot here Ah 2012-04-02 2012-04-02
 autocomplete: Ah gap is 2012-04-02 23:30 to 2012-04-03 10:00
 autocomplete: Ah gap fill period is 2012-04-02 23:30 to 2012-04-03 10:00
I will do a plot here Ah 2012-04-02 2012-04-03
 autocomplete: Ah gap is 2012-04-03 20:00 to 2012-04-03 23:30
 autocomplete: Ah gap fill period is 2012-04-03 20:00 to 2012-04-03 23:30
I will do a plot here Ah 2012-04-03 2012-04-03
 autocomplete: Ah gap is 2012-04-04 02:00 to 2012-04-04 10:00
 autocomplete: Ah gap fill period is 2012-04-04 02:00 to 2012-04-04 10:00
I will do a plot here Ah 2012-04-04 2012-04-04
 autocomplete: Ah gap is 2012-04-04 19:30 to 2012-04-04 22:30
 autocomplete: Ah gap fill period is 2012-04-04 19:30 to 2012-04-04 22:30
I will do a plot here Ah 2012-04-04 2012-04-04
 autocomplete: Ah gap is 2012-04-04 23:00 to 2012-04-05 10:00
 autocomplete: Ah gap fill period is 2012-04-04 23:00 to 2012-04-05 10:00
I will do a plot here Ah 2012-04-04 2012-04-05
 autocomplete: Ah gap is 2012-04-05 19:30 to 2012-04-05 21:30
 autocomplete: Ah gap fill period is 2012-04-05 19:30 to 2012-04-05 21:30
I will do a plot here Ah 2012-04-05 2012-04-05
 autocomplete: Ah gap is 2012-04-06 00:00 to 2012-04-06 09:30
 autocomplete: Ah gap fill period is 2012-04-06 00:00 to 2012-04-06 09:30
I will do a plot here Ah 2012-04-06 2012-04-06
 autocomplete: Ah gap is 2012-04-06 20:00 to 2012-04-06 23:00
 autocomplete: Ah gap fill period is 2012-04-06 20:00 to 2012-04-06 23:00
I will do a plot here Ah 2012-04-06 2012-04-06
 autocomplete: Ah gap is 2012-04-07 01:00 to 2012-04-07 04:30
 autocomplete: Ah gap fill period is 2012-04-07 01:00 to 2012-04-07 04:30
I will do a plot here Ah 2012-04-07 2012-04-07
 autocomplete: Ah gap is 2012-04-07 05:00 to 2012-04-07 07:30
 autocomplete: Ah gap fill period is 2012-04-07 05:00 to 2012-04-07 07:30
I will do a plot here Ah 2012-04-07 2012-04-07
 autocomplete: Ah gap is 2012-04-07 21:30 to 2012-04-08 00:30
 autocomplete: Ah gap fill period is 2012-04-07 21:30 to 2012-04-08 00:30
I will do a plot here Ah 2012-04-07 2012-04-08
 autocomplete: Ah gap is 2012-04-08 01:00 to 2012-04-08 08:30
 autocomplete: Ah gap fill period is 2012-04-08 01:00 to 2012-04-08 08:30
I will do a plot here Ah 2012-04-08 2012-04-08
 autocomplete: Ah gap is 2012-04-08 20:00 to 2012-04-09 00:30
 autocomplete: Ah gap fill period is 2012-04-08 20:00 to 2012-04-09 00:30
I will do a plot here Ah 2012-04-08 2012-04-09
 autocomplete: Ah gap is 2012-04-09 01:30 to 2012-04-09 09:00
 autocomplete: Ah gap fill period is 2012-04-09 01:30 to 2012-04-09 09:00
I will do a plot here Ah 2012-04-09 2012-04-09
 autocomplete: Ah gap is 2012-04-09 21:30 to 2012-04-10 10:00
 autocomplete: Ah gap fill period is 2012-04-09 21:30 to 2012-04-10 10:00
I will do a plot here Ah 2012-04-09 2012-04-10
 autocomplete: Ah gap is 2012-04-10 20:30 to 2012-04-11 11:00
 autocomplete: Ah gap fill period is 2012-04-10 20:30 to 2012-04-11 11:00
I will do a plot here Ah 2012-04-10 2012-04-11
 autocomplete: Ah gap is 2012-04-11 20:00 to 2012-04-12 11:00
 autocomplete: Ah gap fill period is 2012-04-11 20:00 to 2012-04-12 11:00
I will do a plot here Ah 2012-04-11 2012-04-12
 autocomplete: Ah gap is 2012-04-12 19:30 to 2012-04-13 11:00
 autocomplete: Ah gap fill period is 2012-04-12 19:30 to 2012-04-13 11:00
I will do a plot here Ah 2012-04-12 2012-04-13
 autocomplete: Ah gap is 2012-04-13 21:00 to 2012-04-14 04:00
 autocomplete: Ah gap fill period is 2012-04-13 21:00 to 2012-04-14 04:00
I will do a plot here Ah 2012-04-13 2012-04-14
 autocomplete: Ah gap is 2012-04-14 06:00 to 2012-04-14 09:00
 autocomplete: Ah gap fill period is 2012-04-14 06:00 to 2012-04-14 09:00
I will do a plot here Ah 2012-04-14 2012-04-14
 autocomplete: Ah gap is 2012-04-14 21:00 to 2012-04-15 09:00
 autocomplete: Ah gap fill period is 2012-04-14 21:00 to 2012-04-15 09:00
I will do a plot here Ah 2012-04-14 2012-04-15
 autocomplete: Ah gap is 2012-04-15 20:30 to 2012-04-16 09:00
 autocomplete: Ah gap fill period is 2012-04-15 20:30 to 2012-04-16 09:00
I will do a plot here Ah 2012-04-15 2012-04-16
 autocomplete: Ah gap is 2012-04-16 21:00 to 2012-04-17 09:00
 autocomplete: Ah gap fill period is 2012-04-16 21:00 to 2012-04-17 09:00
I will do a plot here Ah 2012-04-16 2012-04-17
 autocomplete: Ah gap is 2012-04-17 21:30 to 2012-04-18 10:00
 autocomplete: Ah gap fill period is 2012-04-17 21:30 to 2012-04-18 10:00
I will do a plot here Ah 2012-04-17 2012-04-18
 autocomplete: Ah gap is 2012-04-18 21:30 to 2012-04-19 09:00
 autocomplete: Ah gap fill period is 2012-04-18 21:30 to 2012-04-19 09:00
I will do a plot here Ah 2012-04-18 2012-04-19
 autocomplete: Ah gap is 2012-04-19 22:00 to 2012-04-20 00:00
 autocomplete: Ah gap fill period is 2012-04-19 22:00 to 2012-04-20 00:00
I will do a plot here Ah 2012-04-19 2012-04-20
 autocomplete: Ah gap is 2012-04-20 06:30 to 2012-04-20 08:30
 autocomplete: Ah gap fill period is 2012-04-20 06:30 to 2012-04-20 08:30
I will do a plot here Ah 2012-04-20 2012-04-20
 autocomplete: Ah gap is 2012-04-21 04:00 to 2012-04-21 09:30
 autocomplete: Ah gap fill period is 2012-04-21 04:00 to 2012-04-21 09:30
I will do a plot here Ah 2012-04-21 2012-04-21
 autocomplete: Ah gap is 2012-04-22 23:00 to 2012-04-23 03:00
 autocomplete: Ah gap fill period is 2012-04-22 23:00 to 2012-04-23 03:00
I will do a plot here Ah 2012-04-22 2012-04-23
 autocomplete: Ah gap is 2012-04-23 12:30 to 2012-04-23 15:00
 autocomplete: Ah gap fill period is 2012-04-23 12:30 to 2012-04-23 15:00
I will do a plot here Ah 2012-04-23 2012-04-23
 autocomplete: Ah gap is 2012-04-23 23:30 to 2012-04-24 02:30
 autocomplete: Ah gap fill period is 2012-04-23 23:30 to 2012-04-24 02:30
I will do a plot here Ah 2012-04-23 2012-04-24
 autocomplete: Ah gap is 2012-04-24 03:00 to 2012-04-24 06:00
 autocomplete: Ah gap fill period is 2012-04-24 03:00 to 2012-04-24 06:00
I will do a plot here Ah 2012-04-24 2012-04-24
 autocomplete: Ah gap is 2012-04-24 21:30 to 2012-04-25 02:00
 autocomplete: Ah gap fill period is 2012-04-24 21:30 to 2012-04-25 02:00
I will do a plot here Ah 2012-04-24 2012-04-25
 autocomplete: Ah gap is 2012-04-25 02:30 to 2012-04-25 06:30
 autocomplete: Ah gap fill period is 2012-04-25 02:30 to 2012-04-25 06:30
I will do a plot here Ah 2012-04-25 2012-04-25
 autocomplete: Ah gap is 2012-04-26 19:30 to 2012-04-27 12:30
 autocomplete: Ah gap fill period is 2012-04-26 19:30 to 2012-04-27 12:30
I will do a plot here Ah 2012-04-26 2012-04-27
 autocomplete: Ah gap is 2012-04-28 03:30 to 2012-04-28 09:00
 autocomplete: Ah gap fill period is 2012-04-28 03:30 to 2012-04-28 09:00
I will do a plot here Ah 2012-04-28 2012-04-28
 autocomplete: Ah gap is 2012-04-28 20:30 to 2012-04-29 10:30
 autocomplete: Ah gap fill period is 2012-04-28 20:30 to 2012-04-29 10:30
I will do a plot here Ah 2012-04-28 2012-04-29
 autocomplete: Ah gap is 2012-04-29 21:30 to 2012-05-10 00:00
 autocomplete: Ah gap fill period is 2012-04-29 21:30 to 2012-05-10 00:00
I will do a plot here Ah 2012-04-29 2012-05-10
 autocomplete: Ah gap is 2013-08-22 14:00 to 2013-10-16 00:30
 autocomplete: Ah gap fill period is 2013-08-22 14:00 to 2013-10-16 00:30
I will do a plot here Ah 2013-08-22 2013-10-16
 autocomplete: Flu gap is 2008-11-27 00:30 to 2009-10-27 12:30
 autocomplete: Flu gap fill period is 2008-11-27 00:30 to 2009-10-27 12:30
I will do a plot here Flu 2008-11-27 2009-10-27
 autocomplete: Flu gap is 2013-08-22 14:00 to 2013-10-15 13:00
 autocomplete: Flu gap fill period is 2013-08-22 14:00 to 2013-10-15 13:00
I will do a plot here Flu 2013-08-22 2013-10-15
 autocomplete: Ts gap is 2009-02-25 00:30 to 2009-05-26 00:00
 autocomplete: Ts gap fill period is 2009-02-25 00:30 to 2009-05-26 00:00
I will do a plot here Ts 2009-02-25 2009-05-26
 autocomplete: Ts gap is 2013-08-22 14:00 to 2013-10-15 13:00
 autocomplete: Ts gap fill period is 2013-08-22 14:00 to 2013-10-15 13:00
I will do a plot here Ts 2013-08-22 2013-10-15
 autocomplete: Fa gap is 2009-02-25 00:30 to 2009-05-26 00:00
 autocomplete: Fa gap fill period is 2009-02-25 00:30 to 2009-05-26 00:00
I will do a plot here Fa 2009-02-25 2009-05-26
 autocomplete: Fa gap is 2013-08-22 14:00 to 2013-10-15 13:30
 autocomplete: Fa gap fill period is 2013-08-22 14:00 to 2013-10-15 13:30
I will do a plot here Fa 2013-08-22 2013-10-15
 autocomplete: Precip gap is 2008-09-10 15:00 to 2008-09-11 10:00
 autocomplete: Precip gap fill period is 2008-09-10 15:00 to 2008-09-11 10:00
I will do a plot here Precip 2008-09-10 2008-09-11
 autocomplete: Precip gap is 2008-09-25 17:30 to 2008-09-26 10:00
 autocomplete: Precip gap fill period is 2008-09-25 17:30 to 2008-09-26 10:00
I will do a plot here Precip 2008-09-25 2008-09-26
 autocomplete: Precip gap is 2008-11-03 10:30 to 2008-11-13 10:00
 autocomplete: Precip gap fill period is 2008-11-03 10:30 to 2008-11-13 10:00
I will do a plot here Precip 2008-11-03 2008-11-13
 autocomplete: Precip gap is 2008-11-13 14:00 to 2008-11-14 10:00
 autocomplete: Precip gap fill period is 2008-11-13 14:00 to 2008-11-14 10:00
I will do a plot here Precip 2008-11-13 2008-11-14
 autocomplete: Precip gap is 2009-02-25 00:30 to 2009-03-10 21:30
 autocomplete: Precip gap fill period is 2009-02-25 00:30 to 2009-03-10 21:30
I will do a plot here Precip 2009-02-25 2009-03-10
 autocomplete: Precip gap is 2009-03-11 14:00 to 2009-03-12 10:00
 autocomplete: Precip gap fill period is 2009-03-11 14:00 to 2009-03-12 10:00
I will do a plot here Precip 2009-03-11 2009-03-12
 autocomplete: Precip gap is 2009-04-07 13:30 to 2009-04-10 10:00
 autocomplete: Precip gap fill period is 2009-04-07 13:30 to 2009-04-10 10:00
I will do a plot here Precip 2009-04-07 2009-04-10
 autocomplete: no alternate data for 2009-02-07 23:00 to 2009-02-07 23:00
 autocomplete: no alternate data for 2009-02-08 17:00 to 2009-02-08 17:00
 autocomplete: no alternate data for 2009-02-08 21:30 to 2009-02-08 21:30
 autocomplete: no alternate data for 2009-02-09 06:00 to 2009-02-09 06:00
 autocomplete: no alternate data for 2009-02-09 17:30 to 2009-02-09 17:30
 autocomplete: no alternate data for 2009-02-10 19:30 to 2009-02-10 19:30
 autocomplete: no alternate data for 2009-02-11 09:30 to 2009-02-11 09:30
 autocomplete: Ws gap is 2009-02-22 07:00 to 2009-03-10 21:00
 autocomplete: Ws gap fill period is 2009-02-22 07:00 to 2009-03-10 21:00
I will do a plot here Ws 2009-02-22 2009-03-10
 autocomplete: no alternate data for 2009-04-07 13:30 to 2009-04-07 13:30
 autocomplete: no alternate data for 2010-06-26 18:00 to 2010-06-26 18:00
 autocomplete: no alternate data for 2010-06-27 14:00 to 2010-06-27 14:00
 autocomplete: no alternate data for 2010-06-28 09:00 to 2010-06-28 09:00
 autocomplete: no alternate data for 2010-06-28 15:00 to 2010-06-28 15:00
 autocomplete: Fsu gap is 2009-02-25 00:30 to 2009-05-26 00:00
 autocomplete: Fsu gap fill period is 2009-02-25 00:30 to 2009-05-26 00:00
I will do a plot here Fsu 2009-02-25 2009-05-26
 autocomplete: Fsu gap is 2013-08-22 14:00 to 2013-10-15 13:00
 autocomplete: Fsu gap fill period is 2013-08-22 14:00 to 2013-10-15 13:00
I will do a plot here Fsu 2013-08-22 2013-10-15
 autocomplete: Fg gap is 2009-02-25 00:30 to 2009-05-26 00:00
 autocomplete: Fg gap fill period is 2009-02-25 00:30 to 2009-05-26 00:00
I will do a plot here Fg 2009-02-25 2009-05-26
 autocomplete: Fg gap is 2011-02-18 08:00 to 2011-02-18 09:00
 autocomplete: Fg gap fill period is 2011-02-18 08:00 to 2011-02-18 09:00
I will do a plot here Fg 2011-02-18 2011-02-18
 autocomplete: Fg gap is 2011-03-24 08:00 to 2011-03-24 09:00
 autocomplete: Fg gap fill period is 2011-03-24 08:00 to 2011-03-24 09:00
I will do a plot here Fg 2011-03-24 2011-03-24
 autocomplete: Fg gap is 2011-04-16 08:00 to 2011-04-16 09:00
 autocomplete: Fg gap fill period is 2011-04-16 08:00 to 2011-04-16 09:00
I will do a plot here Fg 2011-04-16 2011-04-16
 autocomplete: Fg gap is 2011-04-21 08:00 to 2011-04-21 09:00
 autocomplete: Fg gap fill period is 2011-04-21 08:00 to 2011-04-21 09:00
I will do a plot here Fg 2011-04-21 2011-04-21
 autocomplete: Fg gap is 2013-08-22 14:00 to 2013-10-15 13:30
 autocomplete: Fg gap fill period is 2013-08-22 14:00 to 2013-10-15 13:30
I will do a plot here Fg 2013-08-22 2013-10-15
 autocomplete: no gaps in Sws,  skipping ...
 autocomplete: Fld gap is 2008-11-27 00:30 to 2009-10-27 12:30
 autocomplete: Fld gap fill period is 2008-11-27 00:30 to 2009-10-27 12:30
I will do a plot here Fld 2008-11-27 2009-10-27
 autocomplete: Fld gap is 2013-08-22 14:00 to 2013-10-15 13:00
 autocomplete: Fld gap fill period is 2013-08-22 14:00 to 2013-10-15 13:00
I will do a plot here Fld 2013-08-22 2013-10-15
 autocomplete: Fn gap is 2009-02-25 00:30 to 2009-05-26 00:00
 autocomplete: Fn gap fill period is 2009-02-25 00:30 to 2009-05-26 00:00
I will do a plot here Fn 2009-02-25 2009-05-26
 autocomplete: Fn gap is 2013-08-22 14:00 to 2013-10-15 13:00
 autocomplete: Fn gap fill period is 2013-08-22 14:00 to 2013-10-15 13:00
I will do a plot here Fn 2013-08-22 2013-10-15
 autocomplete: Ta gap is 2009-02-22 07:00 to 2009-05-26 00:00
 autocomplete: Ta gap fill period is 2009-02-22 07:00 to 2009-05-26 00:00
I will do a plot here Ta 2009-02-22 2009-05-26
 autocomplete: no alternate data for 2010-06-26 18:00 to 2010-06-26 18:00
 autocomplete: no alternate data for 2010-06-27 10:00 to 2010-06-27 10:00
 autocomplete: no alternate data for 2010-06-28 09:00 to 2010-06-28 09:00
 autocomplete: no alternate data for 2010-06-28 15:00 to 2010-06-28 15:00
 autocomplete: Ta gap is 2012-02-10 00:30 to 2012-02-10 01:00
 autocomplete: Ta gap fill period is 2012-02-10 00:30 to 2012-02-10 01:00
I will do a plot here Ta 2012-02-10 2012-02-10
 autocomplete: Ta gap is 2012-02-10 03:30 to 2012-02-10 05:30
 autocomplete: Ta gap fill period is 2012-02-10 03:30 to 2012-02-10 05:30
I will do a plot here Ta 2012-02-10 2012-02-10
 autocomplete: Ta gap is 2012-02-10 06:00 to 2012-02-10 09:30
 autocomplete: Ta gap fill period is 2012-02-10 06:00 to 2012-02-10 09:30
I will do a plot here Ta 2012-02-10 2012-02-10
 autocomplete: Ta gap is 2012-02-11 04:00 to 2012-02-11 06:30
 autocomplete: Ta gap fill period is 2012-02-11 04:00 to 2012-02-11 06:30
I will do a plot here Ta 2012-02-11 2012-02-11
 autocomplete: Ta gap is 2012-02-11 19:30 to 2012-02-11 23:30
 autocomplete: Ta gap fill period is 2012-02-11 19:30 to 2012-02-11 23:30
I will do a plot here Ta 2012-02-11 2012-02-11
 autocomplete: Ta gap is 2012-02-13 06:00 to 2012-02-13 09:00
 autocomplete: Ta gap fill period is 2012-02-13 06:00 to 2012-02-13 09:00
I will do a plot here Ta 2012-02-13 2012-02-13
 autocomplete: Ta gap is 2012-02-13 20:00 to 2012-02-13 22:30
 autocomplete: Ta gap fill period is 2012-02-13 20:00 to 2012-02-13 22:30
I will do a plot here Ta 2012-02-13 2012-02-13
 autocomplete: Ta gap is 2012-02-14 19:30 to 2012-02-14 23:00
 autocomplete: Ta gap fill period is 2012-02-14 19:30 to 2012-02-14 23:00
I will do a plot here Ta 2012-02-14 2012-02-14
 autocomplete: Ta gap is 2012-02-15 02:30 to 2012-02-15 05:30
 autocomplete: Ta gap fill period is 2012-02-15 02:30 to 2012-02-15 05:30
I will do a plot here Ta 2012-02-15 2012-02-15
 autocomplete: Ta gap is 2012-02-15 06:00 to 2012-02-15 08:30
 autocomplete: Ta gap fill period is 2012-02-15 06:00 to 2012-02-15 08:30
I will do a plot here Ta 2012-02-15 2012-02-15
 autocomplete: Ta gap is 2012-02-15 20:00 to 2012-02-15 22:00
 autocomplete: Ta gap fill period is 2012-02-15 20:00 to 2012-02-15 22:00
I will do a plot here Ta 2012-02-15 2012-02-15
 autocomplete: Ta gap is 2012-02-18 20:00 to 2012-02-18 22:30
 autocomplete: Ta gap fill period is 2012-02-18 20:00 to 2012-02-18 22:30
I will do a plot here Ta 2012-02-18 2012-02-18
 autocomplete: Ta gap is 2012-02-19 05:30 to 2012-02-19 08:00
 autocomplete: Ta gap fill period is 2012-02-19 05:30 to 2012-02-19 08:00
I will do a plot here Ta 2012-02-19 2012-02-19
 autocomplete: Ta gap is 2012-02-23 01:00 to 2012-02-23 05:00
 autocomplete: Ta gap fill period is 2012-02-23 01:00 to 2012-02-23 05:00
I will do a plot here Ta 2012-02-23 2012-02-23
 autocomplete: Ta gap is 2012-02-24 13:30 to 2012-02-24 16:30
 autocomplete: Ta gap fill period is 2012-02-24 13:30 to 2012-02-24 16:30
I will do a plot here Ta 2012-02-24 2012-02-24
 autocomplete: Ta gap is 2012-02-24 20:00 to 2012-02-25 03:00
 autocomplete: Ta gap fill period is 2012-02-24 20:00 to 2012-02-25 03:00
I will do a plot here Ta 2012-02-24 2012-02-25
 autocomplete: Ta gap is 2012-02-25 03:30 to 2012-02-25 10:30
 autocomplete: Ta gap fill period is 2012-02-25 03:30 to 2012-02-25 10:30
I will do a plot here Ta 2012-02-25 2012-02-25
 autocomplete: Ta gap is 2012-02-26 12:00 to 2012-02-26 14:00
 autocomplete: Ta gap fill period is 2012-02-26 12:00 to 2012-02-26 14:00
I will do a plot here Ta 2012-02-26 2012-02-26
 autocomplete: Ta gap is 2012-02-26 19:00 to 2012-02-27 01:00
 autocomplete: Ta gap fill period is 2012-02-26 19:00 to 2012-02-27 01:00
I will do a plot here Ta 2012-02-26 2012-02-27
 autocomplete: Ta gap is 2012-02-27 16:00 to 2012-02-27 18:30
 autocomplete: Ta gap fill period is 2012-02-27 16:00 to 2012-02-27 18:30
I will do a plot here Ta 2012-02-27 2012-02-27
 autocomplete: Ta gap is 2012-02-28 02:30 to 2012-02-28 12:00
 autocomplete: Ta gap fill period is 2012-02-28 02:30 to 2012-02-28 12:00
I will do a plot here Ta 2012-02-28 2012-02-28
 autocomplete: Ta gap is 2012-02-28 20:00 to 2012-02-29 08:00
 autocomplete: Ta gap fill period is 2012-02-28 20:00 to 2012-02-29 08:00
I will do a plot here Ta 2012-02-28 2012-02-29
 autocomplete: Ta gap is 2012-02-29 20:30 to 2012-03-01 01:30
 autocomplete: Ta gap fill period is 2012-02-29 20:30 to 2012-03-01 01:30
I will do a plot here Ta 2012-02-29 2012-03-01
 autocomplete: Ta gap is 2012-03-01 05:30 to 2012-03-01 08:30
 autocomplete: Ta gap fill period is 2012-03-01 05:30 to 2012-03-01 08:30
I will do a plot here Ta 2012-03-01 2012-03-01
 autocomplete: Ta gap is 2012-03-02 00:00 to 2012-03-02 03:00
 autocomplete: Ta gap fill period is 2012-03-02 00:00 to 2012-03-02 03:00
I will do a plot here Ta 2012-03-02 2012-03-02
 autocomplete: Ta gap is 2012-03-02 19:00 to 2012-03-03 01:30
 autocomplete: Ta gap fill period is 2012-03-02 19:00 to 2012-03-03 01:30
I will do a plot here Ta 2012-03-02 2012-03-03
 autocomplete: Ta gap is 2012-03-03 18:00 to 2012-03-03 22:00
 autocomplete: Ta gap fill period is 2012-03-03 18:00 to 2012-03-03 22:00
I will do a plot here Ta 2012-03-03 2012-03-03
 autocomplete: Ta gap is 2012-03-03 22:30 to 2012-03-04 06:30
 autocomplete: Ta gap fill period is 2012-03-03 22:30 to 2012-03-04 06:30
I will do a plot here Ta 2012-03-03 2012-03-04
 autocomplete: Ta gap is 2012-03-04 07:30 to 2012-03-04 10:00
 autocomplete: Ta gap fill period is 2012-03-04 07:30 to 2012-03-04 10:00
I will do a plot here Ta 2012-03-04 2012-03-04
 autocomplete: Ta gap is 2012-03-04 15:30 to 2012-03-04 18:30
 autocomplete: Ta gap fill period is 2012-03-04 15:30 to 2012-03-04 18:30
I will do a plot here Ta 2012-03-04 2012-03-04
 autocomplete: Ta gap is 2012-03-04 19:30 to 2012-03-05 01:00
 autocomplete: Ta gap fill period is 2012-03-04 19:30 to 2012-03-05 01:00
I will do a plot here Ta 2012-03-04 2012-03-05
 autocomplete: Ta gap is 2012-03-05 02:00 to 2012-03-05 10:30
 autocomplete: Ta gap fill period is 2012-03-05 02:00 to 2012-03-05 10:30
I will do a plot here Ta 2012-03-05 2012-03-05
 autocomplete: Ta gap is 2012-03-05 11:30 to 2012-03-05 13:30
 autocomplete: Ta gap fill period is 2012-03-05 11:30 to 2012-03-05 13:30
I will do a plot here Ta 2012-03-05 2012-03-05
 autocomplete: Ta gap is 2012-03-05 14:00 to 2012-03-05 16:00
 autocomplete: Ta gap fill period is 2012-03-05 14:00 to 2012-03-05 16:00
I will do a plot here Ta 2012-03-05 2012-03-05
 autocomplete: Ta gap is 2012-03-06 00:30 to 2012-03-06 13:30
 autocomplete: Ta gap fill period is 2012-03-06 00:30 to 2012-03-06 13:30
I will do a plot here Ta 2012-03-06 2012-03-06
 autocomplete: Ta gap is 2012-03-06 15:00 to 2012-03-08 09:00
 autocomplete: Ta gap fill period is 2012-03-06 15:00 to 2012-03-08 09:00
I will do a plot here Ta 2012-03-06 2012-03-08
 autocomplete: Ta gap is 2012-03-08 11:00 to 2012-03-09 09:00
 autocomplete: Ta gap fill period is 2012-03-08 11:00 to 2012-03-09 09:00
I will do a plot here Ta 2012-03-08 2012-03-09
 autocomplete: Ta gap is 2012-03-09 20:30 to 2012-03-12 09:30
 autocomplete: Ta gap fill period is 2012-03-09 20:30 to 2012-03-12 09:30
I will do a plot here Ta 2012-03-09 2012-03-12
 autocomplete: Ta gap is 2012-03-12 10:00 to 2012-03-12 17:30
 autocomplete: Ta gap fill period is 2012-03-12 10:00 to 2012-03-12 17:30
I will do a plot here Ta 2012-03-12 2012-03-12
 autocomplete: Ta gap is 2012-03-12 20:00 to 2012-03-13 13:30
 autocomplete: Ta gap fill period is 2012-03-12 20:00 to 2012-03-13 13:30
I will do a plot here Ta 2012-03-12 2012-03-13
 autocomplete: Ta gap is 2012-03-14 12:00 to 2012-03-14 14:30
 autocomplete: Ta gap fill period is 2012-03-14 12:00 to 2012-03-14 14:30
I will do a plot here Ta 2012-03-14 2012-03-14
 autocomplete: Ta gap is 2012-03-14 16:30 to 2012-03-15 01:00
 autocomplete: Ta gap fill period is 2012-03-14 16:30 to 2012-03-15 01:00
I will do a plot here Ta 2012-03-14 2012-03-15
 autocomplete: Ta gap is 2012-03-15 01:30 to 2012-03-15 06:00
 autocomplete: Ta gap fill period is 2012-03-15 01:30 to 2012-03-15 06:00
I will do a plot here Ta 2012-03-15 2012-03-15
 autocomplete: Ta gap is 2012-03-15 06:30 to 2012-03-16 09:30
 autocomplete: Ta gap fill period is 2012-03-15 06:30 to 2012-03-16 09:30
I will do a plot here Ta 2012-03-15 2012-03-16
 autocomplete: Ta gap is 2012-03-16 21:30 to 2012-03-17 00:00
 autocomplete: Ta gap fill period is 2012-03-16 21:30 to 2012-03-17 00:00
I will do a plot here Ta 2012-03-16 2012-03-17
 autocomplete: Ta gap is 2012-03-17 01:00 to 2012-03-17 11:30
 autocomplete: Ta gap fill period is 2012-03-17 01:00 to 2012-03-17 11:30
I will do a plot here Ta 2012-03-17 2012-03-17
 autocomplete: Ta gap is 2012-03-17 14:00 to 2012-03-17 22:00
 autocomplete: Ta gap fill period is 2012-03-17 14:00 to 2012-03-17 22:00
I will do a plot here Ta 2012-03-17 2012-03-17
 autocomplete: Ta gap is 2012-03-17 23:00 to 2012-03-19 13:00
 autocomplete: Ta gap fill period is 2012-03-17 23:00 to 2012-03-19 13:00
I will do a plot here Ta 2012-03-17 2012-03-19
 autocomplete: Ta gap is 2012-03-20 21:30 to 2012-03-21 15:00
 autocomplete: Ta gap fill period is 2012-03-20 21:30 to 2012-03-21 15:00
I will do a plot here Ta 2012-03-20 2012-03-21
 autocomplete: Ta gap is 2012-03-21 19:30 to 2012-03-21 22:00
 autocomplete: Ta gap fill period is 2012-03-21 19:30 to 2012-03-21 22:00
I will do a plot here Ta 2012-03-21 2012-03-21
 autocomplete: Ta gap is 2012-03-22 19:30 to 2012-03-24 03:30
 autocomplete: Ta gap fill period is 2012-03-22 19:30 to 2012-03-24 03:30
I will do a plot here Ta 2012-03-22 2012-03-24
 autocomplete: Ta gap is 2012-03-24 04:00 to 2012-03-26 17:30
 autocomplete: Ta gap fill period is 2012-03-24 04:00 to 2012-03-26 17:30
I will do a plot here Ta 2012-03-24 2012-03-26
 autocomplete: Ta gap is 2012-03-26 20:30 to 2012-03-27 04:00
 autocomplete: Ta gap fill period is 2012-03-26 20:30 to 2012-03-27 04:00
I will do a plot here Ta 2012-03-26 2012-03-27
 autocomplete: Ta gap is 2012-03-27 09:00 to 2012-03-27 11:00
 autocomplete: Ta gap fill period is 2012-03-27 09:00 to 2012-03-27 11:00
I will do a plot here Ta 2012-03-27 2012-03-27
 autocomplete: Ta gap is 2012-03-27 21:00 to 2012-03-29 14:30
 autocomplete: Ta gap fill period is 2012-03-27 21:00 to 2012-03-29 14:30
I will do a plot here Ta 2012-03-27 2012-03-29
 autocomplete: Ta gap is 2012-03-29 23:30 to 2012-03-30 04:00
 autocomplete: Ta gap fill period is 2012-03-29 23:30 to 2012-03-30 04:00
I will do a plot here Ta 2012-03-29 2012-03-30
 autocomplete: Ta gap is 2012-03-30 06:30 to 2012-03-30 08:30
 autocomplete: Ta gap fill period is 2012-03-30 06:30 to 2012-03-30 08:30
I will do a plot here Ta 2012-03-30 2012-03-30
 autocomplete: Ta gap is 2012-03-31 02:00 to 2012-03-31 04:00
 autocomplete: Ta gap fill period is 2012-03-31 02:00 to 2012-03-31 04:00
I will do a plot here Ta 2012-03-31 2012-03-31
 autocomplete: Ta gap is 2012-03-31 06:00 to 2012-03-31 08:30
 autocomplete: Ta gap fill period is 2012-03-31 06:00 to 2012-03-31 08:30
I will do a plot here Ta 2012-03-31 2012-03-31
 autocomplete: Ta gap is 2012-03-31 19:30 to 2012-03-31 22:00
 autocomplete: Ta gap fill period is 2012-03-31 19:30 to 2012-03-31 22:00
I will do a plot here Ta 2012-03-31 2012-03-31
 autocomplete: Ta gap is 2012-04-01 00:00 to 2012-04-01 05:00
 autocomplete: Ta gap fill period is 2012-04-01 00:00 to 2012-04-01 05:00
I will do a plot here Ta 2012-04-01 2012-04-01
 autocomplete: Ta gap is 2012-04-01 06:00 to 2012-04-01 09:00
 autocomplete: Ta gap fill period is 2012-04-01 06:00 to 2012-04-01 09:00
I will do a plot here Ta 2012-04-01 2012-04-01
 autocomplete: Ta gap is 2012-04-02 00:00 to 2012-04-02 09:30
 autocomplete: Ta gap fill period is 2012-04-02 00:00 to 2012-04-02 09:30
I will do a plot here Ta 2012-04-02 2012-04-02
 autocomplete: Ta gap is 2012-04-02 19:00 to 2012-04-02 23:00
 autocomplete: Ta gap fill period is 2012-04-02 19:00 to 2012-04-02 23:00
I will do a plot here Ta 2012-04-02 2012-04-02
 autocomplete: Ta gap is 2012-04-02 23:30 to 2012-04-03 10:00
 autocomplete: Ta gap fill period is 2012-04-02 23:30 to 2012-04-03 10:00
I will do a plot here Ta 2012-04-02 2012-04-03
 autocomplete: Ta gap is 2012-04-03 20:00 to 2012-04-03 23:30
 autocomplete: Ta gap fill period is 2012-04-03 20:00 to 2012-04-03 23:30
I will do a plot here Ta 2012-04-03 2012-04-03
 autocomplete: Ta gap is 2012-04-04 02:00 to 2012-04-04 10:00
 autocomplete: Ta gap fill period is 2012-04-04 02:00 to 2012-04-04 10:00
I will do a plot here Ta 2012-04-04 2012-04-04
 autocomplete: Ta gap is 2012-04-04 19:30 to 2012-04-04 22:30
 autocomplete: Ta gap fill period is 2012-04-04 19:30 to 2012-04-04 22:30
I will do a plot here Ta 2012-04-04 2012-04-04
 autocomplete: Ta gap is 2012-04-04 23:00 to 2012-04-05 10:00
 autocomplete: Ta gap fill period is 2012-04-04 23:00 to 2012-04-05 10:00
I will do a plot here Ta 2012-04-04 2012-04-05
 autocomplete: Ta gap is 2012-04-05 19:30 to 2012-04-05 21:30
 autocomplete: Ta gap fill period is 2012-04-05 19:30 to 2012-04-05 21:30
I will do a plot here Ta 2012-04-05 2012-04-05
 autocomplete: Ta gap is 2012-04-06 00:00 to 2012-04-06 09:30
 autocomplete: Ta gap fill period is 2012-04-06 00:00 to 2012-04-06 09:30
I will do a plot here Ta 2012-04-06 2012-04-06
 autocomplete: Ta gap is 2012-04-06 20:00 to 2012-04-06 23:00
 autocomplete: Ta gap fill period is 2012-04-06 20:00 to 2012-04-06 23:00
I will do a plot here Ta 2012-04-06 2012-04-06
 autocomplete: Ta gap is 2012-04-07 01:00 to 2012-04-07 04:30
 autocomplete: Ta gap fill period is 2012-04-07 01:00 to 2012-04-07 04:30
I will do a plot here Ta 2012-04-07 2012-04-07
 autocomplete: Ta gap is 2012-04-07 05:00 to 2012-04-07 07:30
 autocomplete: Ta gap fill period is 2012-04-07 05:00 to 2012-04-07 07:30
I will do a plot here Ta 2012-04-07 2012-04-07
 autocomplete: Ta gap is 2012-04-07 21:30 to 2012-04-08 00:30
 autocomplete: Ta gap fill period is 2012-04-07 21:30 to 2012-04-08 00:30
I will do a plot here Ta 2012-04-07 2012-04-08
 autocomplete: Ta gap is 2012-04-08 01:00 to 2012-04-08 08:30
 autocomplete: Ta gap fill period is 2012-04-08 01:00 to 2012-04-08 08:30
I will do a plot here Ta 2012-04-08 2012-04-08
 autocomplete: Ta gap is 2012-04-08 20:00 to 2012-04-09 00:30
 autocomplete: Ta gap fill period is 2012-04-08 20:00 to 2012-04-09 00:30
I will do a plot here Ta 2012-04-08 2012-04-09
 autocomplete: Ta gap is 2012-04-09 01:30 to 2012-04-09 09:00
 autocomplete: Ta gap fill period is 2012-04-09 01:30 to 2012-04-09 09:00
I will do a plot here Ta 2012-04-09 2012-04-09
 autocomplete: Ta gap is 2012-04-09 21:30 to 2012-04-10 10:00
 autocomplete: Ta gap fill period is 2012-04-09 21:30 to 2012-04-10 10:00
I will do a plot here Ta 2012-04-09 2012-04-10
 autocomplete: Ta gap is 2012-04-10 20:30 to 2012-04-11 11:00
 autocomplete: Ta gap fill period is 2012-04-10 20:30 to 2012-04-11 11:00
I will do a plot here Ta 2012-04-10 2012-04-11
 autocomplete: Ta gap is 2012-04-11 20:00 to 2012-04-12 11:00
 autocomplete: Ta gap fill period is 2012-04-11 20:00 to 2012-04-12 11:00
I will do a plot here Ta 2012-04-11 2012-04-12
 autocomplete: Ta gap is 2012-04-12 19:30 to 2012-04-13 11:00
 autocomplete: Ta gap fill period is 2012-04-12 19:30 to 2012-04-13 11:00
I will do a plot here Ta 2012-04-12 2012-04-13
 autocomplete: Ta gap is 2012-04-13 21:00 to 2012-04-14 04:00
 autocomplete: Ta gap fill period is 2012-04-13 21:00 to 2012-04-14 04:00
I will do a plot here Ta 2012-04-13 2012-04-14
 autocomplete: Ta gap is 2012-04-14 06:00 to 2012-04-14 09:00
 autocomplete: Ta gap fill period is 2012-04-14 06:00 to 2012-04-14 09:00
I will do a plot here Ta 2012-04-14 2012-04-14
 autocomplete: Ta gap is 2012-04-14 21:00 to 2012-04-15 09:00
 autocomplete: Ta gap fill period is 2012-04-14 21:00 to 2012-04-15 09:00
I will do a plot here Ta 2012-04-14 2012-04-15
 autocomplete: Ta gap is 2012-04-15 20:30 to 2012-04-16 09:00
 autocomplete: Ta gap fill period is 2012-04-15 20:30 to 2012-04-16 09:00
I will do a plot here Ta 2012-04-15 2012-04-16
 autocomplete: Ta gap is 2012-04-16 21:00 to 2012-04-17 09:00
 autocomplete: Ta gap fill period is 2012-04-16 21:00 to 2012-04-17 09:00
I will do a plot here Ta 2012-04-16 2012-04-17
 autocomplete: Ta gap is 2012-04-17 21:30 to 2012-04-18 10:00
 autocomplete: Ta gap fill period is 2012-04-17 21:30 to 2012-04-18 10:00
I will do a plot here Ta 2012-04-17 2012-04-18
 autocomplete: Ta gap is 2012-04-18 21:30 to 2012-04-19 09:00
 autocomplete: Ta gap fill period is 2012-04-18 21:30 to 2012-04-19 09:00
I will do a plot here Ta 2012-04-18 2012-04-19
 autocomplete: Ta gap is 2012-04-19 22:00 to 2012-04-20 00:00
 autocomplete: Ta gap fill period is 2012-04-19 22:00 to 2012-04-20 00:00
I will do a plot here Ta 2012-04-19 2012-04-20
 autocomplete: Ta gap is 2012-04-20 06:30 to 2012-04-20 08:30
 autocomplete: Ta gap fill period is 2012-04-20 06:30 to 2012-04-20 08:30
I will do a plot here Ta 2012-04-20 2012-04-20
 autocomplete: Ta gap is 2012-04-21 04:00 to 2012-04-21 09:30
 autocomplete: Ta gap fill period is 2012-04-21 04:00 to 2012-04-21 09:30
I will do a plot here Ta 2012-04-21 2012-04-21
 autocomplete: Ta gap is 2012-04-22 23:00 to 2012-04-23 03:00
 autocomplete: Ta gap fill period is 2012-04-22 23:00 to 2012-04-23 03:00
I will do a plot here Ta 2012-04-22 2012-04-23
 autocomplete: Ta gap is 2012-04-23 12:30 to 2012-04-23 15:00
 autocomplete: Ta gap fill period is 2012-04-23 12:30 to 2012-04-23 15:00
I will do a plot here Ta 2012-04-23 2012-04-23
 autocomplete: Ta gap is 2012-04-23 23:30 to 2012-04-24 02:30
 autocomplete: Ta gap fill period is 2012-04-23 23:30 to 2012-04-24 02:30
I will do a plot here Ta 2012-04-23 2012-04-24
 autocomplete: Ta gap is 2012-04-24 03:00 to 2012-04-24 06:00
 autocomplete: Ta gap fill period is 2012-04-24 03:00 to 2012-04-24 06:00
I will do a plot here Ta 2012-04-24 2012-04-24
 autocomplete: Ta gap is 2012-04-24 21:30 to 2012-04-25 02:00
 autocomplete: Ta gap fill period is 2012-04-24 21:30 to 2012-04-25 02:00
I will do a plot here Ta 2012-04-24 2012-04-25
 autocomplete: Ta gap is 2012-04-25 02:30 to 2012-04-25 06:30
 autocomplete: Ta gap fill period is 2012-04-25 02:30 to 2012-04-25 06:30
I will do a plot here Ta 2012-04-25 2012-04-25
 autocomplete: Ta gap is 2012-04-26 19:30 to 2012-04-27 12:30
 autocomplete: Ta gap fill period is 2012-04-26 19:30 to 2012-04-27 12:30
I will do a plot here Ta 2012-04-26 2012-04-27
 autocomplete: Ta gap is 2012-04-28 03:30 to 2012-04-28 09:00
 autocomplete: Ta gap fill period is 2012-04-28 03:30 to 2012-04-28 09:00
I will do a plot here Ta 2012-04-28 2012-04-28
 autocomplete: Ta gap is 2012-04-28 20:30 to 2012-04-29 10:30
 autocomplete: Ta gap fill period is 2012-04-28 20:30 to 2012-04-29 10:30
I will do a plot here Ta 2012-04-28 2012-04-29
 autocomplete: Ta gap is 2012-04-29 21:30 to 2012-05-10 00:00
 autocomplete: Ta gap fill period is 2012-04-29 21:30 to 2012-05-10 00:00
I will do a plot here Ta 2012-04-29 2012-05-10
 autocomplete: Ta gap is 2013-08-22 14:00 to 2013-10-16 00:30
 autocomplete: Ta gap fill period is 2013-08-22 14:00 to 2013-10-16 00:30
I will do a plot here Ta 2013-08-22 2013-10-16

In [12]:
ldt_tower=ds4.series["DateTime"]["Data"]
ldt_aws=ds_alt['../../Sites/SturtPlains/Data/AWS/SturtPlains_AWS.nc'].series["DateTime"]["Data"]
ldt_bios=ds_alt['../../Sites/SturtPlains/Data/BIOS2/SturtPlains_BIOS2.nc'].series["DateTime"]["Data"]
sdate="2012-02-10 03:00"
edate="2012-02-10 06:00"
si=qcutils.GetDateIndex(ldt_tower,sdate)
ei=qcutils.GetDateIndex(ldt_tower,edate)
print ldt_tower[si],ldt_aws[si],ldt_bios[si]
print ldt_tower[ei],ldt_aws[ei],ldt_bios[ei]
Ah,f,a=qcutils.GetSeriesasMA(ds4,"Ah")
Ah_composite,f,a=qcutils.GetSeriesasMA(ds4,"Ah_composite")
Ah_aws,f,a=qcutils.GetSeriesasMA(ds4,"Ah_aws")
Ah_bios2,f,a=qcutils.GetSeriesasMA(ds4,"Ah_bios2")
print "Ah",Ah[si:ei],Ah.mask[si:ei]
print "Ah_composite",Ah_composite[si:ei],Ah_composite.mask[si:ei]
print "Ah_aws",Ah_aws[si:ei],Ah_aws.mask[si:ei]
print "Ah_bios2",Ah_bios2[si:ei],Ah_bios2.mask[si:ei]
Ah_aws_0,f,a=qcutils.GetSeriesasMA(ds_alt['../../Sites/SturtPlains/Data/AWS/SturtPlains_AWS.nc'],"Ah_0")
Ah_aws_1,f,a=qcutils.GetSeriesasMA(ds_alt['../../Sites/SturtPlains/Data/AWS/SturtPlains_AWS.nc'],"Ah_1")
print "Ah_aws_0",Ah_aws_0[si:ei],Ah_aws_0.mask[si:ei]
print "Ah_aws_1",Ah_aws_1[si:ei],Ah_aws_1.mask[si:ei]
Ah_bios,f,a=qcutils.GetSeriesasMA(ds_alt['../../Sites/SturtPlains/Data/BIOS2/SturtPlains_BIOS2.nc'],"Ah")
print "Ah_bios",Ah_bios[si:ei],Ah_bios.mask[si:ei]


2012-02-10 03:00:00 2012-02-10 03:00:00 2012-02-10 03:00:00
2012-02-10 06:00:00 2012-02-10 06:00:00 2012-02-10 06:00:00
Ah [8.412768363952637 -- -- -- -- 9.068660736083984] [False  True  True  True  True False]
Ah_composite [-- -- -- -- -- --] [ True  True  True  True  True  True]
Ah_aws [-- -- -- -- -- --] [ True  True  True  True  True  True]
Ah_bios2 [-- -- -- -- -- --] [ True  True  True  True  True  True]
Ah_aws_0 [12.067372290901051 12.005253126609286 11.782696014482934
 11.508654021876628 11.651868655021335 11.792252614720388] [False False False False False False]
Ah_aws_1 [13.379600047463919 14.302456038652222 13.38526819846227 13.896043608575786
 12.599079538442044 13.476822904904983] [False False False False False False]
Ah_bios [13.20150375366211 13.240818977355957 13.280298233032227 13.319778442382812
 13.35901165008545 13.397730827331543] [False False False False False False]

In [ ]: