diff --git a/isis/src/kaguya/apps/kaguyami2isis/KaguyMiBandBin.trn b/isis/src/kaguya/apps/kaguyami2isis/KaguyMiBandBin.trn new file mode 100644 index 0000000000..53b8659ea2 --- /dev/null +++ b/isis/src/kaguya/apps/kaguyami2isis/KaguyMiBandBin.trn @@ -0,0 +1,63 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +Group = FilterName + Auto + InputKey = FILTER_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = FilterName + OutputPosition = (Object, IsisCube, Group, BandBin) + Translation = (*, *) +End_Group + +Group = Center + Auto + InputKey = CENTER_FILTER_WAVELENGTH + InputGroup = ROOT + InputPosition = ROOT + OutputName = Center + OutputPosition = (Object, IsisCube, Group, BandBin) + Translation = (*, *) +End_Group + +Group = Width + Auto + InputKey = BANDWIDTH + InputGroup = ROOT + InputPosition = ROOT + OutputName = Width + OutputPosition = (Object, IsisCube, Group, BandBin) + Translation = (*, *) +End_Group + +Group = BaseBand + Auto + InputKey = BASE_BAND + InputGroup = ROOT + InputPosition = ROOT + OutputName = BaseBand + OutputPosition = (Object, IsisCube, Group, BandBin) + Translation = (*, *) +End_Group + +End diff --git a/isis/src/kaguya/apps/kaguyami2isis/KaguyaMiArchive.trn b/isis/src/kaguya/apps/kaguyami2isis/KaguyaMiArchive.trn new file mode 100644 index 0000000000..166f862b23 --- /dev/null +++ b/isis/src/kaguya/apps/kaguyami2isis/KaguyaMiArchive.trn @@ -0,0 +1,163 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +Group = ProductId + Auto + InputKey = PRODUCT_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductId + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = FileName + Auto + InputKey = FILE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = FileName + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = SoftwareName + Auto + InputKey = SOFTWARE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SoftwareName + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = SoftwareVersion + Auto + InputKey = SOFTWARE_VERSION + InputGroup = ROOT + InputPosition = ROOT + OutputName = SoftwareVersion + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = ProcessVersionId + Auto + InputKey = PROCESS_VERSION_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProcessVersionId + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductCreationTime + Auto + InputKey = PRODUCT_CREATION_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductCreationTime + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = ProgramStartTime + Auto + InputKey = PROGRAM_START_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProgramStartTime + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = ProducerId + Auto + InputKey = PRODUCER_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProducerId + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductSetId + Auto + InputKey = PRODUCT_SET_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductSetId + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductVersionId + Auto + InputKey = PRODUCT_VERSION_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductVersionId + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = RegisteredProduct + Auto + InputKey = REGISTERED_PRODUCT + InputGroup = ROOT + InputPosition = ROOT + OutputName = RegisteredProduct + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = Level2AFileName + Auto + InputKey = LEVEL2A_FILE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = Level2AFileName + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = SpiceMetakernelFileName + Auto + InputKey = SPICE_METAKERNEL_FILE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpiceMetakernelFileName + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +Group = DataSetId + Auto + InputKey = DATA_SET_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = DataSetId + OutputPosition = (Object, IsisCube, Group, Archive) + Translation = (*, *) +End_Group + +End diff --git a/isis/src/kaguya/apps/kaguyami2isis/KaguyaMiInstrument.trn b/isis/src/kaguya/apps/kaguyami2isis/KaguyaMiInstrument.trn new file mode 100644 index 0000000000..718906c3be --- /dev/null +++ b/isis/src/kaguya/apps/kaguyami2isis/KaguyaMiInstrument.trn @@ -0,0 +1,583 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +Group = MissionName + Auto + InputKey = MISSION_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = MissionName + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SpacecraftName + Auto + InputKey = SPACECRAFT_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpacecraftName + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (KAGUYA, SELENE-M) +End_Group + +Group = InstrumentName + Auto + InputKey = INSTRUMENT_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = InstrumentName + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = InstrumentId + Auto + InputKey = INSTRUMENT_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = InstrumentId + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = TargetName + Auto + InputKey = TARGET_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = TargetName + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = ObservationModeId + Auto + InputKey = OBSERVATION_MODE_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ObservationModeId + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SensorDescription + Auto + InputKey = SENSOR_DESCRIPTION + InputGroup = ROOT + InputPosition = ROOT + OutputName = SensorDescription + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SensorDescription2 + Auto + InputKey = SENSOR_DESCRIPTION2 + InputGroup = ROOT + InputPosition = ROOT + OutputName = SensorDescription2 + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = MissionPhaseName + Auto + InputKey = MISSION_PHASE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = MissionPhaseName + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = RevolutionNumber + Auto + InputKey = REVOLUTION_NUMBER + InputGroup = ROOT + InputPosition = ROOT + OutputName = RevolutionNumber + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = StripSequenceNumber + Auto + InputKey = STRIP_SEQUENCE_NUMBER + InputGroup = ROOT + InputPosition = ROOT + OutputName = StripSequenceNumber + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SceneSequenceNumber + Auto + InputKey = SCENE_SEQUENCE_NUMBER + InputGroup = ROOT + InputPosition = ROOT + OutputName = SceneSequenceNumber + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = UpperLeftDaytimeFlag + Auto + InputKey = UPPER_LEFT_DAYTIME_FLAG + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperLeftDaytimeFlag + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = UpperRightDaytimeFlag + Auto + InputKey = UPPER_RIGHT_DAYTIME_FLAG + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperRightDaytimeFlag + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = LowerLeftDaytimeFlag + Auto + InputKey = LOWER_LEFT_DAYTIME_FLAG + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerLeftDaytimeFlag + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = LowerRightDaytimeFlag + Auto + InputKey = LOWER_RIGHT_DAYTIME_FLAG + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerRightDaytimeFlag + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = DetectorStatus + Auto + InputKey = DETECTOR_STATUS + InputGroup = ROOT + InputPosition = ROOT + OutputName = DetectorStatus + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = ExposureModeId + Auto + InputKey = EXPOSURE_MODE_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ExposureModeId + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = LineExposureDuration + Auto + InputKey = LINE_EXPOSURE_DURATION + InputGroup = ROOT + InputPosition = ROOT + OutputName = LineExposureDuration + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SpacecraftClockStartCount + Auto + InputKey = SPACECRAFT_CLOCK_START_COUNT + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpacecraftClockStartCount + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SpacecraftClockStopCount + Auto + InputKey = SPACECRAFT_CLOCK_STOP_COUNT + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpacecraftClockStopCount + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = CorrectedScClockStartCount + Auto + InputKey = CORRECTED_SC_CLOCK_START_COUNT + InputGroup = ROOT + InputPosition = ROOT + OutputName = CorrectedScClockStartCount + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = CorrectedScClockStopCount + Auto + InputKey = CORRECTED_SC_CLOCK_STOP_COUNT + InputGroup = ROOT + InputPosition = ROOT + OutputName = CorrectedScClockStopCount + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = StartTime + Auto + InputKey = START_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = StartTimeRaw + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = StopTime + Auto + InputKey = STOP_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = StopTimeRaw + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = CorrectedStartTime + Auto + InputKey = CORRECTED_START_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = StartTime + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = CorrectedStopTime + Auto + InputKey = CORRECTED_STOP_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = StopTime + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = LineSamplingInterval + Auto + InputKey = LINE_SAMPLING_INTERVAL + InputGroup = ROOT + InputPosition = ROOT + OutputName = LineSamplingInterval + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = CorrectedSamplingInterval + Auto + InputKey = CORRECTED_SAMPLING_INTERVAL + InputGroup = ROOT + InputPosition = ROOT + OutputName = CorrectedSamplingInterval + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = UpperLeftLatitude + Auto + InputKey = UPPER_LEFT_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperLeftLatitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = UpperLeftLongitude + Auto + InputKey = UPPER_LEFT_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperLeftLongitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = UpperRightLatitude + Auto + InputKey = UPPER_RIGHT_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperRightLatitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = UpperRightLongitude + Auto + InputKey = UPPER_RIGHT_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperRightLongitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = LowerLeftLatitude + Auto + InputKey = LOWER_LEFT_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerLeftLatitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = LowerLeftLongitude + Auto + InputKey = LOWER_LEFT_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerLeftLongitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = LowerRightLatitude + Auto + InputKey = LOWER_RIGHT_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerRightLatitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = LowerRightLongitude + Auto + InputKey = LOWER_RIGHT_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerRightLongitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = LocationFlag + Auto + InputKey = LOCATION_FLAG + InputGroup = ROOT + InputPosition = ROOT + OutputName = LocationFlag + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = RollCant + Auto + InputKey = ROLL_CANT + InputGroup = ROOT + InputPosition = ROOT + OutputName = RollCant + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SceneCenterLatitude + Auto + InputKey = SCENE_CENTER_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = SceneCenterLatitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SceneCenterLongitude + Auto + InputKey = SCENE_CENTER_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = SceneCenterLongitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = IncidenceAngle + Auto + InputKey = INCIDENCE_ANGLE + InputGroup = ROOT + InputPosition = ROOT + OutputName = IncidenceAngle + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = EmissionAngle + Auto + InputKey = EMISSION_ANGLE + InputGroup = ROOT + InputPosition = ROOT + OutputName = EmissionAngle + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = PhaseAngle + Auto + InputKey = PHASE_ANGLE + InputGroup = ROOT + InputPosition = ROOT + OutputName = PhaseAngle + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SolarAzimuthAngle + Auto + InputKey = SOLAR_AZIMUTH_ANGLE + InputGroup = ROOT + InputPosition = ROOT + OutputName = SolarAzimuthAngle + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = FocalPlaneTemperature + Auto + InputKey = FOCAL_PLANE_TEMPERATURE + InputGroup = ROOT + InputPosition = ROOT + OutputName = FocalPlaneTemperature + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = TelescopeTemperature + Auto + InputKey = TELESCOPE_TEMPERATURE + InputGroup = ROOT + InputPosition = ROOT + OutputName = TelescopeTemperature + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SatelliteMovingDirection + Auto + InputKey = SATELLITE_MOVING_DIRECTION + InputGroup = ROOT + InputPosition = ROOT + OutputName = SatelliteMovingDirection + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = FirstSampledLinePosition + Auto + InputKey = FIRST_SAMPLED_LINE_POSITION + InputGroup = ROOT + InputPosition = ROOT + OutputName = FirstSampledLinePosition + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = FirstDetectorElementPosition + Auto + InputKey = FIRST_DETECTOR_ELEMENT_POSITION + InputGroup = ROOT + InputPosition = ROOT + OutputName = FirstDetectorElementPosition + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = AAxisRadius + Auto + InputKey = A_AXIS_RADIUS + InputGroup = ROOT + InputPosition = ROOT + OutputName = AAxisRadius + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = BAxisRadius + Auto + InputKey = B_AXIS_RADIUS + InputGroup = ROOT + InputPosition = ROOT + OutputName = BAxisRadius + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = CAxisRadius + Auto + InputKey = C_AXIS_RADIUS + InputGroup = ROOT + InputPosition = ROOT + OutputName = CAxisRadius + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = DefectPixelPosition + Auto + InputKey = DEFECT_PIXEL_POSITION + InputGroup = ROOT + InputPosition = ROOT + OutputName = DefectPixelPosition + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SpacecraftAltitude + Auto + InputKey = SPACECRAFT_ALTITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpacecraftAltitude + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +Group = SpacecraftGroundSpeed + Auto + InputKey = SPACECRAFT_GROUND_SPEED + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpacecraftGroundSpeed + OutputPosition = (Object, IsisCube, Group, Instrument) + Translation = (*, *) +End_Group + +End diff --git a/isis/src/kaguya/apps/kaguyami2isis/main.cpp b/isis/src/kaguya/apps/kaguyami2isis/main.cpp index 54a0150e81..0f4e716d48 100644 --- a/isis/src/kaguya/apps/kaguyami2isis/main.cpp +++ b/isis/src/kaguya/apps/kaguyami2isis/main.cpp @@ -67,18 +67,18 @@ void IsisMain() { // Get the directory where the Kaguya MI translation tables are. PvlGroup dataDir(Preference::Preferences().findGroup("DataDirectory")); - QString transDir = (QString) dataDir["Kaguya"] + "/translations/"; + QString transDir = "$ISISROOT/appdata/translations/"; Pvl inputLabel(inFile.expanded()); Pvl *outputLabel = outcube->label(); FileName transFile; // Translate the Archive group - transFile = transDir + "kaguyamiArchive.trn"; + transFile = transDir + "KaguyaMiArchive.trn"; PvlToPvlTranslationManager archiveXlater(inputLabel, transFile.expanded()); archiveXlater.Auto(*(outputLabel)); // Translate the Instrument group - transFile = transDir + "kaguyamiInstrument.trn"; + transFile = transDir + "KaguyaMiInstrument.trn"; PvlToPvlTranslationManager instrumentXlater(inputLabel, transFile.expanded()); instrumentXlater.Auto(*(outputLabel)); //trim trailing z's from the time strings @@ -103,7 +103,7 @@ void IsisMain() { // Translate the BandBin group - transFile = transDir + "kaguyamiBandBin.trn"; + transFile = transDir + "KaguyaMiBandBin.trn"; PvlToPvlTranslationManager bandBinXlater(inputLabel, transFile.expanded()); bandBinXlater.Auto(*(outputLabel)); diff --git a/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcArchive.trn b/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcArchive.trn new file mode 100644 index 0000000000..8ee8cc8284 --- /dev/null +++ b/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcArchive.trn @@ -0,0 +1,923 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +# history 2018-10-02 Jeannie Backer - Original version. Copied +# from tcmapArchive.trn and generalized +# for all supported TC images. Set +# StretchedFlag to Optional. +# history 2020-02-24 Austin Sanders - Moved geometry keywords +# from instrument translation file to +# archive translation file. +Group = ProductId + Auto + InputKey = PRODUCT_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SoftwareName + Auto + InputKey = SOFTWARE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SoftwareName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SoftwareVersion + Auto + InputKey = SOFTWARE_VERSION + InputGroup = ROOT + InputPosition = ROOT + OutputName = SoftwareVersion + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProcessVersionId + Auto + InputKey = PROCESS_VERSION_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProcessVersionId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductCreationTime + Auto + InputKey = PRODUCT_CREATION_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductCreationTime + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProgramStartTime + Optional + Auto + InputKey = PROGRAM_START_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProgramStartTime + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProducerId + Auto + InputKey = PRODUCER_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProducerId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductSetId + Auto + InputKey = PRODUCT_SET_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductSetId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductVersionId + Auto + InputKey = PRODUCT_VERSION_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductVersionId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RegisteredProduct + Optional + Auto + InputKey = REGISTERED_PRODUCT + InputGroup = ROOT + InputPosition = ROOT + OutputName = RegisteredProduct + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = Level2AFileName + Optional + Auto + InputKey = LEVEL2A_FILE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = Level2AFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SpiceMetakernelFileName + Optional + Auto + InputKey = SPICE_METAKERNEL_FILE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpiceMetakernelFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DataSetId + Auto + InputKey = DATA_SET_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = DataSetId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ImageValueType + Auto + InputKey = IMAGE_VALUE_TYPE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ImageValueType + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ImageUnit + Optional + Auto + InputKey = UNIT + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ImageUnit + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = MinForStatisticalEvaluation + Optional + Auto + InputKey = MIN_FOR_STATISTICAL_EVALUATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = MinForStatisticalEvaluation + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = MaxForStatisticalEvaluation + Optional + Auto + InputKey = MAX_FOR_STATISTICAL_EVALUATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = MaxForStatisticalEvaluation + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneMaximumDn + Optional + Auto + InputKey = SCENE_MAXIMUM_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneMaximumDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneMinimumDn + Optional + Auto + InputKey = SCENE_MINIMUM_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneMinimumDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneAverageDn + Optional + Auto + InputKey = SCENE_AVERAGE_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneAverageDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneStdevDn + Optional + Auto + InputKey = SCENE_STDEV_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneStdevDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneModeDn + Optional + Auto + InputKey = SCENE_MODE_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneModeDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ShadowedAreaMinimum + Optional + Auto + InputKey = SHADOWED_AREA_MINIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ShadowedAreaMinimum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ShadowedAreaMaximum + Optional + Auto + InputKey = SHADOWED_AREA_MAXIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ShadowedAreaMaximum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ShadowedAreaPercentage + Optional + Auto + InputKey = SHADOWED_AREA_PERCENTAGE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ShadowedAreaPercentage + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = InvalidType + Optional + Auto + InputKey = INVALID_TYPE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = InvalidType + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = InvalidValue + Optional + Auto + InputKey = INVALID_VALUE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = InvalidValue + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = InvalidPixels + Optional + Auto + InputKey = INVALID_PIXELS + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = InvalidPixels + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = OutOfImageBoundsValue + Optional + Auto + InputKey = OUT_OF_IMAGE_BOUNDS_VALUE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = OutOfImageBoundsValue + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = OutOfImageBoundsPixel + Optional + Auto + InputKey = OUT_OF_IMAGE_BOUNDS_PIXELS + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = OutOfImageBoundsPixel + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = StretchedFlag + Optional + Auto + InputKey = STRETCHED_FLAG + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = StretchedFlag + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DarkFileName + Optional + Auto + InputKey = DARK_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = DarkFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = FtFileName + Optional + Auto + InputKey = FT_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = FtFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = FlatFileName + Optional + Auto + InputKey = FLAT_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = FlatFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = EfficFileName + Optional + Auto + InputKey = EFFIC_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = EfficFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = NonlinFileName + Optional + Auto + InputKey = NONLIN_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = NonlinFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RadCnvCoef + Optional + Auto + InputKey = RAD_CNV_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RadCnvCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RefCnvCoef + Optional + Auto + InputKey = REF_CNV_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RefCnvCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = StandardGeometry + Optional + Auto + InputKey = STANDARD_GEOMETRY + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = StandardGeometry + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = PhotoCorrId + Optional + Auto + InputKey = PHOTO_CORR_ID + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = PhotoCorrId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = PhotoCorrCoef + Optional + Auto + InputKey = PHOTO_CORR_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = PhotoCorrCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ResamplingMethod + Optional + Auto + InputKey = RESAMPLING_METHOD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = ResamplingMethod + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = TcoMosaicFileName + Optional + Auto + InputKey = TCO_MOSAIC_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = TcoMosaicFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DtmMosaicFileName + Optional + Auto + InputKey = DTM_MOSAIC_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = DtmMosaicFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = OverlapSelectionId + Optional + Auto + InputKey = OVERLAP_SELECTION_ID + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = OverlapSelectionId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = MatchingMosaic + Optional + Auto + InputKey = MATCHING_MOSAIC + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = MatchingMosaic + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = L2aDeadPixelThreshold + Optional + Auto + InputKey = L2A_DEAD_PIXEL_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = L2aDeadPixelThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = L2aSaturationThreshold + Optional + Auto + InputKey = L2A_SATURATION_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = L2aSaturationThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DarkValidMinimum + Optional + Auto + InputKey = DARK_VALID_MINIMUM + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = DarkValidMinimum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = FtValidMinimum + Optional + Auto + InputKey = FT_VALID_MINIMUM + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = FtValidMinimum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RadianceSaturationThreshold + Optional + Auto + InputKey = RADIANCE_SATURATION_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RadianceSaturationThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RefSaturationThreshold + Optional + Auto + InputKey = REF_SATURATION_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RefSaturationThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ParameterSetName + Optional + Auto + InputKey = PARAMETER_SET_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = ParameterSetName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RefCnvSw + Optional + Auto + InputKey = REF_CNV_SW + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RefCnvSw + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RefCnvCoef + Optional + Auto + InputKey = REF_CNV_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RefCnvCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = StandardGeometry + Optional + Auto + InputKey = STANDARD_GEOMETRY + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = StandardGeometry + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = PhotoCorrId + Optional + Auto + InputKey = PHOTO_CORR_ID + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = PhotoCorrId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = PhotoCorrCoef + Optional + Auto + InputKey = PHOTO_CORR_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = PhotoCorrCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = HorizontalTransformMethod + Optional + Auto + InputKey = HORIZONTAL_TRANSFORM_METHOD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = HorizontalTransformMethod + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = VerticalTransformMethod + Optional + Auto + InputKey = VERTICAL_TRANSFORM_METHOD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = VerticalTransformMethod + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = MosaicPriority + Optional + Auto + InputKey = MOSAIC_PRIORITY + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = MosaicPriority + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SmoothingWidth + Optional + Auto + InputKey = SMOOTHING_WIDTH + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = SmoothingWidth + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ValidMinimum + Optional + Auto + InputKey = VALID_MINIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ValidMinimum + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = ValidMaximum + Optional + Auto + InputKey = VALID_MAXIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ValidMaximum + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = Dummy + Optional + Auto + InputKey = DUMMY + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = Dummy + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = LowReprSaturation + Optional + Auto + InputKey = LOW_REPR_SATURATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = LowReprSaturation + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = LowInstrSaturation + Optional + Auto + InputKey = LOW_INSTR_SATURATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = LowInstrSaturation + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = HighReprSaturation + Optional + Auto + InputKey = HIGH_REPR_SATURATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = HighReprSaturation + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = HighInstrSaturation + Optional + Auto + InputKey = HIGH_INSTR_SATURATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = HighInstrSaturation + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = Minimum + Optional + Auto + InputKey = MINIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = Minimum + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = Maximum + Optional + Auto + InputKey = MAXIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = Maximum + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = Average + Optional + Auto + InputKey = AVERAGE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = Average + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = Stdev + Optional + Auto + InputKey = STDEV + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = Stdev + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = ModePixel + Optional + Auto + InputKey = MODE_PIXEL + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ModePixel + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = UpperLeftLatitude + Optional + Auto + InputKey = UPPER_LEFT_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperLeftLatitude + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = UpperLeftLongitude + Optional + Auto + InputKey = UPPER_LEFT_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperLeftLongitude + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = UpperRightLatitude + Optional + Auto + InputKey = UPPER_RIGHT_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperRightLatitude + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = UpperRightLongitude + Optional + Auto + InputKey = UPPER_RIGHT_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = UpperRightLongitude + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = LowerLeftLatitude + Optional + Auto + InputKey = LOWER_LEFT_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerLeftLatitude + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = LowerLeftLongitude + Optional + Auto + InputKey = LOWER_LEFT_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerLeftLongitude + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = LowerRightLatitude + Optional + Auto + InputKey = LOWER_RIGHT_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerRightLatitude + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = LowerRightLongitude + Optional + Auto + InputKey = LOWER_RIGHT_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = LowerRightLongitude + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + + +End diff --git a/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcBandBin.trn b/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcBandBin.trn new file mode 100644 index 0000000000..92d02b2038 --- /dev/null +++ b/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcBandBin.trn @@ -0,0 +1,70 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +# history 2018-10-02 Jeannie Backer - Original version. Copied +# from tcmapArchive.trn to generalize +# for all supported TC images. +Group = FilterName + Optional + Auto + InputKey = FILTER_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = FilterName + OutputPosition = (Group, BandBin) + Translation = (*, *) +End_Group + +Group = Center + Optional + Auto + InputKey = CENTER_FILTER_WAVELENGTH + InputGroup = ROOT + InputPosition = ROOT + OutputName = Center + OutputPosition = (Group, BandBin) + Translation = (*, *) +End_Group + +Group = Width + Optional + Auto + InputKey = BANDWIDTH + InputGroup = ROOT + InputPosition = ROOT + OutputName = Width + OutputPosition = (Group, BandBin) + Translation = (*, *) +End_Group + +Group = BaseBand + Optional + Auto + InputKey = BASE_BAND + InputGroup = ROOT + InputPosition = ROOT + OutputName = BaseBand + OutputPosition = (Group, BandBin) + Translation = (*, *) +End_Group + +End diff --git a/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcInstrument.trn b/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcInstrument.trn new file mode 100644 index 0000000000..a24e5909f1 --- /dev/null +++ b/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcInstrument.trn @@ -0,0 +1,307 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +# history 2018-10-02 Jeannie Backer - Original version. Copied +# from tcmapArchive.trn to generalize +# for all supported TC images. +# history 2018-10-04 Jeannie Backer - Added more keywords needed +# for Kaguya TC camera model. +# history 2020-02-24 Austin Sanders - Added IlluminationCondition. +# history 2020-02-24 Austin Sanders - Moved geometry keywords +# from instrument translation file to +# archive translation file. +# history 2020-02-26 Austin Sanders - Added default value to +# SpacecraftName in order to support +# products from JAXA online archive +Group = MissionName + Auto + InputKey = MISSION_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = MissionName + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = SpacecraftName + Auto + InputKey = SPACECRAFT_NAME + InputGroup = ROOT + InputPosition = ROOT + InputDefault = SELENE-M + OutputName = SpacecraftName + OutputPosition = (Group, Instrument) + Translation = (KAGUYA, SELENE-M) +End_Group + +Group = InstrumentName + Auto + InputKey = INSTRUMENT_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = InstrumentName + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = InstrumentId + Auto + InputKey = INSTRUMENT_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = InstrumentId + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = TargetName + Optional + Auto + InputKey = TARGET_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = TargetName + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = ObservationModeId + Optional + Auto + InputKey = OBSERVATION_MODE_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ObservationModeId + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = SensorDescription + Optional + Auto + InputKey = SENSOR_DESCRIPTION + InputGroup = ROOT + InputPosition = ROOT + OutputName = SensorDescription + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = SensorDescription2 + Optional + Auto + InputKey = SENSOR_DESCRIPTION2 + InputGroup = ROOT + InputPosition = ROOT + OutputName = SensorDescription2 + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = ImageCenterLatitude + Optional + Auto + InputKey = IMAGE_CENTER_LATITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = ImageCenterLatitude + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = ImageCenterLongitude + Optional + Auto + InputKey = IMAGE_CENTER_LONGITUDE + InputGroup = ROOT + InputPosition = ROOT + OutputName = ImageCenterLongitude + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = StartTime + Optional + Auto + InputKey = CORRECTED_START_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = StartTime + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = StopTime + Optional + Auto + InputKey = CORRECTED_STOP_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = StopTime + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = OriginalStartTime + Optional + Auto + InputKey = START_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = OriginalStartTime + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = OriginalStopTime + Optional + Auto + InputKey = STOP_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = OriginalStopTime + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = ExposureModeId + Optional + Auto + InputKey = EXPOSURE_MODE_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ExposureModeId + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = ExposureDuration + Optional + Auto + InputKey = LINE_EXPOSURE_DURATION + InputGroup = ROOT + InputPosition = ROOT + OutputName = ExposureDuration + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = OriginalSpacecraftClockStartCount + Optional + Auto + InputKey = SPACECRAFT_CLOCK_START_COUNT + InputGroup = ROOT + InputPosition = ROOT + OutputName = OriginalSpacecraftClockStartCount + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = OriginalSpacecraftClockStopCount + Optional + Auto + InputKey = SPACECRAFT_CLOCK_STOP_COUNT + InputGroup = ROOT + InputPosition = ROOT + OutputName = OriginalSpacecraftClockStopCount + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = SpacecraftClockStartCount + Optional + Auto + InputKey = CORRECTED_SC_CLOCK_START_COUNT + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpacecraftClockStartCount + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = SpacecraftClockStopCount + Optional + Auto + InputKey = CORRECTED_SC_CLOCK_STOP_COUNT + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpacecraftClockStopCount + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = OriginalLineSamplingInterval + Optional + Auto + InputKey = LINE_SAMPLING_INTERVAL + InputGroup = ROOT + InputPosition = ROOT + OutputName = OriginalLineSamplingInterval + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = LineSamplingInterval + Optional + Auto + InputKey = CORRECTED_SAMPLING_INTERVAL + InputGroup = ROOT + InputPosition = ROOT + OutputName = LineSamplingInterval + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = EncodingType + Optional + Auto + InputKey = ENCODING_TYPE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = EncodingType + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = SwathModeId + Optional + Auto + InputKey = SWATH_MODE_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = SwathModeId + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = IlluminationCondition + Optional + Auto + InputKey = ILLUMINATION_CONDITION + InputGroup = ROOT + InputPosition = ROOT + OutputName = IlluminationCondition + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +End diff --git a/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcKernels.trn b/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcKernels.trn new file mode 100644 index 0000000000..d569e993a8 --- /dev/null +++ b/isis/src/kaguya/apps/kaguyatc2isis/KaguyaTcKernels.trn @@ -0,0 +1,28 @@ +# This translation file is used to produce the ISIS 3 Kernels label group +# for the Kaguya Terrain camera. +# Translation = (left,right) convert the input "right" to "left" +# +# history 2018-10-04 Jeannie Backer - Original version. +Group = NaifCkCode + Auto + Optional + InputKey = INSTRUMENT_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = NaifCkCode + OutputPosition = (Group, Kernels) + Translation = (-131350, TC1) + Translation = (-131370, TC2) +End_Group +Group = NaifFrameCode + Auto + Optional + InputKey = INSTRUMENT_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = NaifFrameCode + OutputPosition = (Group, Kernels) + Translation = (-131351, TC1) + Translation = (-131371, TC2) +End_Group +End diff --git a/isis/src/kaguya/apps/kaguyatc2isis/kaguyatc2isis.cpp b/isis/src/kaguya/apps/kaguyatc2isis/kaguyatc2isis.cpp index f80d772d56..f5d4cb87a9 100644 --- a/isis/src/kaguya/apps/kaguyatc2isis/kaguyatc2isis.cpp +++ b/isis/src/kaguya/apps/kaguyatc2isis/kaguyatc2isis.cpp @@ -86,21 +86,21 @@ namespace Isis { // Translate the remaining MI MAP labels PvlGroup dataDir(Preference::Preferences().findGroup("DataDirectory")); - QString transDir = (QString) dataDir["Kaguya"] + "/translations/"; + QString transDir = "$ISISROOT/appdata/translations/"; - FileName transFile(transDir + "kaguyaTcBandBin.trn"); + FileName transFile(transDir + "KaguyaTcBandBin.trn"); PvlToPvlTranslationManager bandBinXlater(label, transFile.expanded()); bandBinXlater.Auto(otherLabels); - transFile = transDir + "kaguyaTcInstrument.trn"; + transFile = transDir + "KaguyaTcInstrument.trn"; PvlToPvlTranslationManager instXlater(label, transFile.expanded()); instXlater.Auto(otherLabels); - transFile = transDir + "kaguyaTcArchive.trn"; + transFile = transDir + "KaguyaTcArchive.trn"; PvlToPvlTranslationManager archiveXlater(label, transFile.expanded()); archiveXlater.Auto(otherLabels); - transFile = transDir + "kaguyaTcKernels.trn"; + transFile = transDir + "KaguyaTcKernels.trn"; PvlToPvlTranslationManager kernelsXlater(label, transFile.expanded()); kernelsXlater.Auto(otherLabels); diff --git a/isis/src/kaguya/apps/mimap2isis/KaguyaMiMapArchive.trn b/isis/src/kaguya/apps/mimap2isis/KaguyaMiMapArchive.trn new file mode 100644 index 0000000000..29d5ba1864 --- /dev/null +++ b/isis/src/kaguya/apps/mimap2isis/KaguyaMiMapArchive.trn @@ -0,0 +1,533 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +Group = SoftwareName + Auto + InputKey = SOFTWARE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SoftwareName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SoftwareVersion + Auto + InputKey = SOFTWARE_VERSION + InputGroup = ROOT + InputPosition = ROOT + OutputName = SoftwareVersion + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProcessVersionId + Auto + InputKey = PROCESS_VERSION_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProcessVersionId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductCreationTime + Auto + InputKey = PRODUCT_CREATION_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductCreationTime + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProgramStartTime + Auto + InputKey = PROGRAM_START_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProgramStartTime + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProducerId + Auto + InputKey = PRODUCER_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProducerId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductSetId + Auto + InputKey = PRODUCT_SET_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductSetId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductVersionId + Auto + InputKey = PRODUCT_VERSION_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductVersionId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RegisteredProduct + Auto + InputKey = REGISTERED_PRODUCT + InputGroup = ROOT + InputPosition = ROOT + OutputName = RegisteredProduct + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = Level2AFileName + Auto + InputKey = LEVEL2A_FILE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = Level2AFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SpiceMetakernelFileName + Auto + InputKey = SPICE_METAKERNEL_FILE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpiceMetakernelFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DataSetId + Auto + InputKey = DATA_SET_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = DataSetId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ImageValueType + Auto + InputKey = IMAGE_VALUE_TYPE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ImageValueType + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ImageUnit + Auto + InputKey = UNIT + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ImageUnit + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = MinForStatisticalEvaluation + Auto + InputKey = MIN_FOR_STATISTICAL_EVALUATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = MinForStatisticalEvaluation + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = MaxForStatisticalEvaluation + Auto + InputKey = MAX_FOR_STATISTICAL_EVALUATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = MaxForStatisticalEvaluation + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneMaximumDn + Auto + InputKey = SCENE_MAXIMUM_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneMaximumDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneMinimumDn + Auto + InputKey = SCENE_MINIMUM_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneMinimumDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneAverageDn + Auto + InputKey = SCENE_AVERAGE_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneAverageDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneStdevDn + Auto + InputKey = SCENE_STDEV_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneStdevDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneModeDn + Auto + InputKey = SCENE_MODE_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneModeDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ShadowedAreaMinimum + Auto + InputKey = SHADOWED_AREA_MINIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ShadowedAreaMinimum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ShadowedAreaMaximum + Auto + InputKey = SHADOWED_AREA_MAXIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ShadowedAreaMaximum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ShadowedAreaPercentage + Auto + InputKey = SHADOWED_AREA_PERCENTAGE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ShadowedAreaPercentage + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = InvalidType + Auto + InputKey = INVALID_TYPE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = InvalidType + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = InvalidValue + Auto + InputKey = INVALID_VALUE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = InvalidValue + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = InvalidPixels + Auto + InputKey = INVALID_PIXELS + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = InvalidPixels + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = OutOfImageBoundsValue + Auto + InputKey = OUT_OF_IMAGE_BOUNDS_VALUE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = OutOfImageBoundsValue + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = OutOfImageBoundsPixel + Auto + InputKey = OUT_OF_IMAGE_BOUNDS_PIXELS + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = OutOfImageBoundsPixel + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = StretchedFlag + Auto + InputKey = STRETCHED_FLAG + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = StretchedFlag + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DarkFileName + Auto + InputKey = DARK_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = DarkFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = FtFileName + Auto + InputKey = FT_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = FtFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = FlatFileName + Auto + InputKey = FLAT_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = FlatFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = EfficFileName + Auto + InputKey = EFFIC_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = EfficFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = NonlinFileName + Auto + InputKey = NONLIN_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = NonlinFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RadCnvCoef + Auto + InputKey = RAD_CNV_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RadCnvCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RefCnvCoef + Auto + InputKey = REF_CNV_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RefCnvCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = StandardGeometry + Auto + InputKey = STANDARD_GEOMETRY + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = StandardGeometry + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = PhotoCorrId + Auto + InputKey = PHOTO_CORR_ID + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = PhotoCorrId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = PhotoCorrCoef + Auto + InputKey = PHOTO_CORR_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = PhotoCorrCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ResamplingMethod + Auto + InputKey = RESAMPLING_METHOD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = ResamplingMethod + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = TcoMosaicFileName + Auto + InputKey = TCO_MOSAIC_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = TcoMosaicFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DtmMosaicFileName + Auto + InputKey = DTM_MOSAIC_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = DtmMosaicFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = OverlapSelectionId + Auto + InputKey = OVERLAP_SELECTION_ID + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = OverlapSelectionId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = MatchingMosaic + Auto + InputKey = MATCHING_MOSAIC + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = MatchingMosaic + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = L2aDeadPixelThreshold + Auto + InputKey = L2A_DEAD_PIXEL_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = L2aDeadPixelThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = L2aSaturationThreshold + Auto + InputKey = L2A_SATURATION_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = L2aSaturationThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DarkValidMinimum + Auto + InputKey = DARK_VALID_MINIMUM + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = DarkValidMinimum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = FtValidMinimum + Auto + InputKey = FT_VALID_MINIMUM + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = FtValidMinimum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RadianceSaturationThreshold + Auto + InputKey = RADIANCE_SATURATION_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RadianceSaturationThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RefSaturationThreshold + Auto + InputKey = REF_SATURATION_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RefSaturationThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +End diff --git a/isis/src/kaguya/apps/mimap2isis/KaguyaMiMapBandBin.trn b/isis/src/kaguya/apps/mimap2isis/KaguyaMiMapBandBin.trn new file mode 100644 index 0000000000..a26913fa80 --- /dev/null +++ b/isis/src/kaguya/apps/mimap2isis/KaguyaMiMapBandBin.trn @@ -0,0 +1,63 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +Group = FilterName + Auto + InputKey = FILTER_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = FilterName + OutputPosition = (Group, BandBin) + Translation = (*, *) +End_Group + +Group = Center + Auto + InputKey = CENTER_FILTER_WAVELENGTH + InputGroup = ROOT + InputPosition = ROOT + OutputName = Center + OutputPosition = (Group, BandBin) + Translation = (*, *) +End_Group + +Group = Width + Auto + InputKey = BANDWIDTH + InputGroup = ROOT + InputPosition = ROOT + OutputName = Width + OutputPosition = (Group, BandBin) + Translation = (*, *) +End_Group + +Group = BaseBand + Auto + InputKey = BASE_BAND + InputGroup = ROOT + InputPosition = ROOT + OutputName = BaseBand + OutputPosition = (Group, BandBin) + Translation = (*, *) +End_Group + +End diff --git a/isis/src/kaguya/apps/mimap2isis/KaguyaMiMapInstrument.trn b/isis/src/kaguya/apps/mimap2isis/KaguyaMiMapInstrument.trn new file mode 100644 index 0000000000..c405c93134 --- /dev/null +++ b/isis/src/kaguya/apps/mimap2isis/KaguyaMiMapInstrument.trn @@ -0,0 +1,103 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +Group = MissionName + Auto + InputKey = MISSION_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = MissionName + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = SpacecraftName + Auto + InputKey = SPACECRAFT_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpacecraftName + OutputPosition = (Group, Instrument) + Translation = (KAGUYA, SELENE-M) +End_Group + +Group = InstrumentName + Auto + InputKey = INSTRUMENT_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = InstrumentName + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = InstrumentId + Auto + InputKey = INSTRUMENT_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = InstrumentId + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = TargetName + Auto + InputKey = TARGET_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = TargetName + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = ObservationModeId + Auto + InputKey = OBSERVATION_MODE_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ObservationModeId + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = SensorDescription + Auto + InputKey = SENSOR_DESCRIPTION + InputGroup = ROOT + InputPosition = ROOT + OutputName = SensorDescription + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +Group = SensorDescription2 + Auto + InputKey = SENSOR_DESCRIPTION2 + InputGroup = ROOT + InputPosition = ROOT + OutputName = SensorDescription2 + OutputPosition = (Group, Instrument) + Translation = (*, *) +End_Group + +End diff --git a/isis/src/kaguya/apps/mimap2isis/KaguyaMil3cArchive.trn b/isis/src/kaguya/apps/mimap2isis/KaguyaMil3cArchive.trn new file mode 100644 index 0000000000..fc1b23bad9 --- /dev/null +++ b/isis/src/kaguya/apps/mimap2isis/KaguyaMil3cArchive.trn @@ -0,0 +1,483 @@ +# +# The group names listed here are the native names used by +# applications to get the foreign names and values +# +# There is only one level of groups the groups are not +# allowed to be nested +# +# The Group names can NOT be repeated. +# +# InputGroup is a comma delimited list of objects and/or +# groups in the foreign label. Traversing this list will +# lead to the correct level to find the foreign keyword. +# +# InputKey is the keyword within the group which holds +# the information. +# +# InputDefault is the value used if there is no value for +# the keyword +# +# Translation is the native and corresponding foreign values. +# Translation may be repeated as needed. +# +Group = SoftwareName + Auto + InputKey = SOFTWARE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SoftwareName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SoftwareVersion + Auto + InputKey = SOFTWARE_VERSION + InputGroup = ROOT + InputPosition = ROOT + OutputName = SoftwareVersion + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProcessVersionId + Auto + InputKey = PROCESS_VERSION_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProcessVersionId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductCreationTime + Auto + InputKey = PRODUCT_CREATION_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductCreationTime + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProgramStartTime + Auto + InputKey = PROGRAM_START_TIME + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProgramStartTime + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProducerId + Auto + InputKey = PRODUCER_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProducerId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductSetId + Auto + InputKey = PRODUCT_SET_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductSetId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ProductVersionId + Auto + InputKey = PRODUCT_VERSION_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = ProductVersionId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RegisteredProduct + Auto + InputKey = REGISTERED_PRODUCT + InputGroup = ROOT + InputPosition = ROOT + OutputName = RegisteredProduct + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = Level2AFileName + Auto + InputKey = LEVEL2A_FILE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = Level2AFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SpiceMetakernelFileName + Auto + InputKey = SPICE_METAKERNEL_FILE_NAME + InputGroup = ROOT + InputPosition = ROOT + OutputName = SpiceMetakernelFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DataSetId + Auto + InputKey = DATA_SET_ID + InputGroup = ROOT + InputPosition = ROOT + OutputName = DataSetId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ImageValueType + Auto + InputKey = IMAGE_VALUE_TYPE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ImageValueType + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ImageUnit + Auto + InputKey = UNIT + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ImageUnit + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = MinForStatisticalEvaluation + Auto + InputKey = MIN_FOR_STATISTICAL_EVALUATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = MinForStatisticalEvaluation + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = MaxForStatisticalEvaluation + Auto + InputKey = MAX_FOR_STATISTICAL_EVALUATION + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = MaxForStatisticalEvaluation + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneMaximumDn + Auto + InputKey = SCENE_MAXIMUM_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneMaximumDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneMinimumDn + Auto + InputKey = SCENE_MINIMUM_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneMinimumDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneAverageDn + Auto + InputKey = SCENE_AVERAGE_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneAverageDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneStdevDn + Auto + InputKey = SCENE_STDEV_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneStdevDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = SceneModeDn + Auto + InputKey = SCENE_MODE_DN + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = SceneModeDn + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ShadowedAreaMinimum + Auto + InputKey = SHADOWED_AREA_MINIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ShadowedAreaMinimum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ShadowedAreaMaximum + Auto + InputKey = SHADOWED_AREA_MAXIMUM + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ShadowedAreaMaximum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ShadowedAreaPercentage + Auto + InputKey = SHADOWED_AREA_PERCENTAGE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = ShadowedAreaPercentage + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = InvalidType + Auto + InputKey = INVALID_TYPE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = InvalidType + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = InvalidValue + Auto + InputKey = INVALID_VALUE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = InvalidValue + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = InvalidPixels + Auto + InputKey = INVALID_PIXELS + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = InvalidPixels + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = OutOfImageBoundsValue + Auto + InputKey = OUT_OF_IMAGE_BOUNDS_VALUE + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = OutOfImageBoundsValue + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = OutOfImageBoundsPixel + Auto + InputKey = OUT_OF_IMAGE_BOUNDS_PIXELS + InputGroup = IMAGE + InputPosition = IMAGE + OutputName = OutOfImageBoundsPixel + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DarkFileName + Auto + InputKey = DARK_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = DarkFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = FtFileName + Auto + InputKey = FT_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = FtFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = FlatFileName + Auto + InputKey = FLAT_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = FlatFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = EfficFileName + Auto + InputKey = EFFIC_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = EfficFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = NonlinFileName + Auto + InputKey = NONLIN_FILE_NAME + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = NonlinFileName + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RadCnvCoef + Auto + InputKey = RAD_CNV_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RadCnvCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RefCnvCoef + Auto + InputKey = REF_CNV_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RefCnvCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = StandardGeometry + Auto + InputKey = STANDARD_GEOMETRY + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = StandardGeometry + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = PhotoCorrId + Auto + InputKey = PHOTO_CORR_ID + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = PhotoCorrId + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = PhotoCorrCoef + Auto + InputKey = PHOTO_CORR_COEF + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = PhotoCorrCoef + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = ResamplingMethod + Auto + InputKey = RESAMPLING_METHOD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = ResamplingMethod + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = L2aDeadPixelThreshold + Auto + InputKey = L2A_DEAD_PIXEL_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = L2aDeadPixelThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = L2aSaturationThreshold + Auto + InputKey = L2A_SATURATION_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = L2aSaturationThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = DarkValidMinimum + Auto + InputKey = DARK_VALID_MINIMUM + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = DarkValidMinimum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = FtValidMinimum + Auto + InputKey = FT_VALID_MINIMUM + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = FtValidMinimum + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RadianceSaturationThreshold + Auto + InputKey = RADIANCE_SATURATION_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RadianceSaturationThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +Group = RefSaturationThreshold + Auto + InputKey = REF_SATURATION_THRESHOLD + InputGroup = PROCESSING_PARAMETERS + InputPosition = PROCESSING_PARAMETERS + OutputName = RefSaturationThreshold + OutputPosition = (Group, Archive) + Translation = (*, *) +End_Group + +End diff --git a/isis/src/kaguya/apps/mimap2isis/main.cpp b/isis/src/kaguya/apps/mimap2isis/main.cpp index 1387b20b9a..b100e5ee9d 100644 --- a/isis/src/kaguya/apps/mimap2isis/main.cpp +++ b/isis/src/kaguya/apps/mimap2isis/main.cpp @@ -62,23 +62,23 @@ void IsisMain() { // Translate the remaining MI MAP labels PvlGroup dataDir(Preference::Preferences().findGroup("DataDirectory")); - QString transDir = (QString) dataDir["Kaguya"] + "/translations/"; + QString transDir = "$ISISROOT/appdata/translations/"; - FileName transFile(transDir + "mimapBandBin.trn"); + FileName transFile(transDir + "KaguyaMiMapBandBin.trn"); PvlToPvlTranslationManager bandBinXlater(label, transFile.expanded()); bandBinXlater.Auto(otherLabels); - transFile = transDir + "mimapInstrument.trn"; + transFile = transDir + "KaguyaMiMapInstrument.trn"; PvlToPvlTranslationManager instXlater(label, transFile.expanded()); instXlater.Auto(otherLabels); PvlKeyword processId = label.findKeyword("PROCESS_VERSION_ID"); if (processId[0] == "L3C") { - transFile = transDir + "mil3cArchive.trn";; + transFile = transDir + "KaguyaMil3cArchive.trn";; } else { - transFile = transDir + "mimapArchive.trn"; + transFile = transDir + "KaguyaMiMapArchive.trn"; } PvlToPvlTranslationManager archiveXlater(label, transFile.expanded()); archiveXlater.Auto(otherLabels);