Skip to content

Commit

Permalink
Initial commit of Osiris-REx Tagcams ingestion program tagcams2isis a…
Browse files Browse the repository at this point in the history
…nd supporting files. Addresses DOI-USGS#5424.
  • Loading branch information
kledmundson committed Mar 10, 2024
1 parent 2626786 commit 5e7751c
Show file tree
Hide file tree
Showing 9 changed files with 1,069 additions and 145 deletions.
30 changes: 30 additions & 0 deletions isis/appdata/serialnumbers/OsirisRexTagCamsSerialNumber.trn
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# history 2019-01-19 Kris Becker - Original version added to UofA codebase.

Group = Keyword1
Auto
InputKey = SpacecraftName
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword1
OutputPosition = ("Group","SerialNumberKeywords")
Translation = ("OsirisRex", "OSIRIS-REx")
Translation = (*,*)
EndGroup
Group = Keyword2
Auto
InputKey = InstrumentId
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword2
OutputPosition = ("Group","SerialNumberKeywords")
Translation = (*,*)
EndGroup
Group = Keyword3
Auto
InputKey = SpacecraftClockStartCount
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword3
OutputPosition = ("Group","SerialNumberKeywords")
Translation = (*,*)
EndGroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#
# This translation file is used to produce the ISIS Archive label group
# for the Osiris-REx Tagcams cameras (NAVCam, StowCam, NFTCam).
#
# Translation = (left,right) convert the input "right" to "left"
#
# history 2019-01-10 Kris Becker - Original version added to UofA codebase.
#
Group = ProducerId
Auto
Optional
InputKey = ORIGIN
InputPosition = FITSLABELS
OutputName = ProducerId
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = CheckSumStatus
Auto
Optional
InputKey = CKPASS
InputPosition = FITSLABELS
OutputName = CheckSumStatus
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = MetaKernel
Auto
Optional
InputKey = META_KER
InputPosition = FITSLABELS
OutputName = MetaKernel
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = TAGCAMSCommandedSequenceId
Auto
Optional
InputKey = TCSEQID
InputPosition = FITSLABELS
OutputName = TagcamsCommandedSequenceId
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = TAGCAMSCommandedImageId
Auto
Optional
InputKey = TCIMGID
InputPosition = FITSLABELS
OutputName = TagcamsCommandedImageId
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = RawCameraHeadTemperature
Auto
Optional
InputKey = TCCHTEMP
InputPosition = FITSLABELS
InputDefault = 0
OutputName = RawCameraHeadTemperature
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = RAAtReferencePixel
Auto
Optional
InputKey = CRVAL1
InputPosition = FITSLABELS
InputDefault = 0
OutputName = RAAtReferencePixel
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = DecAtReferencePixel
Auto
Optional
InputKey = CRVAL2
InputPosition = FITSLABELS
InputDefault = 0
OutputName = DecAtReferencePixel
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

End
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#
# This translation file is used to produce the ISIS BandBin label group
# for the OSIRIS-REx Tagcams cameras (NAVCam, StowCam, NFTCam).
# Translation = (left,right) convert the input "right" to "left"
#
# history 2019-01-19 Kris Becker - Original version added to UofA codebase.

Group = FilterName
Auto
InputKey = FILTNAME
InputPosition = FITSLABELS
InputDefault = Monochrome
OutputName = FilterName
OutputPosition = (Object, IsisCube, Group, BandBin)
InputDefault = Unknown
Translation = (*, *)
End_Group

Group = Name
Auto
InputKey = INSTRUME
InputPosition = FITSLABELS
InputDefault = TagCams
OutputName = Name
OutputPosition = (Object, IsisCube, Group, BandBin)
InputDefault = Unknown
Translation = (NAVCam, NCM)
Translation = (NFTCam, NFT)
Translation = (StowCam, STO)
Translation = (TagCams, *)
End_Group

Group = FilterNumber
Auto
InputKey = FILTNUMB
InputPosition = FITSLABELS
InputDefault = 1
OutputName = Number
OutputPosition = (Object, IsisCube, Group, BandBin)
InputDefault = Unknown
Translation = (*, *)
End_Group

Group = FilterCenter
Auto
InputKey = INSTRUME
InputPosition = FITSLABELS
OutputName = Center
OutputPosition = (Object, IsisCube, Group, BandBin)
Translation = (550 <nm>, N/A)
Translation = (550 <nm>, NCM)
Translation = (550 <nm>, NFT)
Translation = (550 <nm>, STO)
Translation = (*, *)
End_Group

End
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
#
# This translation file is used to produce the ISIS Instrument label group
# for the OSIRIS-REx Tagcams cameras (NAVCam, StowCam and NFTCam).
#
# Translation = (left,right) convert the input "right" to "left"
#
# history 2019-01-10 Kris Becker - Original version added to UofA codebase.

Group = MissionName
Auto
InputKey = MISSION
InputPosition = FITSLABELS
OutputName = MissionName
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = SpacecraftName
Auto
InputKey = HOSTNAME
InputPosition = FITSLABELS
OutputName = SpacecraftName
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = ("OSIRIS-REX", "OSIRIS-REX")
Translation = ("OSIRIS-REX", "OREX")
End_Group

Group = InstrumentId
Auto
InputKey = INSTRUME
InputPosition = FITSLABELS
OutputName = InstrumentId
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (NAVCam, NCM)
Translation = (NFTCam, NFT)
Translation = (StowCam, STO)
End_Group

Group = InstrumentName
Auto
InputKey = INSTRUME
InputPosition = FITSLABELS
InputDefault = TAGCAMS
OutputName = InstrumentName
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (TAGCAMS, NCM)
Translation = (TAGCAMS, NFT)
Translation = (TAGCAMS, STO)
End_Group

Group = TargetName
Auto
InputKey = TARGET
InputPosition = FITSLABELS
InputDefault = Bennu
OutputName = TargetName
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (Bennu, BENNU)
Translation = (*, *)
End_Group

Group = StartTime
Auto
InputKey = DATE_OBS
InputPosition = FITSLABELS
OutputName = StartTime
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = MidObservationTime
Auto
InputKey = MIDOBS
InputPosition = FITSLABELS
OutputName = MidObservationTime
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = ExposureDuration
Auto
InputKey = EXPTIME
InputPosition = FITSLABELS
OutputName = ExposureDuration
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
Unit = seconds
End_Group

Group = SpacecraftClockStartCount
Auto
InputKey = SCLK_STR
InputPosition = FITSLABELS
InputDefault = UNKNOWN
OutputName = SpacecraftClockStartCount
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = EphemerisTime
Auto
Optional
InputKey = ET
InputPosition = FITSLABELS
OutputName = EphemerisTime
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = Binning
Auto
InputKey = TCSSMPL
InputPosition = FITSLABELS
InputDefault = 0
OutputName = Binning
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = Summing
Auto
InputKey = TCSUM
InputPosition = FITSLABELS
InputDefault = 1
OutputName = Summing
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = BScale
Auto
InputKey = BSCALE
InputPosition = FITSLABELS
InputDefault = 1
OutputName = BScale
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = DataCollectionMode
Auto
InputKey = TCMODE
InputPosition = FITSLABELS
InputDefault = 0
OutputName = DataCollectionMode
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = CompressionMode
Auto
InputKey = TCCOMP
InputPosition = FITSLABELS
InputDefault = 0
OutputName = CompressionMode
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = TCGain
Auto
Optional
InputKey = TCGAIN
InputPosition = FITSLABELS
OutputName = SensorAnalogGain
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = XReferenceCoordinate
Auto
InputKey = CRPIX1
InputPosition = FITSLABELS
InputDefault = 1044.5
OutputName = XReferenceCoordinate
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = YReferenceCoordinate
Auto
InputKey = CRPIX2
InputPosition = FITSLABELS
InputDefault = 1026.5
OutputName = YReferenceCoordinate
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = StartXFactor
Auto
InputKey = TCSX
InputPosition = FITSLABELS
InputDefault = 0
OutputName = StartXFactor
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = StartYFactor
Auto
InputKey = TCSY
InputPosition = FITSLABELS
InputDefault = 0
OutputName = StartYFactor
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

End
Loading

0 comments on commit 5e7751c

Please sign in to comment.