public class EdrInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
avg
Average of DN
|
int |
bin
Binning mode
|
java.awt.Dimension |
dim
Pixel width and height
|
int |
dns
Number of distinct DN levels
|
double |
fcr
compression (1 = uncompressed, 0 = unknown)
|
long |
gpx
Count of gapped or null pixels
|
java.lang.String |
hcv
HiCal version string
|
int |
his
high instrument saturation
|
int |
lis
low instrument saturation
|
int |
lut
LUT number
|
int |
max
Max DN
|
int |
min
Min DN
|
int |
orb
orbit number
|
java.sql.Timestamp |
pct
product creation time
|
double |
snr
signal to noise ratio
|
double |
std
Standard deviation of DN
|
int |
tdi
TDI mode
|
Constructor and Description |
---|
EdrInfo(java.lang.String obs,
HiProduct id,
java.awt.Dimension dim)
Create a new EDR info structure
|
EdrInfo(java.lang.String obs,
HiProduct id,
int w,
int h)
Create a new EDR info structure
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
findProblems()
When true, problem finding enabled.
|
void |
findProblems(boolean find)
Set to true to enable problem finding (default false)
|
boolean |
findWarnings()
When true, warning finding enabled.
|
void |
findWarnings(boolean find)
Set to true to enable warning finding (default false)
|
double |
getGapPercent()
Returns the percentage of gapped pixels
|
HiProduct |
getId()
Get the product ID
|
java.lang.String |
getObservation()
Get the observation ID
|
java.util.Set<EdrProblem> |
getProblems()
Get the set of problems for this EDR
|
ProductState |
getState()
Get the state of the EDR
|
Validation |
getValidation()
Get the validation information
|
int |
getVersion()
Returns the version number (0 if unset)
|
java.util.Set<EdrProblem> |
getWarnings()
Get the set of warnings for this EDR
|
int |
hashCode() |
void |
setCompression(float fcr)
Set the compression factor, 1 = uncompressed, 0 = unknown
|
void |
setCreationTime(java.sql.Timestamp pct)
Set the product creation time
|
void |
setFurrows(boolean furrows)
Add or remove furrows from the problem set
|
void |
setGaps(long gpx)
Set the gapped pixel count
|
void |
setHiCal(java.lang.String hcv) |
void |
setSaturation(int lis,
int his)
Set the saturated pixel count
|
void |
setSettings(int tdi,
int bin,
int lut,
int orb)
Set various mode settings
|
void |
setSNR(double snr)
Set the signal-to-noise ratio
|
void |
setState(ProductState is)
Set the EDR state
|
void |
setStats(int dns,
int min,
int max,
double avg,
double std)
Set statistical values
|
void |
setValidation(Validation val)
Set the validation information
|
void |
setVersion(int version)
Set the version number
|
java.lang.String |
toString() |
static EdrInfo |
updateFromRow(java.sql.ResultSet rs,
EdrInfo edr)
Fill-in values from result set
|
public java.awt.Dimension dim
public long gpx
public double snr
public double fcr
public int lis
public int his
public int tdi
public int bin
public int lut
public int min
public int max
public double avg
public double std
public int dns
public java.lang.String hcv
public java.sql.Timestamp pct
public int orb
public EdrInfo(java.lang.String obs, HiProduct id, int w, int h)
obs
- observation IDid
- productw
- pixel width (samples)h
- pixel height (lines)public EdrInfo(java.lang.String obs, HiProduct id, java.awt.Dimension dim)
obs
- observation IDid
- productdim
- (samples, lines)public boolean findProblems()
public boolean findWarnings()
public void findProblems(boolean find)
find
- public void findWarnings(boolean find)
find
- public void setVersion(int version)
version
- the version numberpublic int getVersion()
public ProductState getState()
public double getGapPercent()
public void setState(ProductState is)
is
- statepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public HiProduct getId()
public Validation getValidation()
public void setValidation(Validation val)
val
- validation instancepublic void setCompression(float fcr)
fcr
- compression factorpublic void setCreationTime(java.sql.Timestamp pct)
pct
- timepublic void setGaps(long gpx)
gpx
- gapped pixel countpublic void setSNR(double snr)
snr
- signal-to-noise ratiopublic void setSaturation(int lis, int his)
lis
- low instrument saturation pixel counthis
- high instrument saturation pixel countpublic void setStats(int dns, int min, int max, double avg, double std)
dns
- number of DN levelsmin
- lowest DNmax
- highest DNavg
- mean DNstd
- standard deviation in DNpublic void setSettings(int tdi, int bin, int lut, int orb)
tdi
- TDI modebin
- binning modelut
- LUT numberorb
- orbit number (used for LUT verification)public java.util.Set<EdrProblem> getProblems()
public java.util.Set<EdrProblem> getWarnings()
public void setFurrows(boolean furrows)
furrows
- true for furrowspublic static EdrInfo updateFromRow(java.sql.ResultSet rs, EdrInfo edr) throws java.sql.SQLException
rs
- result from databaseedr
- structure to fill-injava.sql.SQLException
- failed to fetch infopublic void setHiCal(java.lang.String hcv)
hcv
- HiCal Versionpublic java.lang.String getObservation()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona