Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved Juno data files into source code #3736

Merged
merged 8 commits into from
Mar 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions isis/appdata/serialnumbers/JunoJunoCamSerialNumber.trn
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
ObservationKeys = 4
Group = Keyword1
Auto
InputKey = SpacecraftName
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword1
OutputPosition = (Group, SerialNumberKeywords)
Translation = (*, *)
End_Group

Group = Keyword2
Auto
InputKey = InstrumentId
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword2
OutputPosition = (Group, SerialNumberKeywords)
Translation = (*, *)
End_Group

Group = Keyword3
Auto
InputKey = StartTime
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword3
OutputPosition = (Group, SerialNumberKeywords)
Translation = (*, *)
End_Group

Group = Keyword4
Auto
InputKey = FrameletNumber
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword4
OutputPosition = (Group, SerialNumberKeywords)
Translation = (*, *)
End_Group

Group = Keyword5
Auto
InputKey = FilterName
InputGroup = "IsisCube,BandBin"
InputPosition = (IsisCube, BandBin)
OutputName = Keyword5
OutputPosition = (Group, SerialNumberKeywords)
Translation = (*, *)
End_Group


End

55 changes: 55 additions & 0 deletions isis/src/juno/apps/junocam2isis/JunoJunoCamArchive.trn
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Group = MissionPhase
Auto
Optional
InputKey = MISSION_PHASE_NAME
InputGroup = ROOT
InputPosition = ROOT
OutputName = MissionPhase
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = OrbitNumber
Auto
Optional
InputKey = ORBIT_NUMBER
InputGroup = ROOT
InputPosition = ROOT
OutputName = OrbitNumber
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = FocalPlaneTemperature
Auto
Optional
InputKey = FOCAL_PLANE_TEMPERATURE
InputGroup = ROOT
InputPosition = ROOT
OutputName = FocalPlaneTemperature
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = TDICount
Auto
Optional
InputKey = JNO:TDI_STAGES_COUNT
InputGroup = ROOT
InputPosition = ROOT
OutputName = TDICount
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group

Group = CompressionType
Auto
Optional
InputKey = COMPRESSION_TYPE
InputGroup = ROOT
InputPosition = ROOT
OutputName = CompressionType
OutputPosition = (Object, IsisCube, Group, Archive)
Translation = (*, *)
End_Group
End
37 changes: 37 additions & 0 deletions isis/src/juno/apps/junocam2isis/JunoJunoCamBandBin.trn
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Group = FilterName
Auto
Optional
InputGroup = ROOT
InputPosition = ROOT
InputKey = FILTER_NAME
OutputName = FilterName
OutputPosition = (Object, IsisCube, Group, BandBin)
Translation = (*, *)
End_Group

Group = Center
Auto
Optional
InputGroup = ROOT
InputPosition = ROOT
InputKey = FILTER_NAME
OutputName = Center
OutputPosition = (Object, IsisCube, Group, BandBin)
Translation = (BLUE, 480.1)
Translation = (GREEN, 553.5)
Translation = (RED, 698.9)
End_Group

Group = Width
Auto
Optional
InputGroup = ROOT
InputPosition = ROOT
InputKey = FILTER_NAME
OutputName = Width
OutputPosition = (Object, IsisCube, Group, BandBin)
Translation = (BLUE, 45.5)
Translation = (GREEN, 79.3)
Translation = (RED, 175.4)
End_Group
End
116 changes: 116 additions & 0 deletions isis/src/juno/apps/junocam2isis/JunoJunoCamInstrument.trn
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
Group = SpacecraftName
Auto
Optional
InputKey = SPACECRAFT_NAME
InputGroup = ROOT
InputPosition = ROOT
OutputName = SpacecraftName
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = InstrumentHostId
Auto
InputKey = INSTRUMENT_HOST_ID
InputDefault = UNKNOWN
OutputName = InstrumentHostId
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = SpacecraftId
Auto
Optional
InputKey = INSTRUMENT_HOST_ID
InputGroup = ROOT
InputPosition = ROOT
OutputName = SpacecraftId
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = InstrumentName
Auto
Optional
InputKey = INSTRUMENT_NAME
InputGroup = ROOT
InputPosition = ROOT
OutputName = InstrumentName
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = InstrumentId
Auto
Optional
InputKey = INSTRUMENT_ID
InputGroup = ROOT
InputPosition = ROOT
OutputName = InstrumentId
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = TargetName
Auto
Optional
InputKey = TARGET_NAME
InputGroup = ROOT
InputPosition = ROOT
OutputName = TargetName
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

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

Group = SpacecraftClockStartCount
Auto
Optional
InputKey = SPACECRAFT_CLOCK_START_COUNT
InputGroup = ROOT
InputPosition = ROOT
OutputName = SpacecraftClockStartCount
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = ExposureDuration
Auto
Optional
InputKey = EXPOSURE_DURATION
InputGroup = ROOT
InputPosition = ROOT
OutputName = ExposureDuration
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = InterFrameDelay
Auto
Optional
InputKey = INTERFRAME_DELAY
InputGroup = ROOT
InputPosition = ROOT
OutputName = InterFrameDelay
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group

Group = SummingMode
Auto
Optional
InputKey = SAMPLING_FACTOR
InputGroup = ROOT
InputPosition = ROOT
OutputName = SummingMode
OutputPosition = (Object, IsisCube, Group, Instrument)
Translation = (*, *)
End_Group
End
9 changes: 4 additions & 5 deletions isis/src/juno/apps/junocam2isis/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,10 @@ void IsisMain() {
*/
void translateLabel(Pvl &inputLabel, Pvl &outputLabel) {
// Get the directory where the Juno translation tables are
PvlGroup &dataDir = Preference::Preferences().findGroup("DataDirectory");
QString missionDir = (QString) dataDir["Juno"];
QString transDir = "$ISISROOT/appdata/translations/";

// Translate the Instrument group
FileName instTransFile(missionDir + "/translations/junoJunoCamInstrument.trn");
FileName instTransFile(transDir + "JunoJunoCamInstrument.trn");
PvlToPvlTranslationManager instrumentXlater(inputLabel, instTransFile.expanded());
instrumentXlater.Auto(outputLabel);
PvlGroup &inst = outputLabel.findGroup("Instrument", PvlObject::Traverse);
Expand All @@ -317,7 +316,7 @@ void translateLabel(Pvl &inputLabel, Pvl &outputLabel) {
}

// Translate the BandBin group
FileName bandBinTransFile(missionDir + "/translations/junoJunoCamBandBin.trn");
FileName bandBinTransFile(transDir + "JunoJunoCamBandBin.trn");
PvlToPvlTranslationManager bandBinXlater(inputLabel, bandBinTransFile.expanded());
bandBinXlater.Auto(outputLabel);
PvlGroup &bandBin = outputLabel.findGroup("BandBin", PvlObject::Traverse);
Expand All @@ -341,7 +340,7 @@ void translateLabel(Pvl &inputLabel, Pvl &outputLabel) {
}

// Translate the Archive group
FileName archiveTransFile(missionDir + "/translations/junoJunoCamArchive.trn");
FileName archiveTransFile(transDir + "JunoJunoCamArchive.trn");
PvlToPvlTranslationManager archiveXlater(inputLabel, archiveTransFile.expanded());
archiveXlater.Auto(outputLabel);
PvlGroup &archive = outputLabel.findGroup("Archive", PvlObject::Traverse);
Expand Down