Codota Logo
NetcdfDataset.findAttribute
Code IndexAdd Codota to your IDE (free)

How to use
findAttribute
method
in
ucar.nc2.dataset.NetcdfDataset

Best Java code snippets using ucar.nc2.dataset.NetcdfDataset.findAttribute (Showing top 5 results out of 315)

  • Common ways to obtain NetcdfDataset
private void myMethod () {
NetcdfDataset n =
  • Codota IconString location;NetcdfDataset.openDataset(location)
  • Codota IconNetcdfFile ncfile;new NetcdfDataset(ncfile)
  • Codota Iconnew NetcdfDataset()
  • Smart code suggestions by Codota
}
origin: geotools/geotools

/**
 * Look for a SPATIAL_REF global attribute and parsing it (as WKT) to setup a {@link
 * CoordinateReferenceSystem}
 *
 * @param dataset
 * @return
 */
public static CoordinateReferenceSystem parseProjection(NetcdfDataset dataset) {
  Attribute attribute = dataset.findAttribute(NetCDFUtilities.SPATIAL_REF);
  return CRSParser.parseWKT(attribute);
}
origin: org.geotools/gt-netcdf

/**
 * Look for a SPATIAL_REF global attribute and parsing it (as WKT) to setup a {@link
 * CoordinateReferenceSystem}
 *
 * @param dataset
 * @return
 */
public static CoordinateReferenceSystem parseProjection(NetcdfDataset dataset) {
  Attribute attribute = dataset.findAttribute(NetCDFUtilities.SPATIAL_REF);
  return CRSParser.parseWKT(attribute);
}
origin: edu.ucar/netcdf

public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask) throws IOException {
 Attribute levelAtt = ds.findAttribute("/HDFEOS/ADDITIONAL/FILE_ATTRIBUTES/@ProcessLevel");
 if (levelAtt == null)  return;
 int level = levelAtt.getStringValue().startsWith("2") ? 2 : 3;
 Attribute time = ds.findAttribute("/HDFEOS/ADDITIONAL/FILE_ATTRIBUTES/@TAI93At0zOfGranule");
 if (level == 3) augmentDataset3(ds);
}
origin: edu.ucar/cdm

public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask) throws IOException {
 Attribute levelAtt = ds.findAttribute("/HDFEOS/ADDITIONAL/FILE_ATTRIBUTES/@ProcessLevel");
 if (levelAtt == null)  return;
 int level = levelAtt.getStringValue().startsWith("2") ? 2 : 3;
 //Attribute time = ds.findAttribute("/HDFEOS/ADDITIONAL/FILE_ATTRIBUTES/@TAI93At0zOfGranule");
 if (level == 3) augmentDataset3(ds);
}
origin: Unidata/thredds

public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask) throws IOException {
  final Attribute levelAtt = ds.findAttribute("/HDFEOS/ADDITIONAL/FILE_ATTRIBUTES/@ProcessLevel");
  if (levelAtt == null)  { return; }
  final int level = levelAtt.getStringValue().startsWith("2") ? 2 : 3;
  //Attribute time = ds.findAttribute("/HDFEOS/ADDITIONAL/FILE_ATTRIBUTES/@TAI93At0zOfGranule");
  if (level == 3) { augmentDataset3(ds); }
}
ucar.nc2.datasetNetcdfDatasetfindAttribute

Popular methods of NetcdfDataset

  • findVariable
  • openDataset
    Factory method for opening a dataset through the netCDF API, and identifying its coordinate variable
  • <init>
    Transform a NetcdfFile into a NetcdfDataset, optionally enhance it. You must not use the original Ne
  • getLocation
  • openFile
    Factory method for opening a NetcdfFile through the netCDF API.
  • close
    Close all resources (files, sockets, etc) associated with this dataset. If the underlying file was a
  • getVariables
  • acquireDataset
    Same as openDataset, but file is acquired through the File Cache. You must first call initNetcdfFile
  • findGlobalAttribute
  • findAttValueIgnoreCase
  • findCoordinateAxis
    Retrieve the CoordinateAxis with the specified Axis Type.
  • findDimension
  • findCoordinateAxis,
  • findDimension,
  • getCoordinateAxes,
  • getGlobalAttributes,
  • getCoordinateSystems,
  • finish,
  • getDefaultEnhanceMode,
  • getEnhanceAll,
  • getEnhanceMode,
  • getRootGroup

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
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