cdm/src/main/java/ucar/nc2/dataset/CoordSysBuilder.java
protected void assignCoordinateTransforms(NetcdfDataset ncDataset) {

    // look for explicit transform assignments on the coordinate systems
    for (VarProcess vp : varList) {
      if (vp.isCoordinateSystem && vp.coordTransforms != null) {
        StringTokenizer stoker = new StringTokenizer(vp.coordTransforms);
        while (stoker.hasMoreTokens()) {
          String vname = stoker.nextToken();
          VarProcess ap = findVarProcess(vname, vp);
          if (ap != null) {
            if (ap.ct != null) {
              vp.addCoordinateTransform(ap.ct);
              parseInfo.format(" assign explicit coordTransform %s to CoordSys= %s%n", ap.ct, vp.cs);
            } else {
              parseInfo.format("***Cant find coordTransform in %s referenced from var= %s%n", vname, vp.v.getFullName());
              userAdvice.format("***Cant find coordTransform in %s referenced from var= %s%n", vname, vp.v.getFullName());
            }
          } else {
            parseInfo.format("***Cant find coordTransform variable= %s referenced from var= %s%n", vname, vp.v.getFullName());
            userAdvice.format("***Cant find coordTransform variable= %s referenced from var= %s%n", vname, vp.v.getFullName());
          }
        }
      }
    }

    // look for explicit coordSys assignments on the coordinate transforms
    for (VarProcess vp : varList) {
      if (vp.isCoordinateTransform && (vp.ct != null) && (vp.coordSys != null)) {
        StringTokenizer stoker = new StringTokenizer(vp.coordSys);
        while (stoker.hasMoreTokens()) {
          String vname = stoker.nextToken();
          VarProcess vcs = findVarProcess(vname, vp);
          if (vcs == null) {
            parseInfo.format("***Cant find coordSystem variable= %s referenced from var= %s%n", vname, vp.v.getFullName());
            userAdvice.format("***Cant find coordSystem variable= %s referenced from var= %s%n", vname, vp.v.getFullName());
          } else {
            vcs.addCoordinateTransform(vp.ct);
            parseInfo.format("***assign explicit coordTransform %s to CoordSys=  %s%n", vp.ct, vp.cs);
          }
        }
      }
    }

    // look for coordAxes assignments on the coordinate transforms
    for (VarProcess vp : varList) {
      if (vp.isCoordinateTransform && (vp.ct != null) && (vp.coordAxes != null)) {
        List<CoordinateAxis> dataAxesList = vp.findCoordinateAxes(false);

        if (dataAxesList.size() > 0) {
          for (CoordinateSystem cs : ncDataset.getCoordinateSystems()) {
            if (cs.containsAxes(dataAxesList)) {
              cs.addCoordinateTransform(vp.ct);
              parseInfo.format("***assign (implicit coordAxes) coordTransform %s to CoordSys=  %s%n", vp.ct, cs);
            }
          }
        }
      }
    }

    // look for coordAxisType assignments on the coordinate transforms
    for (VarProcess vp : varList) {
      if (vp.isCoordinateTransform && (vp.ct != null) && (vp.coordAxisTypes != null)) {
        List<AxisType> axisTypesList = new ArrayList<>();
        StringTokenizer stoker = new StringTokenizer(vp.coordAxisTypes);
        while (stoker.hasMoreTokens()) {
          String name = stoker.nextToken();
          AxisType atype;
          if (null != (atype = AxisType.getType(name)))
            axisTypesList.add(atype);
        }
        if (axisTypesList.size() > 0) {
          for (CoordinateSystem cs : ncDataset.getCoordinateSystems()) {
            if (cs.containsAxisTypes(axisTypesList)) {
              cs.addCoordinateTransform(vp.ct);
              parseInfo.format("***assign (implicit coordAxisType) coordTransform %s to CoordSys=  %s%n", vp.ct, cs);
            }
          }
        }
      }
    }

  }
protected void assignCoordinateTransforms(NetcdfDataset ncDataset) {

    // look for explicit transform assignments on the coordinate systems
    for (VarProcess vp : varList) {
      if (vp.isCoordinateSystem && vp.coordTransforms != null) {
        StringTokenizer stoker = new StringTokenizer(vp.coordTransforms);
        while (stoker.hasMoreTokens()) {
          String vname = stoker.nextToken();
          VarProcess ap = findVarProcess(vname, vp);
          if (ap != null) {
            if (ap.ct != null) {
              vp.addCoordinateTransform(ap.ct);
              parseInfo.format(" assign explicit coordTransform %s to CoordSys= %s%n", ap.ct, vp.cs);
            } else {
              parseInfo.format("***Cant find coordTransform in %s referenced from var= %s%n", vname, vp.v.getFullName());
              userAdvice.format("***Cant find coordTransform in %s referenced from var= %s%n", vname, vp.v.getFullName());
            }
          } else {
            parseInfo.format("***Cant find coordTransform variable= %s referenced from var= %s%n", vname, vp.v.getFullName());
            userAdvice.format("***Cant find coordTransform variable= %s referenced from var= %s%n", vname, vp.v.getFullName());
          }
        }
      }
    }

    // look for explicit coordSys assignments on the coordinate transforms
    for (VarProcess vp : varList) {
      if (vp.isCoordinateTransform && (vp.ct != null) && (vp.coordSys != null)) {
        StringTokenizer stoker = new StringTokenizer(vp.coordSys);
        while (stoker.hasMoreTokens()) {
          String vname = stoker.nextToken();
          VarProcess vcs = findVarProcess(vname, vp);
          if (vcs == null) {
            parseInfo.format("***Cant find coordSystem variable= %s referenced from var= %s%n", vname, vp.v.getFullName());
            userAdvice.format("***Cant find coordSystem variable= %s referenced from var= %s%n", vname, vp.v.getFullName());
          } else {
            vcs.addCoordinateTransform(vp.ct);
            parseInfo.format("***assign explicit coordTransform %s to CoordSys=  %s%n", vp.ct, vp.cs);
          }
        }
      }
    }

    // look for coordAxes assignments on the coordinate transforms
    for (VarProcess vp : varList) {
      if (vp.isCoordinateTransform && (vp.ct != null) && (vp.coordAxes != null)) {
        List<CoordinateAxis> dataAxesList = vp.findCoordinateAxes(false);

        if (dataAxesList.size() > 0) {
          for (CoordinateSystem cs : ncDataset.getCoordinateSystems()) {
            if (cs.containsAxes(dataAxesList)) {
              cs.addCoordinateTransform(vp.ct);
              parseInfo.format("***assign (implicit coordAxes) coordTransform %s to CoordSys=  %s%n", vp.ct, cs);
            }
          }
        }
      }
    }

    // look for coordAxisType assignments on the coordinate transforms
    for (VarProcess vp : varList) {
      if (vp.isCoordinateTransform && (vp.ct != null) && (vp.coordAxisTypes != null)) {
        List<AxisType> axisTypesList = new ArrayList<>();
        StringTokenizer stoker = new StringTokenizer(vp.coordAxisTypes);
        while (stoker.hasMoreTokens()) {
          String name = stoker.nextToken();
          AxisType atype;
          if (null != (atype = AxisType.getType(name)))
            axisTypesList.add(atype);
        }
        if (axisTypesList.size() > 0) {
          for (CoordinateSystem cs : ncDataset.getCoordinateSystems()) {
            if (cs.containsAxisTypes(axisTypesList)) {
              cs.addCoordinateTransform(vp.ct);
              parseInfo.format("***assign (implicit coordAxisType) coordTransform %s to CoordSys=  %s%n", vp.ct, cs);
            }
          }
        }
      }
    }

  }
protected void assignCoordinateTransforms ( NetcdfDataset ncDataset ) { // look for explicit transform assignments on the coordinate systems
 for ( VarProcess vp : varList ) { if ( vp . isCoordinateSystem && vp . coordTransforms != null ) { StringTokenizer stoker = new StringTokenizer ( vp . coordTransforms ) ; while ( stoker . hasMoreTokens ( ) ) { String vname = stoker . nextToken ( ) ; VarProcess ap = findVarProcess ( vname , vp ) ; if ( ap != null ) { if ( ap . ct != null ) { vp . addCoordinateTransform ( ap . ct ) ; parseInfo . format ( " assign explicit coordTransform %s to CoordSys= %s%n" , ap . ct , vp . cs ) ; } else { parseInfo . format ( "***Cant find coordTransform in %s referenced from var= %s%n" , vname , vp . v . getFullName ( ) ) ; userAdvice . format ( "***Cant find coordTransform in %s referenced from var= %s%n" , vname , vp . v . getFullName ( ) ) ; } } else { parseInfo . format ( "***Cant find coordTransform variable= %s referenced from var= %s%n" , vname , vp . v . getFullName ( ) ) ; userAdvice . format ( "***Cant find coordTransform variable= %s referenced from var= %s%n" , vname , vp . v . getFullName ( ) ) ; } } } } // look for explicit coordSys assignments on the coordinate transforms
 for ( VarProcess vp : varList ) { if ( vp . isCoordinateTransform && ( vp . ct != null ) && ( vp . coordSys != null ) ) { StringTokenizer stoker = new StringTokenizer ( vp . coordSys ) ; while ( stoker . hasMoreTokens ( ) ) { String vname = stoker . nextToken ( ) ; VarProcess vcs = findVarProcess ( vname , vp ) ; if ( vcs == null ) { parseInfo . format ( "***Cant find coordSystem variable= %s referenced from var= %s%n" , vname , vp . v . getFullName ( ) ) ; userAdvice . format ( "***Cant find coordSystem variable= %s referenced from var= %s%n" , vname , vp . v . getFullName ( ) ) ; } else { vcs . addCoordinateTransform ( vp . ct ) ; parseInfo . format ( "***assign explicit coordTransform %s to CoordSys=  %s%n" , vp . ct , vp . cs ) ; } } } } // look for coordAxes assignments on the coordinate transforms
 for ( VarProcess vp : varList ) { if ( vp . isCoordinateTransform && ( vp . ct != null ) && ( vp . coordAxes != null ) ) { List < CoordinateAxis > dataAxesList = vp . findCoordinateAxes ( false ) ; if ( dataAxesList . size ( ) > 0 ) { for ( CoordinateSystem cs : ncDataset . getCoordinateSystems ( ) ) { if ( cs . containsAxes ( dataAxesList ) ) { cs . addCoordinateTransform ( vp . ct ) ; parseInfo . format ( "***assign (implicit coordAxes) coordTransform %s to CoordSys=  %s%n" , vp . ct , cs ) ; } } } } } // look for coordAxisType assignments on the coordinate transforms
 for ( VarProcess vp : varList ) { if ( vp . isCoordinateTransform && ( vp . ct != null ) && ( vp . coordAxisTypes != null ) ) { List < AxisType > axisTypesList = new ArrayList <> ( ) ; StringTokenizer stoker = new StringTokenizer ( vp . coordAxisTypes ) ; while ( stoker . hasMoreTokens ( ) ) { String name = stoker . nextToken ( ) ; AxisType atype ; if ( null != ( atype = AxisType . getType ( name ) ) ) axisTypesList . add ( atype ) ; } if ( axisTypesList . size ( ) > 0 ) { for ( CoordinateSystem cs : ncDataset . getCoordinateSystems ( ) ) { if ( cs . containsAxisTypes ( axisTypesList ) ) { cs . addCoordinateTransform ( vp . ct ) ; parseInfo . format ( "***assign (implicit coordAxisType) coordTransform %s to CoordSys=  %s%n" , vp . ct , cs ) ; } } } } } }
Assign CoordinateTransform objects to Coordinate Systems.

@param ncDataset why
Assign CoordinateTransform objects to Coordinate Systems .