Package edu.wisc.ssec.mcidas

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


     */
    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

     * @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

Related Classes of edu.wisc.ssec.mcidas.AreaFile

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.