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

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

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

origin: edu.ucar/cdm

/**
 * Write the geotiff Tag information to a String.
 */
public String showInfo() {
 StringWriter sw = new StringWriter(5000);
 showInfo(new PrintWriter(sw));
 return sw.toString();
}
origin: Unidata/thredds

/**
 * Write the geotiff Tag information to a String.
 */
public String showInfo() {
 StringWriter sw = new StringWriter(5000);
 showInfo(new PrintWriter(sw));
 return sw.toString();
}
origin: edu.ucar/netcdf

/**
 * Write the geotiff Tag information to a String.
 */
public String showInfo() {
 ByteArrayOutputStream bout = new ByteArrayOutputStream(10000);
 showInfo(new PrintStream(bout));
 return bout.toString();
}
origin: edu.ucar/netcdf

/**
 * test
 */
public static void main(String[] argv) {
 try {
  GeoTiff geotiff = new GeoTiff("/home/yuanho/tmp/ilatlon_float.tif");
  //GeoTiff geotiff = new GeoTiff("/home/yuanho/tmp/maxtemp.tif");
  //GeoTiff geotiff = new GeoTiff("/home/yuanho/tmp/test.tif");
  //GeoTiff geotiff = new GeoTiff("C:/data/geotiff/c41078a1.tif");
  //GeoTiff geotiff = new GeoTiff("C:/data/geotiff/L7ETMbands147.tif");
  //GeoTiff geotiff = new GeoTiff("data/blueTest.tiff");
  /*GeoTiff geotiff = new GeoTiff("data/testWrite.tiff");
  geotiff.addTag( new IFDEntry(Tag.SampleFormat, FieldType.SHORT, 3));
  geotiff.write();
  geotiff.close();
  geotiff = new GeoTiff("data/testWrite.tiff"); */
  geotiff.read();
  geotiff.showInfo(System.out);
  geotiff.testReadData();
  geotiff.close();
 } catch (Exception e) {
  e.printStackTrace();
 }
}
origin: Unidata/thredds

@Test
public void testRead() throws IOException {
 try (GeoTiff geotiff = new GeoTiff(filename)) {
  geotiff.read();
  StringWriter sw = new StringWriter();
  geotiff.showInfo(new PrintWriter(sw));
  logger.debug(sw.toString());
  IFDEntry tileOffsetTag = geotiff.findTag(Tag.TileOffsets);
  if (tileOffsetTag != null) {
   int tileOffset = tileOffsetTag.value[0];
   IFDEntry tileSizeTag = geotiff.findTag(Tag.TileByteCounts);
   int tileSize = tileSizeTag.value[0];
   logger.debug("tileOffset={} tileSize={}", tileOffset, tileSize);
  } else {
   IFDEntry stripOffsetTag = geotiff.findTag(Tag.StripOffsets);
   if (stripOffsetTag != null) {
    int stripOffset = stripOffsetTag.value[0];
    IFDEntry stripSizeTag = geotiff.findTag(Tag.StripByteCounts);
    if (stripSizeTag == null) throw new IllegalStateException();
    int stripSize = stripSizeTag.value[0];
    logger.debug("stripOffset={} stripSize={}", stripOffset, stripSize);
   }
  }
 }
}
origin: Unidata/thredds

 @Test
 public void testWrite() throws IOException {
  String fileOut = tempFolder.newFile().getAbsolutePath();

  try (GeoTiffWriter2 writer = new GeoTiffWriter2(fileOut)) {
   writer.writeGrid(filename, field, 0, 0, true, llbb);
  }

  // read it back in
  try (GeoTiff geotiff = new GeoTiff(fileOut)) {
   geotiff.read();
   System.out.println("geotiff read in = " + geotiff.showInfo());
   //geotiff.testReadData();
  }
 }
}
origin: edu.ucar/netcdf

 public static void main(String args[]) throws IOException {
  String fileOut = "/home/yuanho/Download/F15_s.tmp_new.tif";
  //String fileOut = "/home/yuanho/tmp/tmbF.tif";
  //LatLonPointImpl p1 = new LatLonPointImpl(38.0625, -80.6875);
  //LatLonPointImpl p2 = new LatLonPointImpl(47.8125, -67.0625);
  LatLonPointImpl p1 = new LatLonPointImpl(-5, -52.0);
  LatLonPointImpl p2 = new LatLonPointImpl(25, -20.0);
  LatLonRect llr = new LatLonRect(p1, p2);
  GeoTiffWriter2 writer = new GeoTiffWriter2(fileOut);
  //writer.writeGrid("radar.nc", "noice_wat", 0, 0, true);
  //writer.writeGrid("dods://www.cdc.noaa.gov/cgi-bin/nph-nc/Datasets/coads/2degree/enh/cldc.mean.nc?lat[40:1:50],lon[70:1:110],time[2370:1:2375],cldc[2370:1:2375][40:1:50][70:1:110]", "cldc", 0, 0,true);
  //writer.writeGrid("dods://www.cdc.noaa.gov/cgi-bin/nph-nc/Datasets/noaa.oisst.v2/sst.mnmean.nc", "sst", 0, 0,false);
  //writer.writeGrid("2003091116_ruc2.nc", "P_sfc", 0, 0, false);
  //writer.writeGrid("/home/yuanho/dev/netcdf-java/geotiff/2003072918_avn-x.nc", "P_sfc", 0, 0, false,llr);
  //writer.writeGrid("/home/yuanho/tmp/NE_1961-1990_Yearly_Max_Temp.nc", "tmax", 0, 0, false, llr);
  // writer.writeGrid("/home/yuanho/tmp/TMB.nc", "MBchla", 0, 0, false, llr);
  writer.writeGrid("/home/yuanho/GIS/DataAndCode/F15_s.tmp", "infraredImagery", 0, 0, true, llr);
  writer.close();

  // read it back in
  GeoTiff geotiff = new GeoTiff(fileOut);
  geotiff.read();
  System.out.println("geotiff read in = " + geotiff.showInfo());
  //geotiff.testReadData();
  geotiff.close();
 }
}
origin: Unidata/thredds

logger.debug("{}", geotiff.showInfo());
 logger.debug("{}", geotiff2.showInfo());
ucar.nc2.geotiffGeoTiffshowInfo

Javadoc

Write the geotiff Tag information to a String.

Popular methods of GeoTiff

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • PhpStorm for WordPress
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