public class ProductObservationNode extends ObservationNode
Modifier and Type | Field and Description |
---|---|
static double |
MARS_A_METERS
equatorial radius in meters
|
static double |
MARS_B_METERS
polar radius in meters
|
static double |
MARS_E2
eccentricity squared
|
Constructor and Description |
---|
ProductObservationNode(java.lang.String id)
Create a new node, with information to be filled out
|
Modifier and Type | Method and Description |
---|---|
void |
addProductFile(ProductFile file)
Add a product file to the hierarchy.
|
ProductObservationNode |
geometry(boolean geometry)
Set to true if geometry is available
|
boolean |
getAnaglyphable()
Return true if an anaglyph should be expected
|
ProductGroupNode |
getAnaglyphs()
Convenience method to get the Anaglyph group (may be empty)
|
double |
getBin1Scale()
Get the scale of an unbinned pixel
|
float |
getCrosstrackDeltaKm()
Get the cross-track delta (actual - planned) in kilometers.
|
float |
getDeltaDeg()
Get the absolute magnitude of the delta in degrees
|
float |
getDeltaKm()
Get the absolute magnitude of the delta in kilometers
|
float |
getDerivedLat()
Get the computed center latitude in degrees
|
float |
getDerivedLon()
Get the computed center longitude in degrees
|
float |
getDowntrackDeltaKm()
Get the down-track delta (actual - planned) in kilometers.
|
ProductGroupNode |
getDTEs()
Convenience method to get the DTE group (may be empty)
|
ProductGroupNode |
getEDRs()
Convenience method to get the EDR group (may be empty)
|
float |
getLatitudeDeltaDeg()
Get the latitude delta (actual - planned) in degrees.
|
float |
getLatitudeDeltaKm()
Get the latitude delta (actual - planned) in kilometers.
|
float |
getLongitudeDeltaDeg()
Get the longitude delta (actual - planned) in degrees.
|
float |
getLongitudeDeltaKm()
Get the longitude delta (actual - planned) in kilometers.
|
int |
getMaxVersion() |
int |
getMinVersion() |
ProductGroupNode |
getNOMAPs()
Convenience method to get the NOMAP group (may be empty)
|
double |
getNorthAzimuth()
Get the north azimuth
|
ProductGroupNode |
getOrthos()
Convenience method to get the ortho-image group (may be empty)
|
float |
getOverlap()
Calculates the fraction of overlap from 0 (no overlap) to 1 (complete overlap).
|
float |
getPlannedLat()
Get the planned center latitude in degrees
|
float |
getPlannedLon()
Get the planned center longitude in degrees
|
ProductGroupNode |
getRDRs()
Convenience method to get the RDR group (may be empty)
|
java.util.Set<java.lang.String> |
getTagNames()
Get a collection of distinct tag names
|
java.util.Map<Tag,java.lang.String> |
getTags()
Get a collection mapping tags to product version identifiers for display.
|
boolean |
isGeometry() |
void |
setBin1Scale(double scale)
Set the scale of an unbinned pixel
|
void |
setCommanding()
This method determines which products can be ignored because they were not commanded and
sets the product state for those products in the hierarchy.
|
void |
setDerivedCoordinates(float lat,
float lon,
double naz)
Set the center coordinates as computed from SPICE
|
void |
setGeometry()
Compute based on geometry values
Formula adopted from "Length of a Degree of longitude" http://en.wikipedia.org/wiki/Longitude
|
void |
setPlannedCoordinates(float lat,
float lon)
Get the center targeted coordinates
|
void |
setStatus(HiProduct product,
java.lang.String id,
int version,
java.lang.String status)
Set the status for a particular product.
|
addRelatedId, addTag, cycle, equals, getAcquiredTime, getCommandedCcdSet, getCycle, getDerivable, getId, getPredictedTime, getProductable, getRelated, getRelatedCount, getRelatedStereoId, getStatus, getSuggestion, getTarget, getTheme, getThumb, getTitle, hashCode, isStereo, setSuggestion, setThumb, setTiming, status, stereo, target, theme, title
public static final double MARS_A_METERS
public static final double MARS_B_METERS
public static final double MARS_E2
public ProductObservationNode(java.lang.String id)
id
- observation IDpublic ProductObservationNode geometry(boolean geometry)
geometry
- true if geometry is availablepublic void setCommanding()
public void setBin1Scale(double scale)
scale
- meters per pixelpublic double getBin1Scale()
public void setPlannedCoordinates(float lat, float lon)
lat
- center latitude in degreeslon
- center longitude in degreespublic void setDerivedCoordinates(float lat, float lon, double naz)
lat
- center latitude in degreeslon
- center longitude in degrees (0-360)naz
- north azimuth in degreespublic float getPlannedLat()
public float getPlannedLon()
public float getDerivedLat()
public double getNorthAzimuth()
public float getDerivedLon()
public float getLatitudeDeltaDeg()
public float getLongitudeDeltaDeg()
public float getLatitudeDeltaKm()
public float getLongitudeDeltaKm()
public float getDowntrackDeltaKm()
public float getCrosstrackDeltaKm()
public float getOverlap()
public float getDeltaDeg()
public float getDeltaKm()
public void addProductFile(ProductFile file)
file
- the product file instancepublic void setStatus(HiProduct product, java.lang.String id, int version, java.lang.String status)
product
- uniquely identifies the productid
- product ID (not necessarily unique, e.g. "RED")version
- product version numberstatus
- string to display for statuspublic java.util.Map<Tag,java.lang.String> getTags()
public java.util.Set<java.lang.String> getTagNames()
public boolean isGeometry()
public ProductGroupNode getEDRs()
public ProductGroupNode getRDRs()
public ProductGroupNode getDTEs()
public ProductGroupNode getOrthos()
public ProductGroupNode getNOMAPs()
public ProductGroupNode getAnaglyphs()
public int getMinVersion()
public int getMaxVersion()
public boolean getAnaglyphable()
public void setGeometry()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona