public class Product
extends PIRL.Utilities.File
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The revision identifier of this class.
|
Constructor and Description |
---|
Product(java.lang.String pathname)
Construct a new Product from a string representing the full path and filename
of a product.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Color()
Is the product a color product? Returns true if the product is a color
product, false otherwise.
|
PIRL.Utilities.File |
Data_File()
Return the data_file for this product.
|
void |
Data_File(java.lang.String data_file)
Set the data file location for this product.
|
java.lang.String |
HiCat_Pathname()
Get the Pathname to this product as defined in HiCat.
|
void |
HiCat_Pathname(java.lang.String pathname)
Set the pathname for this product.
|
PIRL.Utilities.File |
Label_File()
Get the PDS label file of this product.
|
void |
Label_File(java.lang.String label_file)
Set the path and location of the PDS label file for this product.
|
static void |
main(java.lang.String[] arguments) |
java.lang.String |
Observation_ID()
Get the Observation_ID of the product
|
void |
Observation_ID(java.lang.String observation_id)
Set the Observation_ID of the product, this can be acquired directly from
the product label or can be found from a database query.
|
void |
Parse_Product()
Parse the product label to get the product id, version, observation id,
target name, etc.
|
PIRL.Utilities.File |
PDS_Path()
Get the PDS release path as a file.
|
void |
PDS_Path(java.lang.String Release_Path)
Set the PDS release path for this product.
|
java.lang.String |
Product_ID()
Get the Product_ID of the Product
|
void |
Product_ID(java.lang.String product_id)
Set the Product_ID of the product
|
java.lang.String |
Product_Type()
Get the product type.
|
void |
Product_Type(java.lang.String product_type)
Set the product type.
|
java.lang.String |
Target_Name()
Get the Target_Name of the target contained within this product.
|
void |
Target_Name(java.lang.String target_name)
Set the target_name for this product.
|
java.lang.String |
Version()
Get the version of this product
|
void |
Version(java.lang.String version)
Set the version of this product
|
Logical_Path, Pathnames_Map, Pathnames_Map, Pathnames_Map, Usage
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public static final java.lang.String ID
public Product(java.lang.String pathname)
pathname
- The full path and filename of a PDS product.PIRL.PVL.PVL_Exception
- if the input file does not have a PDS label.public void Parse_Product() throws PIRL.PVL.PVL_Exception
PIRL.PVL.PVL_Exception
public java.lang.String Product_ID()
public void Product_ID(java.lang.String product_id)
product_id
- the product_id to associate with the productpublic java.lang.String Version()
public void Version(java.lang.String version)
version
- the version id of the productpublic java.lang.String Observation_ID()
public void Observation_ID(java.lang.String observation_id)
observation_id
- the Observation_ID to associate with the product.public java.lang.String Product_Type()
public void Product_Type(java.lang.String product_type)
product_type
- public java.lang.String Target_Name()
public void Target_Name(java.lang.String target_name)
target_name
- public java.lang.String HiCat_Pathname()
public void HiCat_Pathname(java.lang.String pathname)
pathname
- the filesystem path to the product including the filename.public void PDS_Path(java.lang.String Release_Path)
Release_Path
- public PIRL.Utilities.File PDS_Path()
public PIRL.Utilities.File Label_File()
public void Label_File(java.lang.String label_file)
label_file
- public PIRL.Utilities.File Data_File()
public void Data_File(java.lang.String data_file)
data_file
- public boolean Color()
public static void main(java.lang.String[] arguments)
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona