Differences between revisions 1 and 33 (spanning 32 versions)
Revision 1 as of 2014-02-03 10:39:17
Size: 431
Editor: EricPalmer
Comment:
Revision 33 as of 2017-12-22 14:20:24
Size: 5323
Editor: EricPalmer
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
["Test Files"] = make_sumfiles =
||Category B ||Version 3.0.1 ||
Line 4: Line 5:
Builds the sumfile and nominals == Description ==
In general, this program ingests images into SPC, building the sumfiles and nominals.
Line 6: Line 8:
I don't know what B-Frame is.
You must update the ck and spk entries in ["make_sumfiles.txt"]. You must have entries that cover the time of all of your images.
'''make_sumfiles''' takes in the name and some other data about the images from [[make_sumfiles.in]], and position and pointing data from the kernels. The program then

 * converts the image into the <filename>.DAT format in [[IMAGEFILES]]
 * generates <filename>.SUM in [[SUMFILES]] and <filename>.NOM in [[NOMINALS]]
 * appends the image name onto [[PICTLIST.TXT]]

== User Warnings ==
 . /!\ '''''All the vectors in the sumfiles and nominals are in a body fixed frame with the origin at the center of the target body. The origin might be off a little bit, which means you may have to use [[shift]] eventually.'''''
 /!\ '''''The ck and spk kernel names in [[make_sumfiles.txt]] must cover the time span of all the images being ingested. Otherwise, make_sumfiles will not work.'''''
 /!\ '''''This program is non-standard. It frequently requires different versions for different missions to get the data in a form usable by SPC. Although the goal is to make a single version that does it all, each mission has a different image format.'''''
 /!\ '''''If the image name is already listed in PICTLIST.TXT, make_sumfiles will not make NOMINALS or SUMFILES when you select option "0". (See below)'''''
Line 11: Line 22:
{{{ == Changes from the ECR for 3.0.1 ==
  * Put in COM offset for the spacecraft -- See 15 June 2017 document from Brishen Hawkins and Coralie Jackman -
  * Requirement SOR.5013 - account for the offset from the spacecraft center of mass of each camera
Line 13: Line 26:
~/bin/e.make_sumfiles   File "DATA/SCOBJ_SHIFT.TXT" maintains the current required shift between the center of mass of the OREx spacecraft and the camera focal plane. There is one line per camera consisting of camera number, delta X, delta Y, delta Z. Units are in meters. The coordinate frame is _________. If the file isn't present, then this processing step will just be skipped.
Line 15: Line 28:
}}}    {{{
   1 0 0 0
   2 0 0 0
   3 2000 3000 4000
   4 1 1 30000
   5 1 1 30000
   }}}
  
Line 19: Line 39:

=== Input Files ===
 * Spice kernel file (SPICE)
 * [[make_sumfiles.txt]] - list of SPICE kernels
 * [[make_sumfiles.in]] - list of files from [[process_fits]]

=== Output Files ===
 * [[IFRAME.TXT]] - picture properties
 * [[PICTLIST.TXT]] - list of pictures
 * [[NOMINALS]] - nominal navigation information and uncertainties
 * [[SUMFILES]] - camera properties and navigation information

----------
== Using make_sumfiles ==
The following sample shows the standard inputs and the list of options for '''make_sumfiles''':
Line 20: Line 56:
 ~/bin/e.make_sumfiles   ~/bin/e.make_sumfiles
Line 25: Line 61:
 2. Update old SUMFILES   2. Update old SUMFILES
Line 27: Line 63:
}}}
Usually, the B-Frame is not selected. The author has never selected it.
Line 28: Line 66:
Enter the appropriate option:

 * '''0 Create SUMFILES & NOMINALS and ..''' - Completes both operations and ends.
 * '''1 Update old NOMINALS and ..''' - Completes NOMINALS operation and ends.
 * '''2 Update old SUMFILES''' - Issues the following prompts:
 {{{
Update UTC? (y/n)
Update image thresholds? (y/n)
Update camera parameters? (y/n)
Reset geometry? (y/n)
Reset sigmas? (y/n)
Line 29: Line 78:

 * Update UTC - Updates time a picture was taken.
 * Update image thresholds - Changes image constraints.
 * Update camera parameters - Changes the camera focal length, K-matrix, etc.
 * Reset geometry - Resets position and pointing back to nominal.
 * Reset sigmas - Resets uncertainty back to nominal.
 (./) Do we need descriptions (default or suggested choices?) for each of these and what happens?

== Additional Reference ==
=== Alternative Description ===
Combines the converted image file with the image number, spacecraft state, spacecraft position & velocity and pointing information along with the associated calculated errors (Sigmas).

[from MAKE_SUMFILES.f]

{{{
Option 0 creates .SUM and .NOM files for any new images but leaves all others

C unchanged. Additionally, option 1 updates all .NOM files. Option 2 dies all of the
C above and makes changes in all .SUM files. The possible changes, specified in new
C entries in make_sumfiles.txt, are:
C
C Update UTC? (y/n)
C Update image thresholds? (y/n)
C Update camera parameters? (y/n)
C Reset geometry? (y/n)
C Reset sigmas? (y/n)
C
C The procedure first uses SPKEZ to calculate the spcaecraft - object vector SCOBJ and
C the unit vector to the Sun in inertial space at the ephemeris time ET of an image.
C It also determines the light time LT from the s/c to the target. It then determines
C the transformation matrix from the camera frame (INST) to inertial space (TTVI) at
C time ET using the SPICELIB routine PXFORM. Now all relevant quantities are available in
C inertial space. In SPC all these quantities are used in the body-fixed frame, so we again
C use PXFORM to translate from inertial to body-fixed (TIPM). We do this not at ET but at
C ET-LT, since this is when the light forming the image left the target body.
}}}
----------
''(Compiled by KD)''

[[make_sumfiles-3.0A2]]
----
CategoryThreeOhOne

make_sumfiles

Category B

Version 3.0.1

Description

In general, this program ingests images into SPC, building the sumfiles and nominals.

make_sumfiles takes in the name and some other data about the images from make_sumfiles.in, and position and pointing data from the kernels. The program then

User Warnings

  • /!\ All the vectors in the sumfiles and nominals are in a body fixed frame with the origin at the center of the target body. The origin might be off a little bit, which means you may have to use shift eventually. /!\ The ck and spk kernel names in make_sumfiles.txt must cover the time span of all the images being ingested. Otherwise, make_sumfiles will not work. /!\ This program is non-standard. It frequently requires different versions for different missions to get the data in a form usable by SPC. Although the goal is to make a single version that does it all, each mission has a different image format. /!\ If the image name is already listed in PICTLIST.TXT, make_sumfiles will not make NOMINALS or SUMFILES when you select option "0". (See below)

Changes from the ECR for 3.0.1

  • Put in COM offset for the spacecraft -- See 15 June 2017 document from Brishen Hawkins and Coralie Jackman -
  • Requirement SOR.5013 - account for the offset from the spacecraft center of mass of each camera

    File "DATA/SCOBJ_SHIFT.TXT" maintains the current required shift between the center of mass of the OREx spacecraft and the camera focal plane. There is one line per camera consisting of camera number, delta X, delta Y, delta Z. Units are in meters. The coordinate frame is _. If the file isn't present, then this processing step will just be skipped.

    •    1  0  0  0
         2  0  0  0
         3  2000  3000  4000
         4  1  1  30000
         5  1  1  30000

Input Files

Output Files


Using make_sumfiles

The following sample shows the standard inputs and the list of options for make_sumfiles:

 ~/bin/e.make_sumfiles
 Use B-Frame? (y/n)
n
 0.  Create SUMFILES & NOMINALS and ..
 1.  Update old NOMINALS and ..
 2.  Update old SUMFILES
0

Usually, the B-Frame is not selected. The author has never selected it.

Enter the appropriate option:

  • 0 Create SUMFILES & NOMINALS and .. - Completes both operations and ends.

  • 1 Update old NOMINALS and .. - Completes NOMINALS operation and ends.

  • 2 Update old SUMFILES - Issues the following prompts:

    Update UTC? (y/n)
    Update image thresholds? (y/n)
    Update camera parameters? (y/n)
    Reset geometry? (y/n)
    Reset sigmas? (y/n)
  • Update UTC - Updates time a picture was taken.
  • Update image thresholds - Changes image constraints.
  • Update camera parameters - Changes the camera focal length, K-matrix, etc.
  • Reset geometry - Resets position and pointing back to nominal.
  • Reset sigmas - Resets uncertainty back to nominal.

    (./) Do we need descriptions (default or suggested choices?) for each of these and what happens?

Additional Reference

Alternative Description

Combines the converted image file with the image number, spacecraft state, spacecraft position & velocity and pointing information along with the associated calculated errors (Sigmas).

[from MAKE_SUMFILES.f]

Option 0 creates .SUM and .NOM files for any new images but leaves all others

C     unchanged.  Additionally, option 1 updates all .NOM files.  Option 2 dies all of the
C     above and makes changes in all .SUM files.  The possible changes, specified in new
C     entries in make_sumfiles.txt, are:
C
C           Update UTC? (y/n)
C           Update image thresholds? (y/n)
C           Update camera parameters? (y/n)
C           Reset geometry? (y/n)
C           Reset sigmas? (y/n)
C
C     The procedure first uses SPKEZ to calculate the spcaecraft - object vector SCOBJ and
C     the unit vector to the Sun in inertial space at the ephemeris time ET of an image.
C     It also determines the light time LT from the s/c to the target.  It then determines
C     the transformation matrix from the camera frame (INST) to inertial space (TTVI) at
C     time ET using the SPICELIB routine PXFORM.  Now all relevant quantities are available in
C     inertial space.  In SPC all these quantities are used in the body-fixed frame, so we again
C     use PXFORM to translate from inertial to body-fixed (TIPM).  We do this not at ET but at
C     ET-LT, since this is when the light forming the image left the target body.


(Compiled by KD)

make_sumfiles-3.0A2


CategoryThreeOhOne

make_sumfiles (last edited 2018-05-05 19:07:31 by BMittan)