Revision 9c8b4de6
Added by Adam Wilson almost 12 years ago
climate/procedures/MOD06_Climatology.r | ||
---|---|---|
56 | 56 |
print(table(fdly$fmonth)) |
57 | 57 |
print(table(fdly$fvar)) |
58 | 58 |
|
59 |
## Identify which files failed test |
|
60 |
fdly$drop=is.na(fdly$npar)|fdly$fvar!=finalvars |
|
61 |
|
|
59 | 62 |
## delete files that fail check? |
60 |
delete=T |
|
63 |
delete=T
|
|
61 | 64 |
if(delete) { |
62 |
fdly$drop=is.na(fdly$npar)|fdly$fvar!=finalvars |
|
63 | 65 |
print(paste(sum(fdly$drop),"files will be deleted")) |
64 | 66 |
file.remove(as.character(fdly$path[fdly$drop])) |
65 |
fdly=fdly[!fdly$drop,] |
|
66 | 67 |
} |
68 |
## remove dropped files from list |
|
69 |
fdly=fdly[!fdly$drop,] |
|
67 | 70 |
|
68 | 71 |
################################################################################# |
69 | 72 |
## Combine the year-by-year files into a single daily file in the summary directory (for archiving) |
Also available in: Unified diff
Updated submit script to process multiple tiles and days in the same batch. Also separated the daily processing from the climatologies