|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.point.PointObFactory
public class PointObFactory
Factory for dealing with point observations
| Field Summary | |
|---|---|
static float |
OA_GRID_DEFAULT
OA Grid Default value |
| Constructor Summary | |
|---|---|
PointObFactory()
Constructor |
|
| Method Summary | |
|---|---|
static FieldImpl |
barnes(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses)
Perform an object analysis on a set of point obs |
static FieldImpl |
barnes(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses,
float gain,
float scaleLength,
au.gov.bom.aifs.osa.analysis.Barnes.AnalysisParameters params,
FieldImpl firstGuessField)
Perform an object analysis on a set of point obs |
static FlatField |
barnesOneTime(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses)
Do the analysis on the single time. |
static FlatField |
barnesOneTime(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses,
float gain,
float scaleLength,
au.gov.bom.aifs.osa.analysis.Barnes.AnalysisParameters params)
Do the analysis on the single time. |
static FlatField |
barnesOneTime(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses,
float gain,
float scaleLength,
au.gov.bom.aifs.osa.analysis.Barnes.AnalysisParameters params,
FlatField firstGuess)
Do the analysis on the single time. |
static List |
binTimes(List times,
double binRoundTo,
double binWidth)
Bin the times |
static FieldImpl |
extractParameter(FieldImpl obs,
RealType parameter)
Extract the parameter from some point obs |
static FieldImpl |
extractParameter(FieldImpl obs,
String paramName)
Extract the parameter from some point obs |
static double[] |
getBoundingBox(FieldImpl pointObs)
Get the bounding box of the given obs |
static double[] |
getBoundingBoxOneTime(FieldImpl pointObs)
Get the bounding box of the given obs |
static List<PointOb> |
getPointObs(FieldImpl field)
Get the list of PointOb objects from the given field |
static FieldImpl |
makePointCloud(FieldImpl pointObs,
String param)
Make a point cloud structure from point obs |
static PointOb |
makePointOb(EarthLocation el)
Make a PointOb from an EarthLocation. |
static PointOb |
makePointOb(EarthLocation el,
DateTime dt)
Make a PointOb from an EarthLocation. |
static PointOb |
makePointOb(EarthLocation el,
DateTime dt,
Tuple tuple)
Make a point ob |
static FieldImpl |
makePointObField(PointOb point)
Returns a point observation as a FieldImpl of type. |
static FieldImpl |
makePointObs(EarthLocation el)
Make a FieldImpl of PointOb-s from an EarthLocation. |
static FieldImpl |
makePointObs(EarthLocation el,
DateTime dt)
Make a FieldImpl of PointOb-s from an EarthLocation. |
static FieldImpl |
makePointObs(ucar.nc2.ft.FeatureDatasetPoint input,
double binRoundTo,
double binWidth,
ucar.unidata.geoloc.LatLonRect llr,
ucar.unidata.util.DateSelection dateSelection,
boolean sample)
Make point obs |
static FieldImpl |
makePointObs(PointOb po)
Make a FieldImpl from a PointOb. |
static FieldImpl |
makePointObs(ucar.nc2.dt.PointObsDataset input)
Make point obs from a PointObsDataset |
static FieldImpl |
makePointObs(ucar.nc2.dt.PointObsDataset input,
double binRoundTo,
double binWidth)
Make point obs |
static FieldImpl |
makePointObs(ucar.nc2.dt.PointObsDataset input,
double binRoundTo,
double binWidth,
ucar.unidata.geoloc.LatLonRect llr)
Make point obs |
static FieldImpl |
makePointObs(ucar.nc2.dt.PointObsDataset input,
double binRoundTo,
double binWidth,
ucar.unidata.geoloc.LatLonRect llr,
boolean sample)
Make point obs |
static FieldImpl |
makePointObsFromField(FieldImpl input)
Take a field of data and turn it into a field of PointObs. |
static FieldImpl |
makePointObsFromField(FieldImpl input,
double binRoundTo,
double binWidth)
Take a field of data and turn it into a field of PointObs. |
static FieldImpl |
makeTimeSequenceOfPointObs(FieldImpl pointObs)
From a field of point observations, reorder them with time as the outer dimension. |
static FieldImpl |
makeTimeSequenceOfPointObs(FieldImpl pointObs,
int lumpMinutes)
From a field of point observations, reorder them with time as the outer dimension. |
static FieldImpl |
makeTimeSequenceOfPointObs(List pointObs,
int lumpMinutes,
int componentIndex)
From a field of point observations, reorder them with time as the outer dimension. |
static ucar.nc2.ft.point.writer.CFPointObWriter |
makeWriter(DataOutputStream dos,
TupleType type,
int[] skipIndices,
int defaultStringLength,
String altUnit,
int cnt,
int[] slengths)
Make a CFPointObWriter |
static FieldImpl |
mergeData(List datas)
Merge a List of FieldImpls of point obs into one. |
static FieldImpl |
removeTimeDimension(FieldImpl pointObs)
Remove the time dimension from a field of point obs, returning just and indexed list of the obs |
static FieldImpl |
subSet(FieldImpl pointObs,
ucar.unidata.geoloc.LatLonRect bounds)
Returns a subset of the field of point observations that lie within the boundaries of the LinearLatLonSet. |
static FieldImpl |
subSet(FieldImpl pointObs,
LinearLatLonSet bounds)
Returns a subset of the field of point observations that lie within the boundaries of the LinearLatLonSet. |
static void |
writeToNetcdf(File file,
FieldImpl field)
Write the PointObs contained in the given field as a netcdf file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float OA_GRID_DEFAULT
| Constructor Detail |
|---|
public PointObFactory()
| Method Detail |
|---|
public static FieldImpl makePointObField(PointOb point)
throws VisADException,
RemoteException
(Time -> ((lat, lon, alt) -> (data)))
point - point observation
RemoteException - Java RMI error
VisADException - VisAD Error
public static FieldImpl makePointCloud(FieldImpl pointObs,
String param)
throws VisADException,
RemoteException
pointObs - the point obsparam - the parameter to extract - null if want all
RemoteException - Java RMI problem
VisADException - VisAD problem
public static FieldImpl makeTimeSequenceOfPointObs(FieldImpl pointObs)
throws VisADException,
RemoteException
pointObs - Field of point observations (index -> pointobs)
RemoteException - Java RMI error
VisADException - VisAD Error
public static FieldImpl makeTimeSequenceOfPointObs(FieldImpl pointObs,
int lumpMinutes)
throws VisADException,
RemoteException
pointObs - Field of point observations (index -> pointobs)lumpMinutes - If greater then 0 is used to lump the times of the point obs
together
RemoteException - Java RMI error
VisADException - VisAD Error
public static FieldImpl makeTimeSequenceOfPointObs(List pointObs,
int lumpMinutes,
int componentIndex)
throws VisADException,
RemoteException
pointObs - Field of point observations (index -> pointobs)lumpMinutes - If greater then 0 is used to lump the times of the point obs togethercomponentIndex - If >= 0 then make a T->componentvalue field
RemoteException - Java RMI error
VisADException - VisAD Error
public static FieldImpl subSet(FieldImpl pointObs,
ucar.unidata.geoloc.LatLonRect bounds)
throws VisADException,
RemoteException
pointObs - set of obs.bounds - LinearLatLonSet bounding box
RemoteException - Java RMI error
VisADException - VisAD Error
public static FieldImpl subSet(FieldImpl pointObs,
LinearLatLonSet bounds)
throws VisADException,
RemoteException
pointObs - set of obs.bounds - LinearLatLonSet bounding box
RemoteException - Java RMI error
VisADException - VisAD Error
public static List<PointOb> getPointObs(FieldImpl field)
throws VisADException,
RemoteException
field - the field that contains the PointObs
RemoteException - on badness
VisADException - on badness
public static void writeToNetcdf(File file,
FieldImpl field)
throws VisADException,
RemoteException,
IOException
file - file to write tofield - The field
IOException - on badness
RemoteException - on badness
VisADException - on badness
public static ucar.nc2.ft.point.writer.CFPointObWriter makeWriter(DataOutputStream dos,
TupleType type,
int[] skipIndices,
int defaultStringLength,
String altUnit,
int cnt,
int[] slengths)
throws Exception
dos - the output streamtype - the tupeskipIndices - which indices to skipdefaultStringLength - the default string lengthaltUnit - the altitude unitcnt - the numberslengths - string lengths
Exception - problem creating something
public static FieldImpl makePointObsFromField(FieldImpl input)
throws VisADException
input - FieldImpl of raw VisAD data
VisADException - couldn't create the VisAD data
public static FieldImpl makePointObsFromField(FieldImpl input,
double binRoundTo,
double binWidth)
throws VisADException
input - FieldImpl of raw VisAD databinRoundTo - time bin round tobinWidth - time bin size
VisADException - On badness
public static FieldImpl makePointObs(ucar.nc2.dt.PointObsDataset input)
throws Exception
input - pointobs dataset to load
Exception - problem creating the ob or a cancel
public static List binTimes(List times,
double binRoundTo,
double binWidth)
throws VisADException
times - List of timesbinRoundTo - round to factorbinWidth - bin size
VisADException - On badness
public static FieldImpl makePointObs(ucar.nc2.dt.PointObsDataset input,
double binRoundTo,
double binWidth)
throws Exception
input - the data setbinRoundTo - bin round tobinWidth - time bin size
Exception - On badness
public static FieldImpl makePointObs(ucar.nc2.dt.PointObsDataset input,
double binRoundTo,
double binWidth,
ucar.unidata.geoloc.LatLonRect llr)
throws Exception
input - the data setbinRoundTo - bin round tobinWidth - time bin sizellr - bounding box
Exception - On badness
public static FieldImpl makePointObs(ucar.nc2.dt.PointObsDataset input,
double binRoundTo,
double binWidth,
ucar.unidata.geoloc.LatLonRect llr,
boolean sample)
throws Exception
input - the data setbinRoundTo - bin round tobinWidth - time bin sizellr - bounding boxsample - If true then just sample the data, i.e., read the first ob
Exception - On badness
public static FieldImpl makePointObs(ucar.nc2.ft.FeatureDatasetPoint input,
double binRoundTo,
double binWidth,
ucar.unidata.geoloc.LatLonRect llr,
ucar.unidata.util.DateSelection dateSelection,
boolean sample)
throws Exception
input - the data setbinRoundTo - bin round tobinWidth - time bin sizellr - bounding boxdateSelection - the date selectionsample - If true then just sample the data, i.e., read the first ob
Exception - On badness
public static FieldImpl mergeData(List datas)
throws VisADException
datas - List of FieldImpls of point obs
VisADException - problem getting the data
public static PointOb makePointOb(EarthLocation el)
throws VisADException,
RemoteException
el - EarthLocation to use
RemoteException - Java RMI error
VisADException - problem getting the data
public static PointOb makePointOb(EarthLocation el,
DateTime dt)
throws VisADException,
RemoteException
el - EarthLocation to usedt - DateTime to use
RemoteException - Java RMI error
VisADException - problem getting the data
public static PointOb makePointOb(EarthLocation el,
DateTime dt,
Tuple tuple)
throws VisADException,
RemoteException
el - earth locationdt - date timetuple - data
RemoteException - Java RMI error
VisADException - problem getting the data
public static FieldImpl makePointObs(EarthLocation el)
throws VisADException,
RemoteException
el - EarthLocation to use
RemoteException - Java RMI error
VisADException - problem getting the data
public static FieldImpl makePointObs(EarthLocation el,
DateTime dt)
throws VisADException,
RemoteException
el - EarthLocation to usedt - DateTime to use
RemoteException - Java RMI error
VisADException - problem getting the data
public static FieldImpl makePointObs(PointOb po)
throws VisADException,
RemoteException
po - The ob
RemoteException - Java RMI error
VisADException - problem getting the data
public static FieldImpl removeTimeDimension(FieldImpl pointObs)
throws VisADException,
RemoteException
pointObs - time field of obs
RemoteException - Java RMI error
VisADException - problem getting the data
public static FieldImpl barnes(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses)
throws VisADException,
RemoteException
pointObs - Observations to analyzetype - RealTypes of parameterxSpacing - x spacing (degrees)ySpacing - y spacing (degrees)numPasses - number of passes
RemoteException - Java RMI error
VisADException - problem getting the data
public static FieldImpl barnes(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses,
float gain,
float scaleLength,
au.gov.bom.aifs.osa.analysis.Barnes.AnalysisParameters params,
FieldImpl firstGuessField)
throws VisADException,
RemoteException
pointObs - Observations to analyzetype - RealTypes of parameterxSpacing - x spacing (degrees)ySpacing - y spacing (degrees)numPasses - number of passesgain - grid convergence/passscaleLength - search radiusparams - analysis parameters - used to pass back computed valsfirstGuessField - The data to use for a first guess. May be null.
RemoteException - Java RMI error
VisADException - problem getting the data
public static FlatField barnesOneTime(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses)
throws VisADException,
RemoteException
pointObs - Observations to analyzetype - RealTypes of parameterxSpacing - x spacing (degrees)ySpacing - y spacing (degrees)numPasses - number of passes
RemoteException - Java RMI error
VisADException - problem getting the data
public static FlatField barnesOneTime(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses,
float gain,
float scaleLength,
au.gov.bom.aifs.osa.analysis.Barnes.AnalysisParameters params)
throws VisADException,
RemoteException
pointObs - Observations to analyzetype - RealTypes of parameterxSpacing - x spacing (degrees)ySpacing - y spacing (degrees)numPasses - number of passesgain - grid convergence/passscaleLength - search radiusparams - analysis parameters - used to pass back computed vals
RemoteException - Java RMI error
VisADException - problem getting the data
public static FlatField barnesOneTime(FieldImpl pointObs,
RealType type,
float xSpacing,
float ySpacing,
int numPasses,
float gain,
float scaleLength,
au.gov.bom.aifs.osa.analysis.Barnes.AnalysisParameters params,
FlatField firstGuess)
throws VisADException,
RemoteException
pointObs - Observations to analyzetype - RealTypes of parameterxSpacing - x spacing (degrees)ySpacing - y spacing (degrees)numPasses - number of passesgain - grid convergence/passscaleLength - search radiusparams - analysis parameters - used to pass back computed valsfirstGuess - analysis parameters - used to pass back computed vals
RemoteException - Java RMI error
VisADException - problem getting the data
public static FieldImpl extractParameter(FieldImpl obs,
String paramName)
throws VisADException,
RemoteException
obs - Field of point obsparamName - name of the parameter to extract
RemoteException - Java RMI exception
VisADException - problem extracting parameter
public static FieldImpl extractParameter(FieldImpl obs,
RealType parameter)
throws VisADException,
RemoteException
obs - Field of point obsparameter - parameter to extract
RemoteException - Java RMI exception
VisADException - problem extracting parameter
public static double[] getBoundingBox(FieldImpl pointObs)
throws VisADException,
RemoteException
pointObs - the obs
RemoteException - On badness
VisADException - On badness
public static double[] getBoundingBoxOneTime(FieldImpl pointObs)
throws VisADException,
RemoteException
pointObs - the obs
RemoteException - On badness
VisADException - On badness
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||