HiRISE

HiRISE.HiReport.product
Class HiFileCodes

java.lang.Object
  extended by HiRISE.HiReport.product.HiFileCodes

public class HiFileCodes
extends Object

Contains methods to map HiRISE file type codes to product and product group identifiers.


Field Summary
static ProductFileType[] ANAGLYPH_TYPES
          Maps Anaglyph extras code (index) to file type
static ProductFileType[] DTM_EXTRAS_TYPES
          Maps DTM extras code (index) to file type
static HiProductGroup[] EXTRAS_GROUPS
          Maps RDR and EDR extras code (index) to product group
static HiProduct[] EXTRAS_PRODUCTS
          Maps RDR and EDR extras code (index) to product ID
static ProductFileType[] EXTRAS_TYPES
          Maps RDR and EDR extras code (index) to file type
 
Constructor Summary
HiFileCodes()
           
 
Method Summary
static HiProductGroup getExtrasGroup(int code)
          Get the product group for an extras code
static HiProduct getExtrasProduct(int code)
          Get the product ID for an extras code
static ProductFileType getFileType(HiProductGroup group, int code)
          Get the file type given a group and an extras code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANAGLYPH_TYPES

public static final ProductFileType[] ANAGLYPH_TYPES
Maps Anaglyph extras code (index) to file type


DTM_EXTRAS_TYPES

public static final ProductFileType[] DTM_EXTRAS_TYPES
Maps DTM extras code (index) to file type


EXTRAS_GROUPS

public static final HiProductGroup[] EXTRAS_GROUPS
Maps RDR and EDR extras code (index) to product group


EXTRAS_TYPES

public static final ProductFileType[] EXTRAS_TYPES
Maps RDR and EDR extras code (index) to file type


EXTRAS_PRODUCTS

public static final HiProduct[] EXTRAS_PRODUCTS
Maps RDR and EDR extras code (index) to product ID

Constructor Detail

HiFileCodes

public HiFileCodes()
Method Detail

getExtrasProduct

public static final HiProduct getExtrasProduct(int code)
Get the product ID for an extras code

Parameters:
code - number
Returns:
product

getExtrasGroup

public static final HiProductGroup getExtrasGroup(int code)
Get the product group for an extras code

Parameters:
code - number
Returns:
group

getFileType

public static final ProductFileType getFileType(HiProductGroup group,
                                                int code)
Get the file type given a group and an extras code

Parameters:
group - name
code - number
Returns:
file type

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona