visad.bom
Class TCData

java.lang.Object
  extended by visad.bom.TCData

public class TCData
extends Object


Constructor Summary
TCData()
           
 
Method Summary
 void addDisturbance(int disturbanceID, Tuple disturbance)
           
 void addLocation(int disturbanceID, int trackID, double time, RealTuple location)
           
 void addTrack(int disturbanceID, int trackID, Tuple track)
           
 FieldImpl getData()
           
 MathType getType()
           
static void main(String[] args)
          create a bunch of "intensities" which are measurements of the intensity of a Tropical Cyclone at particular times input: arrays of times, ids, wind_means...
static Tuple makeDisturbance(String country, String state, int year, int number, String historical_name, double open_date, double close_date, int archive_mode, int realtime_mode, FieldImpl tracks)
           
static FlatField makeLocations(double[] times, float[] lats, float[] lons, float[] errors, int[] confidence, int[] location_styles, float[] wind_means, float[] wind_gusts, float[] central_pressures, int[] categories, int[] intensityStyle, float[] gale_radii, float[] storm_radii, float[] hurricane_radii, float[] radii_of_maximum_winds, int[] size_styles, float[] depth, float[] eyeDiameter, float[] pressureOfLastClosedIsobar, int[] structureStyle)
          jk: create a flatfield of Disturbance (Tropical Cyclone) Sizes with values set to "missing" This allows for the case when the database has no entries yet, but means we can still create some TCData
static Tuple makeTrack(String track_type, String track_name, double base_date_time, double create_date_time, String display_type, FlatField locations)
           
static FieldImpl makeTrackField(int trackID, Tuple track)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCData

public TCData()
       throws VisADException
Throws:
VisADException
Method Detail

getData

public FieldImpl getData()

getType

public MathType getType()

addLocation

public void addLocation(int disturbanceID,
                        int trackID,
                        double time,
                        RealTuple location)
                 throws VisADException,
                        RemoteException
Throws:
VisADException
RemoteException

makeTrackField

public static FieldImpl makeTrackField(int trackID,
                                       Tuple track)
                                throws VisADException,
                                       RemoteException
Throws:
VisADException
RemoteException

addTrack

public void addTrack(int disturbanceID,
                     int trackID,
                     Tuple track)
              throws VisADException,
                     RemoteException
Throws:
VisADException
RemoteException

addDisturbance

public void addDisturbance(int disturbanceID,
                           Tuple disturbance)
                    throws VisADException,
                           RemoteException
Throws:
VisADException
RemoteException

makeDisturbance

public static Tuple makeDisturbance(String country,
                                    String state,
                                    int year,
                                    int number,
                                    String historical_name,
                                    double open_date,
                                    double close_date,
                                    int archive_mode,
                                    int realtime_mode,
                                    FieldImpl tracks)
                             throws VisADException,
                                    RemoteException
Throws:
VisADException
RemoteException

makeTrack

public static Tuple makeTrack(String track_type,
                              String track_name,
                              double base_date_time,
                              double create_date_time,
                              String display_type,
                              FlatField locations)
                       throws VisADException,
                              RemoteException
Throws:
VisADException
RemoteException

makeLocations

public static FlatField makeLocations(double[] times,
                                      float[] lats,
                                      float[] lons,
                                      float[] errors,
                                      int[] confidence,
                                      int[] location_styles,
                                      float[] wind_means,
                                      float[] wind_gusts,
                                      float[] central_pressures,
                                      int[] categories,
                                      int[] intensityStyle,
                                      float[] gale_radii,
                                      float[] storm_radii,
                                      float[] hurricane_radii,
                                      float[] radii_of_maximum_winds,
                                      int[] size_styles,
                                      float[] depth,
                                      float[] eyeDiameter,
                                      float[] pressureOfLastClosedIsobar,
                                      int[] structureStyle)
                               throws VisADException,
                                      RemoteException
jk: create a flatfield of Disturbance (Tropical Cyclone) Sizes with values set to "missing" This allows for the case when the database has no entries yet, but means we can still create some TCData

Throws:
VisADException
RemoteException

main

public static void main(String[] args)
                 throws VisADException,
                        RemoteException
create a bunch of "intensities" which are measurements of the intensity of a Tropical Cyclone at particular times input: arrays of times, ids, wind_means... output: a field of mathType intensityFunction, which is represented by: (time -> intensityTuple)

Throws:
VisADException
RemoteException