Examples of AreaFile


Examples of edu.wisc.ssec.mcidas.AreaFile

     * @return true if it is an AREA file.
     */
    public static boolean isValidFile(RandomAccessFile raf) {
        String fileName = raf.getLocation();
        try {
            AreaFile af = new AreaFile(fileName);
            return true;
        } catch (AreaFileException e) {
            return false;
        }
    }
View Full Code Here

Examples of edu.wisc.ssec.mcidas.AreaFile

     */
    public static void main(String[] args) throws Exception {
        String               file = (args.length > 0)
                                    ? args[0]
                                    : "c:/data/satellite/AREA8760";
        AreaFile             af   = new AreaFile(file);
        McIDASAreaProjection proj = new McIDASAreaProjection(af);
        LatLonPoint          llp  = new LatLonPointImpl(45, -105);
        System.out.println("lat/lon = " + llp);
        ProjectionPoint pp = proj.latLonToProj(llp);
        System.out.println("proj point = " + pp);
View Full Code Here

Examples of edu.wisc.ssec.mcidas.AreaFile

     * @throws AreaFileException problem opening the area file
     */
    public boolean init(RandomAccessFile raf, NetcdfFile ncfile)
            throws AreaFileException {

        af = new AreaFile(raf.getLocation());

        //read metadata
        dirBlock = af.getDir();
        ad       = af.getAreaDirectory();
        int numElements = ad.getElements();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.