#  This file is used by the ProcessImportPds class to define the offset and 
#  multiplication factors to convert between  sample/line and x/y.
#  
#  The Keyword defines which keyword is searched for in the pds file.  The
#  Pattern is then used to match the value in the defined keyword.  If there
#  is a match,  the given values are used.
#  The defaults used in ProcessImportPds are:
#      xMult  =  -1.0
#      yMult  =   1.0
#      xOff   =  -0.5
#      yOff   =  -0.5
#
# Equations used are
#
#     upperLeftX = xmult * (sampleOffset + xOff) * PixelResolution
#     upperLeftY = ymult * (lineOffset + yOff) * PixelResolution
#
#  Anytime a new group is added to this file, all 6 keywords need to be
#  defined (Keyword,Pattern,xMult,yMult,xOff,yOff).
#
#  @history 2007-04-10  Tracie Sucharski, Original version with 
#                       Isis2 definitions.
#  @history 2008-06-10  Jeff Anderson, Fixed Magellan to be more specific to 
#                       FMAPS and MIDRS
#  @history 2008-10-01  Steven Lambright, Fixed Isis 2 offsets, fixed cassini radars
#                       Keyword/Pattern values. Commented and fixed MIDR offsets.
#  @history 2011-01-26  Janet Barrett, Added support for Kaguya Terrain Camera 
#                       (TC_MAP)
#  @history 2011-11-16  Jeff Anderson, Added support for LROC data
#  @history 2012-03-04  Janet Barrett, Added support for Kaguya Terrain Camera
#                       Ortho data (TCO_MAP)
#

Object = ProjectionOffsetMults
  #  MAGELLAN - MIDR
  #  Must stay above ISIS2
  #  Magellan MIDR file labels were converted from VICAR labels to PDS
  #   labels, and in this conversion the sample/line offsets were rounded
  #   to whole numbers; subpixel accuracy was lost. Because of this, we'll
  #   never exactly match the latitude/longitude but we can be close.
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "MGN-V-RDRS-5-MIDR"
    xMult   = -1.0
    yMult   = 1.0
    xOff    = -0.5
    yOff    = 1.0 
  End_Group

  # VIKING ORBITER
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "VO1/VO2-M-VIS-5-DIM-V1.0"
    xMult = -1.0
    yMult =  1.0
    xOff = -1.0
    yOff = -1.0
  End_Group

  #  ISIS2
  Group = Selection
    Keyword = "CCSD3ZF0000100000001NJPL3IF0PDS200000001"
    Pattern = "SFDU_LABEL"
    xMult   = 1.0
    yMult   = -1.0
    xOff    = -0.5
    yOff    = -0.5
  End_Group

  #  MAGELLAN - FMAP
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "MGN-V-RDRS-5-DIM"
    xMult   = 1.0
    yMult   = -1.0
    xOff    = 1.5
    yOff    = 1.5
  End_Group

  #  CHANDRAYAAN MINIRF MONOSTATIC RADAR
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "CHAN1-L-MRFFR-5-CDR-MAP-V1.0"
    xMult   = -1.0
    yMult   = 1.0
    xOff    = 0.5
    yOff    = 0.5
  End_Group

  #  LRO MINIRF MONOSTATIC RADAR
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "LRO-L-MRFLRO-5-CDR-MAP-V1.0"
    xMult   = -1.0
    yMult   = 1.0
    xOff    = 0.5
    yOff    = 0.5
  End_Group

  #  LRO MINIRF BISTATIC RADAR
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "LRO-L-MRFLRO-2/3/5-BISTATIC-V1.0"
    xMult   = -1.0
    yMult   = 1.0
    xOff    = 0.5
    yOff    = 0.5
  End_Group

  #  CASSINI RADAR
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "CO-SSA-RADAR"
    xMult   = -1.0
    yMult   = 1.0
    xOff    = 0.5
    yOff    = 0.5
  End_Group

  #  KAGUYA TERRAIN CAMERA ORTHO
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "TCO_MAP"
    xMult   = 1.0
    yMult   = 1.0
    xOff    = -0.5
    yOff    = -0.5
  End_Group

  #  KAGUYA TERRAIN CAMERA
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "TC_MAP"
    xMult   = 1.0
    yMult   = 1.0
    xOff    = -0.5
    yOff    = -0.5
  End_Group

  # LROC PDS RDR Products
  # Selection group verified via email by LROC team (Emerson Speyer)
  # on 11/16/2011
  Group = Selection
    Keyword = "VOLUME_ID"
    Pattern = "LROLRC_2001"
    xMult   = -1.0
    yMult   = 1.0
    xOff    = 0.5
    yOff    = 0.5
  End_Group

  # MESSENGER DEM Products archived in PDS on March, 2016. These products
  # have been corrected for the PDS environment such that offsets are correct.
  # Therefore, on ingest into ISIS, additional adjustments are required by
  # pds2isis. The values in the group below will accomodate this condition.
  # Products derived by the USGS on 2015-12-02. Contact: Kris J Becker.
  Group = Selection
    Keyword = "DATA_SET_ID"
    Pattern = "MESS-H-MDIS-5-DEM-ELEVATION-V1.0"
    xMult   = -1.0
    yMult   = 1.0
    xOff    = 0.5
    yOff    = 0.5
  End_Group

  # HRSC products archived in PDS
  Group = Selection
    Keyword = "INSTRUMENT_NAME"
    Pattern = "HIGH RESOLUTION STEREO CAMERA"
    xMult   = -1.0
    yMult   = 1.0
    xOff    = 0.5
    yOff    = 0.5
  End_Group

  #  STANDARD PDS
  #  Should always be last
  Group = Selection
    Keyword = "PDS_VERSION_ID"
    Pattern = "PDS3"
    xMult   = -1.0
    yMult   = 1.0
    xOff    = -0.5
    yOff    = -0.5
  End_Group
End_Object

         
