Commit 0764b8a6 authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files

debug

parent bb3dbc72
...@@ -184,15 +184,15 @@ def download_gpm(sarlist, sartype, gpmdir): ...@@ -184,15 +184,15 @@ def download_gpm(sarlist, sartype, gpmdir):
sardate = sarsplit[datepos] sardate = sarsplit[datepos]
sar3dates = get_meteodates_from_sardate(sardate) sar3dates = get_meteodates_from_sardate(sardate)
tifexits = glob.glob(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[0]+"-S000000-E235959*.tif") tifexits = glob.glob(os.path.join(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[0]+"-S000000-E235959*.tif"))
if len(tifexits) >= 1 : if len(tifexits) >= 1 :
continue continue
tifexitsm1 = glob.glob(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[1]+"-S000000-E235959*.tif") tifexitsm1 = glob.glob(os.path.join(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[1]+"-S000000-E235959*.tif"))
if len(tifexitsm1) >= 1 : if len(tifexitsm1) >= 1 :
continue continue
tifexitsm2 = glob.glob(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[2]+"-S000000-E235959*.tif") tifexitsm2 = glob.glob(os.path.join(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[2]+"-S000000-E235959*.tif"))
if len(tifexitsm2) >= 1 : if len(tifexitsm2) >= 1 :
continue continue
...@@ -216,9 +216,9 @@ def process_gpm(sar, sar3dates, gpmdir): ...@@ -216,9 +216,9 @@ def process_gpm(sar, sar3dates, gpmdir):
if not os.path.exists(outdir): if not os.path.exists(outdir):
os.mkdir(outdir) os.mkdir(outdir)
gpmfiles1 = glob.glob(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[0]+"*.tif") gpmfiles1 = glob.glob(os.path.join(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[0]+"*.tif"))
gpmfiles2 = glob.glob(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[1]+"*.tif") gpmfiles2 = glob.glob(os.path.join(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[1]+"*.tif"))
gpmfiles3 = glob.glob(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[2]+"*.tif") gpmfiles3 = glob.glob(os.path.join(gpmdir,"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[2]+"*.tif"))
if len(gpmfiles1) == 0 : if len(gpmfiles1) == 0 :
print("Error: Can't find gpm file "+"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[0]+"*.tif") print("Error: Can't find gpm file "+"3B-DAY-GIS.MS.MRG.3IMERG."+sar3dates[0]+"*.tif")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment