static { // set up WMO symbols double[] start = {0, -.5, 0}; double[] base = {1, 0, 0}; double[] up = {0, 1., 0}; try { for (int i = 0; i < numMetSymbols; i++) { metSymbols[i] = PlotText.render_font( new String(new byte[] {(byte) (i + 32)}, 0), wmoFont, start, base, up, true); } } catch (Exception excp) { System.err.println("Unable to intialize symbols properly"); } // set up lightning symbols VisADLineArray flash = new VisADLineArray(); flash.coordinates = new float[] { 0.25f, 0.8f, 0.0f, -0.25f, 0.0f, 0.0f, -0.25f, 0.0f, 0.0f, 0.25f, -0.8f, 0.0f, 0.0f, -0.8f, 0.0f, 0.25f, -0.8f, 0.0f, 0.25f, -0.8f, 0.0f, 0.25f, -0.55f, 0.0f }; flash.vertexCount = flash.coordinates.length / 3; lightningSymbols[0] = flash; flash = new VisADLineArray(); flash.coordinates = new float[] { -0.25f, 0.8f, 0.0f, 0.25f, 0.0f, 0.0f, 0.25f, 0.0f, 0.0f, -0.25f, -0.8f, 0.0f, 0.0f, -0.8f, 0.0f, -0.25f, -0.8f, 0.0f, -0.25f, -0.8f, 0.0f, -0.25f, -0.55f, 0.0f }; flash.vertexCount = flash.coordinates.length / 3; lightningSymbols[1] = flash; }