Revision 35d59dc1
Added by Adam Wilson about 11 years ago
climate/procedures/MOD35_L2_process.r | ||
---|---|---|
51 | 51 |
|
52 | 52 |
if(platform=="pleiades"){ |
53 | 53 |
## location of MOD06 files |
54 |
datadir=paste("/nobackupp4/datapool/modis/MOD06_L2.005/",year,"/",doy,"/",sep="")
|
|
54 |
datadir=paste("/nobackupp4/datapool/modis/MOD35_L2.006/",year,"/",doy,"/",sep="")
|
|
55 | 55 |
## path to some executables |
56 | 56 |
ncopath="/nasa/sles11/nco/4.0.8/gcc/mpt/bin/" |
57 | 57 |
swtifpath="/nobackupp1/awilso10/software/heg/bin/swtif" |
58 | 58 |
## path to swath database |
59 | 59 |
db="/nobackupp4/pvotava/DB/export/swath_geo.sql.sqlite3.db" |
60 | 60 |
## specify working directory |
61 |
setwd("/nobackupp1/awilso10/mod06")
|
|
61 |
setwd("/nobackupp1/awilso10/mod35")
|
|
62 | 62 |
gisBase="/u/armichae/pr/grass-6.4.2/" |
63 | 63 |
## path to MOD11A1 file for this tile to align grid/extent |
64 | 64 |
gridfile=list.files("/nobackupp4/datapool/modis/MOD11A1.005/2006.01.27",pattern=paste(tile,".*[.]hdf$",sep=""),recursive=T,full=T)[1] |
... | ... | |
182 | 182 |
## Process the gridded files to align exactly with MODLAND tile and produce a daily summary of multiple swaths |
183 | 183 |
|
184 | 184 |
## Identify output file |
185 |
ncfile=paste(outdir,"/MOD06_",tile,"_",date,".nc",sep="") #this is the 'final' daily output file
|
|
185 |
ncfile=paste(outdir,"/MOD35_",tile,"_",date,".nc",sep="") #this is the 'final' daily output file
|
|
186 | 186 |
|
187 | 187 |
## function to convert binary to decimal to assist in identifying correct values |
188 | 188 |
## this is helpful when defining QA handling below, but isn't used in processing |
... | ... | |
314 | 314 |
print(paste("FILE ERROR: tile ",tile," and date ",date," was not outputted correctly, deleting... ")) |
315 | 315 |
file.remove(ncfile) |
316 | 316 |
} |
317 |
|
|
317 |
|
|
318 | 318 |
## print out some info |
319 | 319 |
print(paste(" ################################################################### Finished ",date, |
320 | 320 |
"################################################################")) |
Also available in: Unified diff
Simplifications to Climatology Script