Block 2 - Ingest V2

Description

This block additionally ingests images from FITS files into the SPC world.

Basic steps

  1. Copy FITS images
  2. Make a list of images
  3. Updated kernels
  4. Run process_fits

  5. Run make_sumfiles

Procedure

Copy FITS images

Install a copy of the FITS images for each day into the NEW_IMAGES_YYYY_DDD location.

/path/ops/OSIRIS_REx/NEW_IMAGES_YYYY_DDD

Make a list of images

SPC can ingest images one at a time via process_fits, but we prefer to run it in batch. If newpix.txt exists, then process_fits will use that as input. It will search through all directories in the form of ../OSIRIS_REx/NEW_IMAGES_YYY_DDD .

For tracking purposes, we will name the list of images via data shortcut name and put it into lsupport. The shortcut name is the short hand for mission name (Ap, PS, OA, DS, OB, Re) and the sequence number of the images set, i.e. the first delivery is 1, the next is 2, etc.

cd /path/ops/OSIRIS_REx/NEW_IMAGES_YYYY_DD D 
ls > ../newpix.Ap4
cd ../Approch150B.v1
mv ../newpix.Ap4 lsupport/
relink lsupport/newpix.Ap4 newpix.txt
ls -l newpix.txt

Updated kernels

Typically, you will need to update the spacecraft (SPK or file extension bsp) and pointing (CK or file extension bc). It may be necessary to update the spacecraft leap second clock also (lsp). Finally, if you get a new POLE, the planetary constants kernel for Bennu needs to be updated (PCK or file extension tpc).

   chmod u+w make_sumfiles.txt
   vi make_sumfiles.txt               # add the new kernels
   chmod a-w make_sumfiles.txt
  1. If the PCK has changed, update INIT_LITHOS.TXT also.

Run [[process_fits]]

Run [[make_sumfiles]]


(Compiled by EEP)