Deprecated API


Contents
Deprecated Classes
ucar.nc2.ncml.DirectoryScan
          use DatasetScanner 
ucar.nc2.iosp.Indexer
          use Layout 
ucar.nc2.NCdump
          use NCdumpW, to handle Unicode correctly 
ucar.nc2.dt.point.PointObsDatasetFactory
          use ucar.nc2.dt.TypedDatasetFactory 
ucar.nc2.dt.radial.RadialDatasetSweepFactory
          use ucar.nc2.dt.TypedDatasetFactory 
ucar.nc2.iosp.RegularIndexer
          use LayoutRegular 
ucar.nc2.iosp.RegularLayout
          use LayoutRegular 
ucar.nc2.iosp.RegularSectionLayout
          see LayoutTiled 
ucar.nc2.iosp.SegmentedLayout
          use LayoutSegmented 
ucar.nc2.iosp.SingleChunkIndexer
            
ucar.nc2.dt.trajectory.TrajectoryObsDatasetFactory
          use ucar.nc2.dt.TypedDatasetFactory 
ucar.nc2.dt.point.UnidataStationObsDataset2
          use UnidataStationObsDataset instead of this. 
 

Deprecated Fields
thredds.catalog2.xml.util.DatasetElementUtils.AUTHORITY_ATTRIBUTE_NAME
          Use metadata/authority element instead. 
thredds.catalog2.xml.util.DatasetElementUtils.DATA_TYPE_ATTRIBUTE_NAME
          Use metadata/dataType element instead. 
thredds.catalog2.xml.util.DatasetElementUtils.SERVICE_NAME_ATTRIBUTE_NAME
          Use metadata/serviceName element instead. 
 

Deprecated Methods
ucar.nc2.Dimension.addCoordinateVariable(Variable)
          - do not use 
thredds.catalog.InvService.addDatasetRoot(InvProperty)
          use InvCatalogImpl 
thredds.catalog.InvDatasetImpl.addService(InvService)
          put services in catalog 
ucar.nc2.NetcdfFileWriteable.addVariable(String, Class, Dimension[])
          use addVariable(String varName, DataType dataType, ArrayList dims); 
ucar.ma2.Range.appendShape(List, int)
          use Section.appendRange(int size) 
ucar.ma2.Range.checkInRange(List, int[])
          use Section.checkInRange(int shape[]) 
ucar.ma2.Range.computeSize(List)
          use Section.computeSize() 
ucar.ma2.Range.factory(int[])
          use Section(int[] shape) 
ucar.ma2.Range.factory(int[], int[])
          use Section(int[] origin, int[] shape) 
ucar.nc2.dt.grid.GridDataset.factory(String)
          : use GridDataset.open(). 
ucar.nc2.dt.grid.GridCoordSys.findXYCoordElement(double, double, int[])
          use findXYindexFromCoord 
ucar.units.SimpleCharStream.getColumn()
            
ucar.units.ASCII_CharStream.getColumn()
            
ucar.nc2.Dimension.getCoordinateVariables()
          - do not use 
thredds.catalog.InvCatalog.getDataset()
          use getDatasets() 
ucar.nc2.dt.grid.GeoGrid.getDataSlice(int, int, int, int)
          use readDataSlice 
thredds.catalog.InvService.getFullName()
          services should always be at top level. 
ucar.nc2.dt.grid.GridDataset.Gridset.getGeoCoordSys()
          use getGeoCoordSystem() if possible. 
ucar.nc2.dt.grid.GridCoordSys.getLatLonBoundingBox(LatLonRect)
          use getRangesFromLatRect. 
ucar.units.SimpleCharStream.getLine()
            
ucar.units.ASCII_CharStream.getLine()
            
ucar.nc2.Variable.getNameAndDimensions(StringBuffer)
          use getNameAndDimensions(StringBuilder buf) 
ucar.ma2.Range.getOrigin(List)
          use Section.getOrigin() 
ucar.ma2.Range.getShape(List)
          use Section.getShape() 
ucar.nc2.units.DateFormatter.getStandardDateOnlyString(Date)
          use toDateOnlyString 
ucar.nc2.units.DateFormatter.getStandardDateString(Date)
          use toDateTimeStringISO 
ucar.nc2.units.DateFormatter.getStandardDateString2(Date)
          use toDateTimeString 
ucar.nc2.dt.grid.GeoGrid.getUnitString()
          use getUnitsString() 
ucar.nc2.Variable.isUnknownLength()
          use isVariableLength() 
ucar.nc2.dataset.NetcdfDataset.makeArray(DataType, List)
          use Array#makeArray directly 
ucar.nc2.dataset.CoordSysBuilder.makeDummyTransformVariable(NetcdfDataset, CoordinateTransform)
          use CoordTransBuilder.makeDummyTransformVariable 
thredds.catalog.InvDatasetScan.makeLatestCatalogForDirectory(String, URI)
          Instead use makeProxyDsResolver() which provides more general proxy dataset handling. 
ucar.ma2.Range.makeSectionSpec(List)
          use Section.toString() 
ucar.ma2.Range.max()
          use last() 
ucar.ma2.Range.min()
          use first() 
ucar.nc2.dt.DataIterator.next()
          use nextData() 
ucar.ma2.Range.parseSpec(String)
          use new Section(String sectionSpec) 
ucar.nc2.NetcdfFile.read(String, boolean)
          use readSection(), flatten=false no longer supported 
thredds.catalog.InvDatasetImpl.removeService(InvService)
          put services in catalog 
ucar.nc2.dods.DODSNetcdfFile.setAllowDeflate(boolean)
          use setAllowCompression 
thredds.catalog.InvCatalogImpl.setDataset(InvDatasetImpl)
          Use addDataset() instead; datamodel now allows multiple top level datasets. 
ucar.ma2.Range.setDefaults(List, int[])
          use Section.setDefaults(int[] shape) 
ucar.nc2.NetcdfFileWriteable.setName(String)
          use NetcdfFileWriteable.createNew(String filename); 
ucar.unidata.geoloc.projection.Mercator.setOriginLat(double)
          not used, only here for XML Persistence 
ucar.unidata.geoloc.projection.LambertConformal.setParellelOne(double)
          use setParallelOne(double). Keep the mispelled name for persisted objects 
ucar.unidata.geoloc.projection.LambertConformal.setParellelTwo(double)
          use setParallelTwo(double). Keep the mispelled name for persisted objects 
ucar.ma2.Range.toArray(List)
          use Section.getRanges() 
ucar.nc2.units.DateFormatter.toDateString(Date)
          use toDateOnlyString 
ucar.ma2.Range.toList(Range[])
          use Section.getRanges() 
ucar.ma2.Range.toString(List)
          use Section.toString() 
 

Deprecated Constructors
ucar.nc2.NetcdfFile(String)
          use NetcdfFile.open( location) or NetcdfDataset.openFile( location) 
ucar.nc2.NetcdfFile(URL)
          use NetcdfFile.open( http:location) or NetcdfDataset.openFile( http:location) 
ucar.nc2.NetcdfFileWriteable()
          use createNew(String filename, boolean fill) 
ucar.nc2.NetcdfFileWriteable(String)
          use openExisting(String filename, boolean fill) 
ucar.nc2.NetcdfFileWriteable(String, boolean)
          use createNew(String filename, boolean fill)