Deprecated API


Contents
Deprecated Classes
ucar.nc2.ft.point.writer.CFPointObWriter
          use WriterCFPointCollection 
thredds.catalog.InvDatasetFmrc
          use InvDatasetFeatureCollection (must replace datasetFmrc with featureCollection in the TDS config catalog) 
ucar.nc2.dt.trajectory.MultiTrajectoryObsDataset
          use ucar.nc2.ft.* 
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.dt.point.RecordDatasetHelper
          use ucar.nc2.ft.* 
ucar.nc2.dt.trajectory.SingleTrajectoryObsDataset
          use ucar.nc2.ft.* 
ucar.nc2.StructurePseudo
          use ucar.nc2.dataset.StructurePseudoDS 
ucar.nc2.dt.trajectory.TrajectoryObsDatasetFactory
          use ucar.nc2.dt.TypedDatasetFactory 
ucar.nc2.dt.trajectory.TrajectoryObsDatasetImpl
          use ucar.nc2.ft.* 
ucar.nc2.dt.TypedDatasetFactory
            
ucar.nc2.ft.point.standard.plug.UnidataPointFeature
            
ucar.nc2.dt.point.UnidataStationObsDataset2
          use UnidataStationObsDataset instead of this. 
ucar.nc2.ft.point.writer.WriterCFPointDataset
          use WriterCFPointCollection 
 

Deprecated Fields
thredds.catalog2.xml.names.DatasetElementNames.DatasetElement_DataType
          Use metadata/dataType element instead. 
thredds.catalog2.xml.names.DatasetElementNames.DatasetElement_ServiceName
          Use metadata/serviceName element instead. 
thredds.catalog2.xml.names.DatasetNodeElementNames.DatasetNodeElement_Authority
          Use metadata/authority 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.nc2.FileWriter.copyVarData(NetcdfFileWriteable, List, Structure, long)
            
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.dataset.CoordinateAxis1D.findCoordElement(double, int)
          use findCoordElement(coordVal) 
ucar.nc2.dt.grid.GridCoordSys.findTimeIndexFromDate(Date)
          use CoordinateAxis1DTime.findTimeIndexFromDate 
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.ma2.Array.getIndexIteratorFast()
          use getIndexIterator 
ucar.nc2.dt.grid.GridCoordSys.getLatLonBoundingBox(LatLonRect)
          use getRangesFromLatLonRect. 
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.GridCoordSys.getTimeIndex(String)
            
ucar.nc2.dt.grid.GridCoordSys.getTimeName(int)
            
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.iosp.grid.GridServiceProvider.setExtendIndex(boolean)
          use setIndexFileModeOnSync and setIndexFileModeOnOpen 
ucar.nc2.NetcdfFileWriteable.setName(String)
          use NetcdfFileWriteable.createNew(String filename); 
ucar.nc2.dataset.NetcdfDataset.setValues(Variable, int, double, double)
          use Variable.setValues() 
ucar.nc2.dataset.NetcdfDataset.setValues(Variable, List)
          use Variable.setValues() 
thredds.catalog.InvCatalogImpl.subset(InvDataset)
          in favor of thredds.catalog.util.DeepCopyUtils.subsetCatalogOnDataset 
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() 
thredds.catalog.InvDatasetImpl.writeHtmlDescription(StringBuilder, InvDatasetImpl, boolean, boolean, boolean, boolean)
          Instead use InvDatasetImpl.writeHtmlDescription(StringBuilder buff, InvDatasetImpl ds, boolean complete, boolean isServer, boolean datasetEvents, boolean catrefEvents, boolean resolveRelativeUrls) 
ucar.nc2.FileWriter.writeToFile(NetcdfFile, String, boolean, int)
            
ucar.nc2.FileWriter.writeToFile(NetcdfFile, String, boolean, int, boolean)
            
 

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) 
 



Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.