ACRIST Tools

 

MERSS Utilities :


Available Utilities:

makefc  export MERSS packets into *.BSP, *.CSP and *.DSP files            [Next Utility][List of Utilities]
 Syntaxe :  makefc  filgen tfil proto simul versim date origin tsize abstra tgain tiopt dirnam
 where :
filgen : name of file (excluding the path) that will contain the exported packets (w/o the extension .BSP)
tfil :    length of the filgen string (without the \0 character)
proto :   name of the MERSS folder holding the simulation
simul :   name of the MERSS simulation
versim :  MERSS version
date :    date of extraction
origin :  comment giving origin of simulation (ACRI, ESA, MERSS, etc.)
tsize :   size of file (in bytes) of the *.BSP file (or the merpac_rr.iom file)
abstra :  comment describing the simulation (no spaces are allowed)
tgain :   switch gain(1)/measurements(0) file
tiopt :   makefc option code
                1: generate description file
                2: generate control file
                3: generate readme file
dirnam : name of directory where the exported packet files will be saved
Exemple :
PACKETS_DIR="/megs_aux/exp_packets/merss4.1"

FOLDER="sat_megs"
VERSION="4.1"
ORIGIN="ACRI"
TGAIN="0"

#build up date like 15-DEC-1999
DAY=`/usr/xpg4/bin/date -u "+ %d"`; DAY=`printf "%02d\n" "$DAY"`
MONTH=`/usr/xpg4/bin/date -u "+ %c" | /usr/bin/awk '{print $2}'|/usr/openwin/bin/capitalize -u`
YEAR=`/usr/xpg4/bin/date -u "+ %c"  | /usr/bin/awk '{print $5}'`

DATE="${DAY}-${MONTH}-${YEAR}"

COMMENT="generation_of_level0_products_for_pacific_tests"

RR=0; FR=1; RESOLUTION=${RR}

 GEN=RR_${SIMUL};    LGGEN=`echo ${GEN} | wc -c`;    LGGEN=`echo "${LGGEN} - 1" | bc`

SIMUL_DIR="${MERSS_HOME}/folders/${FOLDER}/${SIMUL}"
PCK_FILE=${PACKETS_DIR}/${GEN}

cp ${SIMUL_DIR}/files/merpac_rr.iom ${PCK_FILE}.BSP

 SIZE=`ls -l ${PCK_FILE}.BSP | awk '{print $5}'`

cd  ${SIMUL_DIR}

makefc $GEN $LGGEN $FOLDER $SIMUL $VERSION $DATE $ORIGIN $SIZE $COMMENT $TGAIN 1 $PACKETS_DIR > ${PCK_FILE}.DSP
makefc $GEN $LGGEN $FOLDER $SIMUL $VERSION $DATE $ORIGIN $SIZE $COMMENT $TGAIN 2 $PACKETS_DIR > ${PCK_FILE}.CSP
makefc $GEN $LGGEN $FOLDER $SIMUL $VERSION $DATE $ORIGIN $SIZE $COMMENT $TGAIN 3 $PACKETS_DIR > ${SIMUL_DIR}/README
 

Notes : 1) it is encouraged to use the makefc tool in the directory of the MERSS simulation.
(installed under ${MERSS_HOME}/resources/binaries)



level0 : translates *.BSP, *.CSP and *.DSP files to level 0 product files            [Next Utility][List of Utilities]
 
 Syntaxe :  level0 [-m %d] [-p %s] [-r %d] [-l0 %s] [-t %s] [-x %d %d] [-k %d %d] [-op %s]
 [-m 0]    : operation mode
 [-p %s]   : raw packets file name (w/o extension)
 [-r 0]    : resolution (0 : reduced, 1: full)
 [-l0 %s]  : level 0 product file name
 [-t %s]   : level 0 header template
 [-x -1 -1]: first and last packets to cut
 [-k -1 -1]: first and last packets to keep
 [-op %s]  : output packets file name (w/o extension)
(installed under ${MERSS_HOME}/resources/binaries)
 

News|HOME