public class ConstantDataSource extends Object implements EnvironmentDataSource
EnvironmentDataSource.LatitudeLongitudeRectangle
Modifier and Type | Field and Description |
---|---|
static double |
METERS_PER_NAUTMILE |
static double |
SECS_PER_HOUR |
AIR, AIR_EW, AIR_NS, AIR_PRESS, AIR_TEMP, AIR_UD, CURRENT, CURRENT_EW, CURRENT_NS, CURRENT_UD, DENS_ANOM, EW, NS, SALINITY, SEASTATE, SURF_ELEV, UD, WATER_TEMP
Constructor and Description |
---|
ConstantDataSource(EnvironConstantsDialog.ConstantValues values) |
Modifier and Type | Method and Description |
---|---|
protected double |
getAirPressure(double lat,
double lon,
double depthAltitude) |
protected double |
getAirTemperature(double lat,
double lon,
double depthAltitude) |
EnvironmentDataSource.LatitudeLongitudeRectangle[] |
getCoverage()
Get lat/lon coverage rectangle(s)
|
String |
getDescription() |
int |
getParameterMask()
Return the parameters which this source can/is-instructed-to provide
|
double |
getVariable(int var,
double lat,
double lon,
double depth,
Date date)
Get environtal parameter at specified location and date
|
double |
getVariable(int var,
double lat,
double lon,
double depth,
long time)
Get environtal parameter at specified location and date
|
double[] |
getVariableAr(int var,
double lat,
double lon,
double depth,
Date date)
Get environtal parameter array at specified location and date.
|
double[] |
getVariableAr(int var,
double lat,
double lon,
double depth,
long time)
Get environtal parameter array at specified location and date.
|
void |
setDescription(String s)
Add a description string tag to this data source
|
void |
setParamMask(int mask)
Set the parameter which this source can/is-instructed-to provide
|
public static final double METERS_PER_NAUTMILE
public static final double SECS_PER_HOUR
public ConstantDataSource(EnvironConstantsDialog.ConstantValues values)
public EnvironmentDataSource.LatitudeLongitudeRectangle[] getCoverage()
getCoverage
in interface EnvironmentDataSource
public int getParameterMask()
getParameterMask
in interface EnvironmentDataSource
public void setParamMask(int mask)
setParamMask
in interface EnvironmentDataSource
public String getDescription()
getDescription
in interface EnvironmentDataSource
public void setDescription(String s)
setDescription
in interface EnvironmentDataSource
s
- public double getVariable(int var, double lat, double lon, double depth, Date date) throws EnviroException
getVariable
in interface EnvironmentDataSource
var
- parameter enumlat
- latitude (dec deg)lon
- longitude (dec deg)depth
- vertical postion (meters)date
- simulation todEnviroException
public double getVariable(int var, double lat, double lon, double depth, long time) throws EnviroException
getVariable
in interface EnvironmentDataSource
var
- parameter enumlat
- latitude (dec deg)lon
- longitude (dec deg)depth
- vertical postion (meters)time
- simulation relative timeEnviroException
public double[] getVariableAr(int var, double lat, double lon, double depth, Date date) throws EnviroException
getVariableAr
in interface EnvironmentDataSource
var
- parameter enumlat
- latitude (dec deg)lon
- longitude (dec deg)depth
- vertical postion (meters)date
- simulation todEnviroException
public double[] getVariableAr(int var, double lat, double lon, double depth, long time) throws EnviroException
getVariableAr
in interface EnvironmentDataSource
var
- parameter enumlat
- latitude (dec deg)lon
- longitude (dec deg)depth
- vertical postion (meters)time
- simulation relative timeEnviroException
protected double getAirTemperature(double lat, double lon, double depthAltitude) throws EnviroException
EnviroException
protected double getAirPressure(double lat, double lon, double depthAltitude) throws EnviroException
EnviroException