Documentation of 'edu.wisc.ssec.mcidas.KALPnav' Java class
KALPnav
edu.wisc.ssec.mcidas

Class KALPnav

  • All Implemented Interfaces:
    java.io.Serializable


    public class KALPnav
    extends AREAnav
    The KALPnav class creates the ability to navigate KALP image data. It is a math copy of the McIDAS nvxgvar.dlm code. When used with AreaFile class, set up like this:
    
      AreaFile af;
      try {
        af = new AreaFile("/home/user/mcidas/data/AREA0001");
      } catch (AreaFileException e) {
        System.out.println(e);
        return;
      }
      int[] dir;
      try { dir=af.getDir();
      } catch (AreaFileException e){
        System.out.println(e);
        return;
      }
      int[] nav;
      try { nav=af.getNav();
      } catch (AreaFileException e){
        System.out.println(e);
        return;
      }
      try { 
        GVARnav ng = new GVARnav(nav);  // XXXXnav is the specific implementation
      } catch (IllegalArgumentException excp) {
        System.out.println(excp);
        return;
      }
      ng.setImageStart(dir[5], dir[6]);
      ng.setRes(dir[11], dir[12]);
      ng.setMag(1,1);
      ng.setStart(0,0);
      ......................
     
    See Also:
    Serialized Form
    • Constructor Detail

      • KALPnav

        public KALPnav(int[] iparms)
      • KALPnav

        public KALPnav(int ifunc,
                       int[] iparms)
    • Method Detail

      • toLatLon

        public float[][] toLatLon(float[][] linele)
        Description copied from class: AREAnav
        converts from satellite coordinates to latitude/longitude. This implementation converts the input array to doubles and calls the double signature of AREAnav.toLatLon(double[][]). Subclasses should implement a real float version for better performance.
        Overrides:
        toLatLon in class AREAnav
        Parameters:
        linele - array of line/element pairs. Where linele[indexLine][] is a 'line' and linele[indexEle][] is an element. These are in 'file' coordinates (not "image" coordinates.)
        Returns:
        latlon[][] array of lat/long pairs. Output array is latlon[indexLat][] of latitudes and latlon[indexLon][] of longitudes.
      • toLinEle

        public float[][] toLinEle(float[][] latlon)
        Description copied from class: AREAnav
        toLinEle converts lat/long to satellite line/element This implementation converts the input array to doubles and calls the double signature of AREAnav.toLinEle(double[][]). Subclasses should implement a real float version for better performance.
        Overrides:
        toLinEle in class AREAnav
        Parameters:
        latlon - array of lat/long pairs. Where latlon[indexLat][] are latitudes and latlon[indexLon][] are longitudes.
        Returns:
        linele[][] array of line/element pairs. Where linele[indexLine][] is a line and linele[indexEle][] is an element. These are in 'file' coordinates (not "image" coordinates);
      • toLinEle

        public double[][] toLinEle(double[][] latlon)
        Description copied from class: AREAnav
        toLinEle converts lat/long to satellite line/element
        Specified by:
        toLinEle in class AREAnav
        Parameters:
        latlon - array of lat/long pairs. Where latlon[indexLat][] are latitudes and latlon[indexLon][] are longitudes.
        Returns:
        linele[][] array of line/element pairs. Where linele[indexLine][] is a line and linele[indexEle][] is an element. These are in 'file' coordinates (not "image" coordinates);
      • toLatLon

        public double[][] toLatLon(double[][] linele)
        Description copied from class: AREAnav
        converts from satellite coordinates to latitude/longitude
        Specified by:
        toLatLon in class AREAnav
        Parameters:
        linele - array of line/element pairs. Where linele[indexLine][] is a 'line' and linele[indexEle][] is an element. These are in 'file' coordinates (not "image" coordinates.)
        Returns:
        latlon[][] array of lat/long pairs. Output array is latlon[indexLat][] of latitudes and latlon[indexLon][] of longitudes.
      • main

        public static void main(java.lang.String[] args)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.