Class CFGridWriter2

    • Constructor Detail

      • CFGridWriter2

        public CFGridWriter2()
        Deprecated.
    • Method Detail

      • makeSizeEstimate

        public static long makeSizeEstimate​(GridDataset gds,
                                            List<String> gridList,
                                            LatLonRect llbb,
                                            ProjectionRect projRect,
                                            int horizStride,
                                            Range zRange,
                                            CalendarDateRange dateRange,
                                            int stride_time,
                                            boolean addLatLon)
                                     throws IOException,
                                            InvalidRangeException
        Deprecated.
        Compute the size of the file without writing
        Parameters:
        gds - the GridDataset
        gridList - the list of variables to be written, or null for all
        llbb - the lat/lon bounding box, or null for all
        projRect - the projection bounding box, or null for all
        horizStride - the x and y stride
        zRange - the z stride
        dateRange - date range, or null for all
        stride_time - the time stride
        addLatLon - add 2D lat/lon coordinates if needed
        Returns:
        total bytes written
        Throws:
        IOException
        InvalidRangeException
      • writeFile

        public static long writeFile​(GridDataset gds,
                                     List<String> gridList,
                                     LatLonRect llbb,
                                     ProjectionRect projRect,
                                     int horizStride,
                                     Range zRange,
                                     CalendarDateRange dateRange,
                                     int stride_time,
                                     boolean addLatLon,
                                     NetcdfFileWriter writer)
                              throws IOException,
                                     InvalidRangeException
        Deprecated.
        Write a netcdf/CF file from a GridDataset
        Parameters:
        gds - the GridDataset
        gridList - the list of variables to be written, or null for all
        llbb - the lat/lon bounding box, or null for all
        projRect - the projection bounding box, or null for all
        horizStride - the x and y stride
        zRange - the z stride
        dateRange - date range, or null for all
        stride_time - the time stride
        addLatLon - add 2D lat/lon coordinates if needed
        writer - this does the actual writing
        Returns:
        total bytes written
        Throws:
        IOException
        InvalidRangeException