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

Appdata for viking 1 and 2 #3743

Merged
merged 17 commits into from
Mar 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
32 changes: 32 additions & 0 deletions isis/appdata/serialnumbers/Viking1CameraASerialNumber.trn
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Group = Keyword1
Auto
InputKey = SpacecraftName
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword1
OutputPosition = (Group, SerialNumberKeywords)
Translation = (Viking1, VIKING_ORBITER_1)
Translation = (*, *)
End_Group

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

Group = Keyword3
Auto
InputKey = SpacecraftClockCount
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword3
OutputPosition = (Group, SerialNumberKeywords)
Translation = (*, *)
End_Group
End
32 changes: 32 additions & 0 deletions isis/appdata/serialnumbers/Viking1CameraBSerialNumber.trn
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Group = Keyword1
Auto
InputKey = SpacecraftName
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword1
OutputPosition = (Group, SerialNumberKeywords)
Translation = (Viking1, VIKING_ORBITER_1)
Translation = (*, *)
End_Group

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

Group = Keyword3
Auto
InputKey = SpacecraftClockCount
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword3
OutputPosition = (Group, SerialNumberKeywords)
Translation = (*, *)
End_Group
End
32 changes: 32 additions & 0 deletions isis/appdata/serialnumbers/Viking2CameraASerialNumber.trn
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Group = Keyword1
Auto
InputKey = SpacecraftName
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword1
OutputPosition = (Group, SerialNumberKeywords)
Translation = (Viking2, VIKING_ORBITER_2)
Translation = (*, *)
End_Group

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

Group = Keyword3
Auto
InputKey = SpacecraftClockCount
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword3
OutputPosition = (Group, SerialNumberKeywords)
Translation = (*, *)
End_Group
End
32 changes: 32 additions & 0 deletions isis/appdata/serialnumbers/Viking2CameraBSerialNumber.trn
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Group = Keyword1
Auto
InputKey = SpacecraftName
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword1
OutputPosition = (Group, SerialNumberKeywords)
Translation = (Viking2, VIKING_ORBITER_2)
Translation = (*, *)
End_Group

Group = Keyword2
Auto
InputKey = InstrumentId
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword2
OutputPosition = (Group, SerialNumberKeywords)
Translation = (VISB, VISUAL_IMAGING_SUBSYSTEM_CAMERA_B)
Translation = (*, *)
scsides marked this conversation as resolved.
Show resolved Hide resolved
End_Group

Group = Keyword3
Auto
InputKey = SpacecraftClockCount
InputGroup = "IsisCube,Instrument"
InputPosition = (IsisCube, Instrument)
OutputName = Keyword3
OutputPosition = (Group, SerialNumberKeywords)
Translation = (*, *)
End_Group
End
5 changes: 2 additions & 3 deletions isis/appdata/translations/Instruments.trn
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,12 @@ Group = InstrumentName
Translation = (Tgo, CaSSIS)

# Viking
Translation = (Vik, VISUAL_IMAGING_SUBSYSTEM_CAMERA_A)
Translation = (Vik, VISUAL_IMAGING_SUBSYSTEM_CAMERA_B)
Translation = (CameraA, VISUAL_IMAGING_SUBSYSTEM_CAMERA_A)
Translation = (CameraB, VISUAL_IMAGING_SUBSYSTEM_CAMERA_B)

# Voyager
Translation = (Voyager, WIDE_ANGLE_CAMERA)
Translation = (Voyager, NARROW_ANGLE_CAMERA)

# Translation = (*,*)
End_Group
End
10 changes: 7 additions & 3 deletions isis/src/viking/apps/viknobutter/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ void IsisMain() {
pipeline.Application("mask").SetInputParameter("FROM", false);
pipeline.Application("mask").SetOutputParameter("TO", "step3");

QString maskParameter = "$ISIS3DATA/viking" + toString(spn) +
QString maskParameter = "$ISISDATA/viking" + toString(spn) +
"/calibration/vik" + toString(spn);
if(even) maskParameter += "evenMask.cub";
else maskParameter += "oddMask.cub";
if(even) {
maskParameter += "evenMask.cub";
}
else {
maskParameter += "oddMask.cub";
}
pipeline.Application("mask").AddConstParameter("mask", maskParameter);

// Run a low pass filter on the invalid data in the cube
Expand Down