edu.wisc.ssec.mcidasv.data
Class GeoDataToDisplayCoordinateSystem

java.lang.Object
  extended by visad.CoordinateSystem
      extended by edu.wisc.ssec.mcidasv.data.GeoDataToDisplayCoordinateSystem
All Implemented Interfaces:
Serializable

 class GeoDataToDisplayCoordinateSystem
extends CoordinateSystem


Field Summary
private  CoordinateSystem dataCS
           
private  CoordinateSystem displayCS
           
private  float eleHi
           
private  float eleLo
           
private  boolean isLL
           
private  float lineHi
           
private  float lineLo
           
private  MapProjectionDisplay mapProjDisp
           
private  double offsetX
           
private  double offsetY
           
private  double scaleX
           
private  double scaleY
           
 
Constructor Summary
GeoDataToDisplayCoordinateSystem(boolean isLL, CoordinateSystem dataCS, CoordinateSystem displayCS)
           
 
Method Summary
private  float[][] bypassFromReference(float[][] xyz)
          Transform display XYZ values to latitude/longitude/altitude
private  float[][] bypassToReference(float[][] xyz)
           
 boolean equals(Object obj)
           
 double[][] fromReference(double[][] values)
           
 float[][] fromReference(float[][] values)
           
 float[] getExtremes()
           
 void resetExtremes()
           
private  double[][] reverseArrayOrder(double[][] in)
           
private  float[][] reverseArrayOrder(float[][] in)
           
protected  void setDisplayMaster(DisplayMaster dspMaster)
           
 double[][] toReference(double[][] values)
           
 float[][] toReference(float[][] values)
           
 
Methods inherited from class visad.CoordinateSystem
canConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataCS

private CoordinateSystem dataCS

displayCS

private CoordinateSystem displayCS

isLL

private boolean isLL

mapProjDisp

private MapProjectionDisplay mapProjDisp

scaleX

private double scaleX

scaleY

private double scaleY

offsetX

private double offsetX

offsetY

private double offsetY

lineLo

private float lineLo

lineHi

private float lineHi

eleLo

private float eleLo

eleHi

private float eleHi
Constructor Detail

GeoDataToDisplayCoordinateSystem

GeoDataToDisplayCoordinateSystem(boolean isLL,
                                 CoordinateSystem dataCS,
                                 CoordinateSystem displayCS)
                           throws VisADException
Throws:
VisADException
Method Detail

setDisplayMaster

protected void setDisplayMaster(DisplayMaster dspMaster)

getExtremes

public float[] getExtremes()

resetExtremes

public void resetExtremes()

toReference

public float[][] toReference(float[][] values)
                      throws VisADException
Overrides:
toReference in class CoordinateSystem
Throws:
VisADException

bypassToReference

private float[][] bypassToReference(float[][] xyz)

fromReference

public float[][] fromReference(float[][] values)
                        throws VisADException
Overrides:
fromReference in class CoordinateSystem
Throws:
VisADException

bypassFromReference

private float[][] bypassFromReference(float[][] xyz)
                               throws VisADException
Transform display XYZ values to latitude/longitude/altitude

Parameters:
xyz - array of Display.DisplaySpatialCartesianTuple XYZ values
Returns:
array of display lat/lon/alt values.
Throws:
VisADException - can't create the necessary VisAD object

toReference

public double[][] toReference(double[][] values)
                       throws VisADException
Specified by:
toReference in class CoordinateSystem
Throws:
VisADException

fromReference

public double[][] fromReference(double[][] values)
                         throws VisADException
Specified by:
fromReference in class CoordinateSystem
Throws:
VisADException

equals

public boolean equals(Object obj)
Specified by:
equals in class CoordinateSystem

reverseArrayOrder

private double[][] reverseArrayOrder(double[][] in)

reverseArrayOrder

private float[][] reverseArrayOrder(float[][] in)