private CoordinateAxis makeLonCoordAxis(NetcdfDataset ds, String axisName, Dimension dim) {
    if (dim == null) return null;
    double dx = 4 * findAttributeDouble(ds, "DX");
    int nx = dim.getLength();
    double startx = centerX - dx * (nx - 1) / 2;

    CoordinateAxis v = new CoordinateAxis1D(ds, null, axisName, DataType.DOUBLE, dim.getShortName(), "degrees_east", "synthesized longitude coordinate");
    v.setValues(nx, startx, dx);
    v.addAttribute(new Attribute(_Coordinate.AxisType, "Lon"));
    if (!axisName.equals(dim.getShortName()))
      v.addAttribute(new Attribute(_Coordinate.AliasForDimension, dim.getShortName()));

    return v;
  }
private CoordinateAxis makeLonCoordAxis(NetcdfDataset ds, String axisName, Dimension dim) {
    if (dim == null) return null;
    double dx = 4 * findAttributeDouble(ds, "DX");
    int nx = dim.getLength();
    double startx = centerX - dx * (nx - 1) / 2;

    CoordinateAxis v = new CoordinateAxis1D(ds, null, axisName, DataType.DOUBLE, dim.getShortName(), "degrees_east", "synthesized longitude coordinate");
    v.setValues(nx, startx, dx);
    v.addAttribute(new Attribute(_Coordinate.AxisType, "Lon"));
    if (!axisName.equals(dim.getShortName()))
      v.addAttribute(new Attribute(_Coordinate.AliasForDimension, dim.getShortName()));

    return v;
  }
private CoordinateAxis makeLonCoordAxis ( NetcdfDataset ds , String axisName , Dimension dim ) { if ( dim == null ) return null ; double dx = 4 * findAttributeDouble ( ds , "DX" ) ; int nx = dim . getLength ( ) ; double startx = centerX - dx * ( nx - 1 ) / 2 ; CoordinateAxis v = new CoordinateAxis1D ( ds , null , axisName , DataType . DOUBLE , dim . getShortName ( ) , "degrees_east" , "synthesized longitude coordinate" ) ; v . setValues ( nx , startx , dx ) ; v . addAttribute ( new Attribute ( _Coordinate . AxisType , "Lon" ) ) ; if ( ! axisName . equals ( dim . getShortName ( ) ) ) v . addAttribute ( new Attribute ( _Coordinate . AliasForDimension , dim . getShortName ( ) ) ) ; return v ; }
////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////