Пример #1
0
f = open(idate0 + "." + VARLIST[0] + "_arg_mis.dat", "w")  # OUTPUT x il 3DVAR

iniz = "     \n"
f.writelines(iniz)

# LIST of profiles for the selected variable in VARLIST
# in the interval idate1.time_interval in the mediterranean area
Profilelist_1 = bio_float.FloatSelector(LOVFLOATVARS[VARLIST[0]],
                                        idate1.time_interval, OGS.med)
TL = TimeList.fromfilenames(idate2.time_interval,
                            INPUTDIR,
                            "ave.*.nc",
                            filtervar="P_l")
TL.inputFrequency = 'weekly'
M = Matchup_Manager(Profilelist_1, TL, BASEDIR)

#import sys
#sys.exit()

# LIST of FLOATS (WMO) that are in Profilelist_1
WMOlist = bio_float.get_wmo_list(Profilelist_1)
nWMO = len(WMOlist)  #NUMBER OF float IN THE SELECTED PERIOD

totallines = 0
for wmo in WMOlist:
    #for ind in np.arange(0,1):
    #        wmo=WMOlist[ind]
    print wmo

    # SAVE in the "Goodlist" all the profiles for a given FLOAT ID