/** * Update the center point location * * @throws RemoteException Java RMI error * @throws VisADException VisAD error */ protected void updateCenterPoint() throws VisADException, RemoteException { GriddedSet domainSet = (GriddedSet) GridUtil.getSpatialDomain(getGridDataInstance().getGrid()); // Get location for label of control window Radar3DCoordinateSystem transform = (Radar3DCoordinateSystem) domainSet.getCoordinateSystem(); // get station location from the data coordinate transform float stationLat = (transform.getCenterPoint())[0]; float stationLon = (transform.getCenterPoint())[1]; float stationEl = (transform.getCenterPoint())[2]; List choices = getDataChoices(); String staname = ((DataChoice) choices.get(0)).getName(); // If this isn't satisfactory, then please implement a Misc or // DisplayConventions method that will take an EarthLocation and // return a nicely formatted string. initLinePosition(stationLat, stationLon); setCSLineLength(defaultLen); }