#/usr/bin/ksh
#

EXEC=$ROPP_SRC/ropp_fm/tools/ropp_fm_bg2ro_1d

IFILE=GRAS_xxx_1B_M02_20141115142313Z_20141115142727Z_N_O_20141115152139Z.bg.nc
#IFILE=GRAS_xxx_1B_M02_20141031001713Z_20141031002055Z_N_O_20141031014235Z.bg.nc

OFILE=$(echo $IFILE |sed -es/'bg'/'fw'/)
TFILE=$(echo $IFILE |sed -es/'nc'/'out'/)



$EXEC --no-ranchk --no-zapem -f $IFILE -o $OFILE -d > $TFILE







