## page was renamed from Block 2 - Ingest V0 = 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 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)'' CategoryHowTos