public class Data_Location
extends java.lang.Object
This utility's methods return a pathname as a string for given information or will return null if no pathname could be parsed from the given information. The pathname returned is not an absolute pathname. The format of the returned pathname is shown below.
Mission-Phase/Prefix_Orbit-Range
Observation_ID
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CRU_DIRECTORY_NAME_PREFIX
The directory name prefix for input found to be in the CRU phase.
|
static int |
CRU_ORBITS_PER_DIRECTORY
Orbits per directory for the cruise (CRU) phase.
|
static java.lang.String |
DEFAULT_DIRECTORY_NAME_PREFIX
The default directory name prefix and is used if no other directory name
prefix is found or specified.
|
static int |
DEFAULT_ORBITS_PER_DIRECTORY
Default orbits per directory.
|
static java.lang.String |
ID
Class identification with revision number.
|
static java.lang.String |
YYMM_DIRECTORY_NAME_PREFIX
The directory name prefix for a datetime format.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getPathSegment(Observation_ID id)
Generates a pathname segment from a given observation ID.
|
static java.lang.String |
getPathSegment(Observation_ID id,
int orbitsPerDirectory,
java.lang.String prefix)
Generates a pathname segment from a given observaton ID, number of orbits
per directory, and pathname prefix.
|
public static final java.lang.String ID
public static final int DEFAULT_ORBITS_PER_DIRECTORY
public static final int CRU_ORBITS_PER_DIRECTORY
public static final java.lang.String YYMM_DIRECTORY_NAME_PREFIX
public static final java.lang.String CRU_DIRECTORY_NAME_PREFIX
public static final java.lang.String DEFAULT_DIRECTORY_NAME_PREFIX
public static java.lang.String getPathSegment(Observation_ID id)
id
- the observation ID from which the pathname segment is derived.DEFAULT_ORBITS_PER_DIRECTORY
public static java.lang.String getPathSegment(Observation_ID id, int orbitsPerDirectory, java.lang.String prefix)
default
number of
orbits per directory is used. If prefix is null, the
prefix is derived from the observation ID.id
- the observation ID from which the pathname segment is derived.orbitsPerDirectory
- the number of orbits to use per directory; if
non-positive, a default number is used.prefix
- the pathname segment prefix; if null, the prefix
is derived from the observation ID.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona