Tabnine Logo
IOServiceProvider.readSection
Code IndexAdd Tabnine to your IDE (free)

How to use
readSection
method
in
ucar.nc2.iosp.IOServiceProvider

Best Java code snippets using ucar.nc2.iosp.IOServiceProvider.readSection (Showing top 3 results out of 315)

origin: Unidata/thredds

/**
 * Read a variable using the given section specification.
 * The result is always an array of the type of the innermost variable.
 * Its shape is the accumulation of all the shapes of its parent structures.
 *
 * @param variableSection the constraint expression.
 * @return data requested
 * @throws IOException           if error
 * @throws InvalidRangeException if variableSection is invalid
 * @see <a href="http://www.unidata.ucar.edu/software/netcdf-java/reference/SectionSpecification.html">SectionSpecification</a>
 */
public Array readSection(String variableSection) throws IOException, InvalidRangeException {
 /* if (unlocked)
  throw new IllegalStateException("File is unlocked - cannot use"); */
 ParsedSectionSpec cer = ParsedSectionSpec.parseVariableSection(this, variableSection);
 if (cer.child == null) {
  return cer.v.read(cer.section);
 }
 if (spi == null)
  return IospHelper.readSection(cer);
 else
  // allow iosp to optimize
  return spi.readSection(cer);
}
origin: edu.ucar/netcdf

/**
 * Read a variable using the given section specification.
 * The result is always an array of the type of the innermost variable.
 * Its shape is the accumulation of all the shapes of its parent structures.
 *
 * @param variableSection the constraint expression.
 * @return data requested
 * @throws IOException           if error
 * @throws InvalidRangeException if variableSection is invalid
 * @see <a href="http://www.unidata.ucar.edu/software/netcdf-java/reference/SectionSpecification.html">SectionSpecification</a>
 */
public Array readSection(String variableSection) throws IOException, InvalidRangeException {
 /* if (unlocked)
  throw new IllegalStateException("File is unlocked - cannot use"); */
 ParsedSectionSpec cer = ParsedSectionSpec.parseVariableSection(this, variableSection);
 if (cer.child == null) {
  Array result = cer.v.read(cer.section);
  result.setUnsigned(cer.v.isUnsigned());
  return result;
 }
 if (spi == null)
  return IospHelper.readSection(cer);
 else
  // allow iosp to optimize
  return spi.readSection(cer);
}
origin: edu.ucar/cdm

/**
 * Read a variable using the given section specification.
 * The result is always an array of the type of the innermost variable.
 * Its shape is the accumulation of all the shapes of its parent structures.
 *
 * @param variableSection the constraint expression.
 * @return data requested
 * @throws IOException           if error
 * @throws InvalidRangeException if variableSection is invalid
 * @see <a href="http://www.unidata.ucar.edu/software/netcdf-java/reference/SectionSpecification.html">SectionSpecification</a>
 */
public Array readSection(String variableSection) throws IOException, InvalidRangeException {
 /* if (unlocked)
  throw new IllegalStateException("File is unlocked - cannot use"); */
 ParsedSectionSpec cer = ParsedSectionSpec.parseVariableSection(this, variableSection);
 if (cer.child == null) {
  Array result = cer.v.read(cer.section);
  result.setUnsigned(cer.v.isUnsigned());
  return result;
 }
 if (spi == null)
  return IospHelper.readSection(cer);
 else
  // allow iosp to optimize
  return spi.readSection(cer);
}
ucar.nc2.iospIOServiceProviderreadSection

Javadoc

Allows reading sections of nested variables

Popular methods of IOServiceProvider

  • getFileTypeId
    Get a unique id for this file type.
  • close
    Close the file. It is the IOServiceProvider's job to close the file (even though it didnt open it),
  • getDetailInfo
    Show debug / underlying implementation details
  • getFileTypeDescription
    Get a human-readable description for this file type.
  • getFileTypeVersion
    Get the version of this file type.
  • getStructureIterator
    Get the structure iterator. iosps with top level sequences must override
  • isValidFile
    Check if this is a valid file for this IOServiceProvider. You must make this method thread safe, ie
  • open
    Open existing file, and populate ncfile with it. This method is only called by the NetcdfFile constr
  • readData
    Read data from a top level Variable and return a memory resident Array. This Array has the same elem
  • readToByteChannel
    Read data from a top level Variable and send data to a WritableByteChannel. Must be in big-endian or
  • readToOutputStream
  • sendIospMessage
    A way to communicate arbitrary information to an iosp.
  • readToOutputStream,
  • sendIospMessage,
  • syncExtend,
  • toStringDebug,
  • reacquire,
  • release

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now