Class GeotiffWriter

    • Field Detail

      • geotiff

        protected GeoTiff geotiff
      • pageNumber

        protected short pageNumber
    • Constructor Detail

      • GeotiffWriter

        public GeotiffWriter​(String fileOut)
        Constructor
        Parameters:
        fileOut - name of output file.
    • Method Detail

      • writeGrid

        public void writeGrid​(ucar.nc2.dt.GridDataset dataset,
                              ucar.nc2.dt.GridDatatype grid,
                              ucar.ma2.Array data,
                              boolean greyScale)
                       throws IOException
        Write GridDatatype data to the geotiff file.
        Parameters:
        dataset - grid in contained in this dataset
        grid - data is in this grid
        data - 2D array in YX order
        greyScale - if true, write greyScale image, else dataSample.
        Throws:
        IOException - on i/o error
      • writeGrid

        public void writeGrid​(ucar.nc2.ft2.coverage.GeoReferencedArray array,
                              boolean greyScale)
                       throws IOException
        Write GridCoverage data to the geotiff file.
        Parameters:
        array - GeoReferencedArray array in YX order
        greyScale - if true, write greyScale image, else dataSample.
        Throws:
        IOException - on i/o error