Skip to content

Block 1 Setup Directory

Eric E Palmer edited this page Oct 23, 2026 · 1 revision

Block 1 - Setup Directory V0

(./) this is copied over from working version--needs to be made more general

Description

This block populates an F3 test directory from the F3-base directory. It clears and re-populates the working directory (ORIG) and updates the .DAT file directory (base/IMAGEFILES) in readiness for sensitivity testing.

Assumptions

  • You have invoked a Bourne-Again Shell (bash) on ormacsrv1.lpl.arizona.edu
  • You are a member of the group OREX\spc
  • You have set up a skeleton directory in the following format:

/SPC_Test/F3G-Nav/
                   ORex/
                            DATA/
                   base/
                            IMAGEFILES/
                            SHAPEFILES/
                   lsupport/
                   orig/
                   results/
                   test/

User inputs

  • testID - Name of the F3 test directory (for example, 'F3E-Limbs')
  • blockID - User-specified identifier for typescript textfile name (for example, 'Block-01-01-TestDirSetUp-Orig')

Procedure

1. Initial inputs

testID=F3G-Nav
blockID=Block-01-01-TestDirSetUp-Orig

2. Set-up

cd /SPC_Test/$testID
script
date
pwd
ls -l

3. Synchronize to base directory

rsync --delete -ha ../F3-base/orig .
rsync -ha ../F3-base/base/IMAGEFILES base/

(./) Not sure if this will be a step in general version. Need to fix numbering.

rm orig/DATA
ln -s ../ORex/DATA orig/DATA

4. Print details

ls -l orig
cat orig/README
ls -l base/IMAGEFILES
cat base/IMAGEFILES/README

5. Complete procedure

exit
if [ ! -d /SPC_Test/$testID/log ]; then
  mkdir /SPC_Test/$testID/log
fi
mv typescript /SPC_Test/$testID/log/log-typescript-${blockID}


(Compiled by DL)

Clone this wiki locally