10 likes | 126 Views
Run_amnh.sh Shell script in ~/bin Arguments: date in yyyymmdd format Number of days to process (integer). Irmos_amnh.sh Shell script in ~/bin Arguments: Startday ( yyyymmdd ) Previous day ( yyyymmdd ). ftp to disc2.nascom.nasa.gov
E N D
Run_amnh.sh Shell script in ~/bin Arguments: date in yyyymmdd format Number of days to process (integer) Irmos_amnh.sh Shell script in ~/bin Arguments: Startday (yyyymmdd) Previous day (yyyymmdd) • ftp to disc2.nascom.nasa.gov • retrieves previous half hour’s data in order to fill gaps in first image of the sequence from current day; • LOC=disc2.nascom.nasa.gov • DSTDIR = /san1/ngardine/ncep/$yyyy0/4day0 • PREVIMG = $DSTDIR/tif_04km/ncepIR04km_”$yyyy0$mm0$dd0”2300.tif • SRCDIR =/data/s4pa/TRMM_ANCILLARY/MERG/$yyyy0/$day0/ • Fill • outfile=/san1/ngardine/ncep/process.batecho ".reset_session" > $outfileecho "!path = expand_path('+/san1/ngardine/idl') + ':' + !path" >> $outfileecho "run_ncep, basedir = '$DSTDIR/'" >> $outfile • j_exract_ncep_4km# run_ncep just extracts data; # j_combine_ncep writes xml and pgm filesecho "j_combine_ncep_4km, indir='$DSTDIR/tiff_04km/', file_spec='*.tif', outdir='$DSTDIR/filled_04km/', startfile='$PREVIMG'" >> $outfileecho "exit" >> $outfile • despeck, write_tiff, write_neo/usr/local/bin/idl $outfile\ • ftp current day’s data • PREVIMG=$DSTDIR/tiff_04km/ncepIR04km_"$yyyy0$mm0$dd0"2330.tifSRCDIR=/data/s4pa/TRMM_ANCILLARY/MERG/$yyyy/$day/DSTDIR=/san1/ngardine/ncep/$yyyy/$daycd $DSTDIRlist1=`echo -e "open $LOC\nuser anonymous 11106@\nbin\ncd $SRCDIR\nls\nbye\n" | ftp -n | awk '/merg.*pixel.Z/ • Extract, fill, and project to apianus the day’s data • outfile=/san1/ngardine/ncep/process.batecho ".reset_session" > $outfileecho "!path = expand_path('+/san1/ngardine/idl') + ':' + !path" >> $outfileecho "run_ncep, basedir = '$DSTDIR/'" >> $outfileecho "j_combine_ncep_4km, indir='$DSTDIR/tiff_04km/', file_spec='*.tif', outdir='$DSTDIR/filled_04km/', startfile='$PREVIMG'" >> $outfileecho “ = '$DSTDIR'" >> $outfile • j_ncep_to_apian2echo "exit" >> $outfile/usr/local/bin/idl $outfile • #~/bin/fput.neo /san1/ngardine/ncep/$yyyy/$day/filled_04km