
del ftpget.bat

set AAMMDD=%DATE:~6,4%%DATE:~0,2%%DATE:~3,2%
echo %AAMMDD%

echo cd /SL.us008001/ST.opnl/MT.gfs_CY.00/RD.%AAMMDD%/PT.grid_DF.gr1 > ftpget.bat
echo lcd c:\wingridds\grib\wafs\octantl >> ftpget.bat
echo prompt >> ftpget.bat
echo quote PASV >> ftpget.bat
echo bin >> ftpget.bat
echo mget fh.???_tl.press_ar.octantl >> ftpget.bat
echo bye >> ftpget.bat

ftp -s:ftpget.bat -A tgftp.nws.noaa.gov

cd c:\
cd wingridds
grib2pcg32 octets.wl1

cd \
cd wingridds
cd grib
cd wafs
cd octanti
del fh*.*
cd ..
cd octantj
del fh*.*
cd ..
cd octantk
del fh*.*
cd ..
cd octantl
del fh*.*
cd ..
cd octantm
del fh*.*
cd ..
cd octantn
del fh*.*
cd ..
cd octanto
del fh*.*
cd ..
cd octantp
del fh*.*
cd ..
exit
