Package ucar.visad
Class WindBarb
java.lang.Object
ucar.visad.WindBarb
Class WindBarb to create wind barbs as shapes
- Version:
- $Revision: 1.5 $
- Author:
- IDV Development Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic float[]
makeBarb
(boolean south, float x, float y, float z, float scale, float pt_size, float f0, float f1, float[] vx, float[] vy, float[] vz, int[] numv, float[] tx, float[] ty, float[] tz, int[] numt) Adapted from Don Murray's mindstatic float[]
makeBarb
(boolean south, float x, float y, float z, float scale, float pt_size, float f0, float f1, float[] vx, float[] vy, float[] vz, int[] numv, float[] tx, float[] ty, float[] tz, int[] numt, boolean rotateToGlobe) Adapted from Don Murray's mindstatic float[]
makeBarbOld
(boolean south, float x, float y, float z, float scale, float pt_size, float f0, float f1, float[] vx, float[] vy, float[] vz, int[] numv, float[] tx, float[] ty, float[] tz, int[] numt) adapted from Justin Baker's WindBarb, which is adapted from Mark Govett's barbs.pro IDL routinestatic VisADGeometryArray[]
staticMakeFlow
(float[][] flow_values, float flowScale, float[][] spatial_values, byte[][] color_values, boolean[][] range_select, boolean isSouth) Static method to make flow components
-
Constructor Details
-
WindBarb
public WindBarb()Default constructor
-
-
Method Details
-
staticMakeFlow
public static VisADGeometryArray[] staticMakeFlow(float[][] flow_values, float flowScale, float[][] spatial_values, byte[][] color_values, boolean[][] range_select, boolean isSouth) throws VisADException Static method to make flow components- Parameters:
flow_values
- values of flowflowScale
- scale factorsspatial_values
- spatial valuescolor_values
- colors for flow depictionsrange_select
- checks for whether this is a range selectisSouth
- barb orientation flag- Returns:
- array of shapes as VisADGeometryArrays
- Throws:
VisADException
-
makeBarbOld
public static float[] makeBarbOld(boolean south, float x, float y, float z, float scale, float pt_size, float f0, float f1, float[] vx, float[] vy, float[] vz, int[] numv, float[] tx, float[] ty, float[] tz, int[] numt) adapted from Justin Baker's WindBarb, which is adapted from Mark Govett's barbs.pro IDL routine- Parameters:
south
- north or south orientation flagx
- x value locationy
- y value locationz
- z value locationscale
- scale factorpt_size
- spacing between barbsf0
- u componentf1
- v componentvx
- x coordinate of VisADLineArraysvy
- y coordinate of VisADLineArraysvz
- z coordinate of VisADLineArraysnumv
- number of coordinatestx
- x coordinate of VisADTriangleArrays (wind flags)ty
- y coordinate of VisADTriangleArrays (wind flags)tz
- z coordinate of VisADTriangleArrays (wind flags)numt
- number of coordinates- Returns:
- an array of the start and end points
-
makeBarb
public static float[] makeBarb(boolean south, float x, float y, float z, float scale, float pt_size, float f0, float f1, float[] vx, float[] vy, float[] vz, int[] numv, float[] tx, float[] ty, float[] tz, int[] numt) Adapted from Don Murray's mind- Parameters:
south
- north or south orientation flagx
- x value locationy
- y value locationz
- z value locationscale
- scale factorpt_size
- spacing between barbsf0
- u componentf1
- v componentvx
- x coordinate of VisADLineArraysvy
- y coordinate of VisADLineArraysvz
- z coordinate of VisADLineArraysnumv
- number of coordinatestx
- x coordinate of VisADTriangleArrays (wind flags)ty
- y coordinate of VisADTriangleArrays (wind flags)tz
- z coordinate of VisADTriangleArrays (wind flags)numt
- number of coordinates- Returns:
- an array of the start and end points
-
makeBarb
public static float[] makeBarb(boolean south, float x, float y, float z, float scale, float pt_size, float f0, float f1, float[] vx, float[] vy, float[] vz, int[] numv, float[] tx, float[] ty, float[] tz, int[] numt, boolean rotateToGlobe) Adapted from Don Murray's mind- Parameters:
south
- north or south orientation flagx
- x value locationy
- y value locationz
- z value locationscale
- scale factorpt_size
- spacing between barbsf0
- u componentf1
- v componentvx
- x coordinate of VisADLineArraysvy
- y coordinate of VisADLineArraysvz
- z coordinate of VisADLineArraysnumv
- number of coordinatestx
- x coordinate of VisADTriangleArrays (wind flags)ty
- y coordinate of VisADTriangleArrays (wind flags)tz
- z coordinate of VisADTriangleArrays (wind flags)numt
- number of coordinatesrotateToGlobe
- if true, rotate vectors for globe- Returns:
- an array of the start and end points
-