Package org.meteoinfo.drawing
Class ContourDraw
- java.lang.Object
-
- org.meteoinfo.drawing.ContourDraw
-
public class ContourDraw extends java.lang.ObjectTemplate
-
-
Constructor Summary
Constructors Constructor Description ContourDraw()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetMinMaxValueFDiscreteData(double[][] S, double noData, double[] minmax)Get max/min values from a station datastatic java.util.List<wContour.Global.Border>tracingBorders(double[][] gridData, double[] X, double[] Y, int[][] S1, double undef)Tracing contour bordersstatic java.lang.Object[]tracingContourLines(double[][] gridData, double[] cValues, double[] X, double[] Y, double noData, int[][] S1)Tracing contour lines with undefined datastatic java.util.List<wContour.Global.Polygon>tracingPolygons(double[][] gridData, java.util.List<wContour.Global.PolyLine> contourLines, java.util.List<wContour.Global.Border> borders, double[] cValues)Tracing shaded polygons with undefined data
-
-
-
Method Detail
-
tracingBorders
public static java.util.List<wContour.Global.Border> tracingBorders(double[][] gridData, double[] X, double[] Y, int[][] S1, double undef)Tracing contour borders- Parameters:
gridData- Grid dataX- X arrayY- Y arrayS1- Flat arrayundef- Undefine value- Returns:
- Borders
-
tracingContourLines
public static java.lang.Object[] tracingContourLines(double[][] gridData, double[] cValues, double[] X, double[] Y, double noData, int[][] S1)Tracing contour lines with undefined data- Parameters:
gridData- Grid datacValues- ValuesX- X arrayY- Y arraynoData- Undefine dataS1- Flag array- Returns:
- Traced contour lines and borders
-
tracingPolygons
public static java.util.List<wContour.Global.Polygon> tracingPolygons(double[][] gridData, java.util.List<wContour.Global.PolyLine> contourLines, java.util.List<wContour.Global.Border> borders, double[] cValues)Tracing shaded polygons with undefined data- Parameters:
gridData- Grid datacontourLines- Contour linesborders- Border linescValues- Values- Returns:
- Polygon list
-
getMinMaxValueFDiscreteData
public static boolean getMinMaxValueFDiscreteData(double[][] S, double noData, double[] minmax)Get max/min values from a station data- Parameters:
S- Discrete datanoData- Missing valueminmax- Min/Max data array- Returns:
- If has missing value
-
-