Codota Logo
CoordinateAxis.getFullName
Code IndexAdd Codota to your IDE (free)

How to use
getFullName
method
in
ucar.nc2.dataset.CoordinateAxis

Best Java code snippets using ucar.nc2.dataset.CoordinateAxis.getFullName (Showing top 20 results out of 315)

  • Common ways to obtain CoordinateAxis
private void myMethod () {
CoordinateAxis c =
  • Codota IconGridCoordSystem gcs;gcs.getTimeAxis()
  • Codota IconGridCoordSystem gridCoordSystem;gridCoordSystem.getXHorizAxis()
  • Codota IconGridCoordSystem gridCoordSystem;gridCoordSystem.getYHorizAxis()
  • Smart code suggestions by Codota
}
origin: geotools/geotools

private String getTimeAttribute(CoordinateSystem cs) {
  CoordinateAxis timeAxis = cs.getTaxis();
  String name = timeAxis != null ? timeAxis.getFullName() : NetCDFUtilities.TIME_DIM;
  DimensionMapper dimensionMapper = reader.georeferencing.getDimensionMapper();
  String timeAttribute = dimensionMapper.getDimension(name.toUpperCase());
  if (timeAttribute == null) {
    // Fallback on standard name
    timeAttribute = dimensionMapper.getDimension(NetCDFUtilities.TIME_DIM);
  }
  return timeAttribute;
}
origin: geotools/geotools

final int axisDimensions = axis.getDimensions().size();
if (axisDimensions > 0 && axisDimensions < 3) {
  String axisName = axis.getFullName();
  if (axis.getAxisType() != null) {
    coordinates.put(axisName, CoordinateVariable.create(axis));
origin: geotools/geotools

for (CoordinateAxis axis : cs.getCoordinateAxes()) {
  String axisName = axis.getFullName();
  if (NetCDFUtilities.getIgnoredDimensions().contains(axisName)) {
    continue;
origin: geotools/geotools

for (CoordinateAxis axis : axesSorted) {
  index++;
  String fullName = axis.getFullName();
  if (NetCDFUtilities.getIgnoredDimensions().contains(fullName)) {
    ignoredDimensions.add(fullName);
origin: geotools/geotools

try {
  if (zAxis != null) {
    String axisName = zAxis.getFullName();
    if (!NetCDFCRSUtilities.VERTICAL_AXIS_NAMES.contains(axisName)) {
      return null;
origin: geotools/geotools

String axisName = coordinateAxis.getFullName();
try {
  String t_csName = "time_CS";
origin: Unidata/thredds

private int compareAxis(CoordinateAxis axis1, CoordinateAxis axis2) {
  if (axis1 == axis2)
    return 0;
  if (axis1 == null) return -1;
  if (axis2 == null) return 1;
  return axis1.getFullName().compareTo(axis2.getFullName());
}
origin: edu.ucar/netcdf

private int compareAxis(CoordinateAxis axis1, CoordinateAxis axis2) {
  if (axis1 == axis2)
    return 0;
  if (axis1 == null) return -1;
  if (axis2 == null) return 1;
  return axis1.getFullName().compareTo(axis2.getFullName());
}
origin: edu.ucar/cdm

private int compareAxis(CoordinateAxis axis1, CoordinateAxis axis2) {
  if (axis1 == axis2)
    return 0;
  if (axis1 == null) return -1;
  if (axis2 == null) return 1;
  return axis1.getFullName().compareTo(axis2.getFullName());
}
origin: edu.ucar/netcdf

/**
 * Do we have the named axis?
 * @param axisName (full unescaped) name of axis
 * @return true if we have an axis of that name
 */
 public boolean containsAxis(String axisName) {
 for (CoordinateAxis ca : coordAxes) {
  if (ca.getFullName().equals(axisName))
   return true;
 }
 return false;
 }
origin: Unidata/thredds

private void addCoordinateAxis(GridCoordSystem gcs, List<String> varNameList, List<Variable> varList, List<CoordinateAxis> axisList) {
 for (CoordinateAxis axis : gcs.getCoordinateAxes()) {
  if (!varNameList.contains(axis.getFullName())) {
   varNameList.add(axis.getFullName());
   varList.add(axis);                    // LOOK axis hasnt been subset yet !!
   axisList.add(axis);
   //if (timeAxis != null && timeAxis.isInterval()) {
   // LOOK gotta add the bounds  !!!
   //}
  }
 }
}
origin: Unidata/thredds

private void addCoordinateAxis(GridCoordSystem gcs, List<String> varNameList, List<Variable> varList, List<CoordinateAxis> axisList) {
 for (CoordinateAxis axis : gcs.getCoordinateAxes()) {
  if (!varNameList.contains(axis.getFullName())) {
   varNameList.add(axis.getFullName());
   varList.add(axis);
   axisList.add(axis);
   //if (timeAxis != null && timeAxis.isInterval()) {
   // LOOK gotta add the bounds  !!!
   //}
  }
 }
}
origin: edu.ucar/netcdf

private void addCoordinateAxis(GridCoordSystem gcs, List<String> varNameList, List<Variable> varList, List<CoordinateAxis> axisList) {
  for (CoordinateAxis axis : gcs.getCoordinateAxes()) {
    if (!varNameList.contains(axis.getFullName())) {
      varNameList.add(axis.getFullName());
      varList.add(axis);
      axisList.add(axis);
      //if (timeAxis != null && timeAxis.isInterval()) {
      // LOOK gotta add the bounds  !!!
      //}
    }
  }
}
origin: edu.ucar/cdm

private void addCoordinateAxis(GridCoordSystem gcs, List<String> varNameList, List<Variable> varList, List<CoordinateAxis> axisList) {
 for (CoordinateAxis axis : gcs.getCoordinateAxes()) {
  if (!varNameList.contains(axis.getFullName())) {
   varNameList.add(axis.getFullName());
   varList.add(axis);
   axisList.add(axis);
   //if (timeAxis != null && timeAxis.isInterval()) {
   // LOOK gotta add the bounds  !!!
   //}
  }
 }
}
origin: edu.ucar/cdm

/**
* Look for Axis by Type.
* @param ds look in this dataset's "Best" coordinate system.
* @param atype look for this type of CoordinateAxis. takes the first one it finds.
* @return the found CoordinateAxis name, or null if none
*/
static public String findCoordNameByType(NetcdfDataset ds, AxisType atype) {
 CoordinateAxis coordAxis = findCoordByType(ds, atype);
 return coordAxis == null ? null : coordAxis.getFullName();
}
origin: edu.ucar/cdm

/**
 * Do we have all the axes in the list?
 * @param wantAxes List of CoordinateAxis
 * @return true if all in our list.
 */
 public boolean containsAxes(List<CoordinateAxis> wantAxes) {
 for (CoordinateAxis ca : wantAxes) {
  if (!containsAxis(ca.getFullName()))
   return false;
 }
 return true;
 }
origin: edu.ucar/netcdf

/**
 * Do we have all the axes in the list?
 * @param wantAxes List of CoordinateAxis
 * @return true if all in our list.
 */
 public boolean containsAxes(List<CoordinateAxis> wantAxes) {
 for (CoordinateAxis ca : wantAxes) {
  if (!containsAxis(ca.getFullName()))
   return false;
 }
 return true;
 }
origin: edu.ucar/netcdf

/**
* Look for Axis by Type.
* @param ds look in this dataset's "Best" coordinate system.
* @param atype look for this type of CoordinateAxis. takes the first one it finds.
* @return the found CoordinateAxis name, or null if none
*/
static public String findCoordNameByType(NetcdfDataset ds, AxisType atype) {
 CoordinateAxis coordAxis = findCoordByType(ds, atype);
 return coordAxis == null ? null : coordAxis.getFullName();
}
origin: Unidata/thredds

/**
* search for Axis by Type.
* @param ds search in this dataset's "Best" coordinate system.
* @param atype search for this type of CoordinateAxis. takes the first one it finds.
* @return the found CoordinateAxis name, or null if none
*/
static public String findCoordNameByType(NetcdfDataset ds, AxisType atype) {
 CoordinateAxis coordAxis = findCoordByType(ds, atype);
 return coordAxis == null ? null : coordAxis.getFullName();
}
origin: edu.ucar/netcdf

private String makeCoordinatesAttribute(GridCoordSystem gcs, String timeDimName) {
 Formatter sb = new Formatter();
 if (gcs.getXHorizAxis() != null)
  sb.format("%s ", gcs.getXHorizAxis().getFullName());
 if (gcs.getYHorizAxis() != null)
  sb.format("%s ", gcs.getYHorizAxis().getFullName());
 if (gcs.getVerticalAxis() != null)
  sb.format("%s ", gcs.getVerticalAxis().getFullName());
 sb.format("%s ", timeDimName);
 return sb.toString();
}
ucar.nc2.datasetCoordinateAxisgetFullName

Popular methods of CoordinateAxis

  • getAxisType
    Get type of axis
  • getUnitsString
  • read
  • getPositive
    Get the direction of increasing values, used only for vertical Axes.
  • getShortName
  • getSize
  • getDimensions
  • equals
    Instances which have same content are equal.
  • findAttribute
  • getDimension
  • getMaxValue
    The largest coordinate value. Only call if isNumeric.
  • getMinValue
    The smallest coordinate value. Only call if isNumeric.
  • getMaxValue,
  • getMinValue,
  • getRank,
  • setAxisType,
  • getDataType,
  • getFullNameEscaped,
  • getNameAndDimensions,
  • getShape,
  • isNumeric

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • Path (java.nio.file)
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now