Package com.solfin.grib

Examples of com.solfin.grib.GribParameter


            labelStr+="    "+MessageFormat.format(
                    dad.getBundle().getString("Message.statusWindLabel"),
                    theta,
                    windSpeed);
        } else if (gr1!=null) {
            GribParameter gpr=new GribParameter(gr1.getParameterId());
            String grLabel=gpr.getLabel();
            GribUnit gu=gpr.getUnitType();
            if (grLabel==null)
                grLabel="{0}";
            if (gu!=null) {
                labelStr+="    "+MessageFormat.format(grLabel,gu.fromSI(gr1.getValueAt(mouseMP)),gu.getDisplay());
            } else {
                labelStr+="    "+MessageFormat.format(grLabel,gr1.getValueAt(mouseMP),gpr.getUnit());
            }
//            if (gr1.getParameterId()==11)
//                labelStr+="    "+MessageFormat.format(
//                        dad.getBundle().getString("Message.statusTempLabel"),
//                        ReadTools.Temperature.C.fromSI(gr1.getValueAt(mouseMP)));
View Full Code Here


        System.out.println("Going to draw contour lines for:"+gr.getParameter().getShortStr());
        double min;
        double max;
        double step;
        int nbLevels=30;
        GribParameter gp=new GribParameter(gr.getParameterId());
       
        min=gp.getMin();
        max=gp.getMax();
        step=gp.getStep();
        if (min==max) {
            min=gr.getMinimumValue();
            max=gr.getMaximumValue();
        }
        System.out.println("Min/max values="+min+" "+max);
View Full Code Here

       
        rebuildNode();
    }
   
    private String getParameterShortStr(int pid) {
        GribParameter gp=new GribParameter((short)pid);
        return gp.getShortStr();
//
//        return pid==(-1) ?
//            dad.getBundle().getString("Message.windShortStr") :
//            GribTools.getParameterShortStr(pid);
    }
View Full Code Here

//        return pid==(-1) ?
//            dad.getBundle().getString("Message.windShortStr") :
//            GribTools.getParameterShortStr(pid);
    }
    private String getParameterLongStr(int pid) {
        GribParameter gp=new GribParameter((short)pid);
        return gp.getLongStr();
//        return pid==(-1) ?
//            dad.getBundle().getString("Message.windLongStr") :
//            GribTools.getParameterLongStr(pid);
    }
View Full Code Here

TOP

Related Classes of com.solfin.grib.GribParameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.