1 / 1

Process and Retrieve NCEP Data with Shell Scripts

This document describes the usage of two shell scripts, `Run_amnh.sh` and `Irmos_amnh.sh`, for efficiently processing and retrieving NCEP data. The scripts enable users to handle data in a specified format and time range, automatically filling gaps in satellite imagery. Key actions include transferring data via FTP, extracting relevant data, and combining images into a specified directory structure. These tools are essential for researchers working with accurate and up-to-date meteorological data within the specified parameters.

aulii
Télécharger la présentation

Process and Retrieve NCEP Data with Shell Scripts

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

More Related