congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
GeoTiff.readUShortValue
Code IndexAdd Tabnine to your IDE (free)

How to use
readUShortValue
method
in
ucar.nc2.geotiff.GeoTiff

Best Java code snippets using ucar.nc2.geotiff.GeoTiff.readUShortValue (Showing top 6 results out of 315)

origin: Unidata/thredds

private int readIntValue(ByteBuffer buffer, IFDEntry ifd) {
 switch (ifd.type.code) {
  case 1:
   return (int) buffer.get();
  case 2:
   return (int) buffer.get();
  case 3:
   return readUShortValue(buffer);
  case 4:
   return buffer.getInt();
  case 5:
   return buffer.getInt();
 }
 return 0;
}
origin: edu.ucar/cdm

private int readIntValue(ByteBuffer buffer, IFDEntry ifd) {
 switch (ifd.type.code) {
  case 1:
   return (int) buffer.get();
  case 2:
   return (int) buffer.get();
  case 3:
   return readUShortValue(buffer);
  case 4:
   return buffer.getInt();
  case 5:
   return buffer.getInt();
 }
 return 0;
}
origin: edu.ucar/netcdf

private int readIntValue(ByteBuffer buffer, IFDEntry ifd) {
 switch (ifd.type.code) {
  case 1:
   return (int) buffer.get();
  case 2:
   return (int) buffer.get();
  case 3:
   return readUShortValue(buffer);
  case 4:
   return buffer.getInt();
  case 5:
   return buffer.getInt();
 }
 return 0;
}
origin: edu.ucar/cdm

int code = readUShortValue(buffer);
Tag tag = Tag.get(code);
if (tag == null) tag = new Tag(code);
FieldType type = FieldType.get(readUShortValue(buffer));
int count = buffer.getInt();
origin: Unidata/thredds

int code = readUShortValue(buffer);
Tag tag = Tag.get(code);
if (tag == null) tag = new Tag(code);
FieldType type = FieldType.get(readUShortValue(buffer));
int count = buffer.getInt();
origin: edu.ucar/netcdf

private IFDEntry readIFDEntry(FileChannel channel, int start) throws IOException {
 if (debugRead) System.out.println("readIFDEntry starting position to " + start);
 channel.position(start);
 ByteBuffer buffer = ByteBuffer.allocate(12);
 buffer.order(byteOrder);
 channel.read(buffer);
 buffer.flip();
 if (showBytes) printBytes(System.out, "IFDEntry bytes", buffer, 12);
 IFDEntry ifd;
 buffer.position(0);
 int code = readUShortValue(buffer);
 Tag tag = Tag.get(code);
 if (tag == null) tag = new Tag(code);
 FieldType type = FieldType.get(readUShortValue(buffer));
 int count = buffer.getInt();
 ifd = new IFDEntry(tag, type, count);
 if (ifd.count * ifd.type.size <= 4) {
  readValues(buffer, ifd);
 } else {
  int offset = buffer.getInt();
  if (debugRead) System.out.println("position to " + offset);
  channel.position(offset);
  ByteBuffer vbuffer = ByteBuffer.allocate(ifd.count * ifd.type.size);
  vbuffer.order(byteOrder);
  channel.read(vbuffer);
  vbuffer.flip();
  readValues(vbuffer, ifd);
 }
 return ifd;
}
ucar.nc2.geotiffGeoTiffreadUShortValue

Popular methods of GeoTiff

  • <init>
    Constructor. Does not open or create the file.
  • findTag
  • showInfo
    Write the geotiff Tag information to out.
  • addGeoKey
  • addTag
  • close
    Close the Geotiff file.
  • init
  • initTags
  • parseGeoInfo
  • readHeader
  • readIFD
  • readIFDEntry
  • readIFD,
  • readIFDEntry,
  • readIntValue,
  • readSValue,
  • readValues,
  • setTransform,
  • writeData,
  • writeGeoKeys,
  • writeHeader

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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