|
Size: 1115
Comment:
|
Size: 1416
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 42: | Line 42: |
| === 2. Set-up === | === 2. Running PROCESS_FITS to populate IMAGEFILES, PICTLIST.TXT, and make_sumfiles.in === {{{ # Create a symbolic link to the location of the images -- this is a single line ln -s <Full pathname to directory containing images> images |
| Line 44: | Line 47: |
| === 3. Populate sub-directories === | # Build the list of images to process ls images/ > imgList |
| Line 46: | Line 50: |
| === 4. Generate PICTLIST.TXT file === | # Run the script sh lsupport/processScript.sh imgList | tee output.txt |
| Line 48: | Line 53: |
| === 5. Generate list of images needing registering/autoregistering === === 6. Complete procedure === |
# Store the results mkdir step1-1 mv output.txt imgList step1-1 rm images # get rid of the symbolic link }}} |
Block 2 - Ingest V2
Description
This block additionally ingests images from FITS files into the SPC world.
Assumptions
- You have invoked a Bourne-Again Shell (bash)
- You are a member of the group OREX\spc
- You have set up a skeleton directory in the following format:
Bennu/
DATA/
IMAGEFILES/
NOMINALS/
SUMFILES/
SHAPEFILES/
lsupport/
Procedure
1. Create the following file
vi lsupport/processScript.sh
# Takes a list of image names and runs process_fits on them
# Eric E. Palmer, 9 June 2015
file=$1
prefix="images" # symbolic link to source images
list=`cat $file`
for item in $list
do
echo "$prefix/$item" | process_fits
done
2. Running PROCESS_FITS to populate IMAGEFILES, PICTLIST.TXT, and make_sumfiles.in
# Create a symbolic link to the location of the images -- this is a single line ln -s <Full pathname to directory containing images> images # Build the list of images to process ls images/ > imgList # Run the script sh lsupport/processScript.sh imgList | tee output.txt # Store the results mkdir step1-1 mv output.txt imgList step1-1 rm images # get rid of the symbolic link
(Compiled by JRW)
