Deprecated API


Contents
Deprecated Classes
thredds.catalog.InvDatasetFmrc
          use InvDatasetFeatureCollection (must replace datasetFmrc with featureCollection in the TDS config catalog) 
ucar.nc2.NCdump
          use NCdumpW, to handle Unicode correctly 
ucar.nc2.StructurePseudo
          use ucar.nc2.dataset.StructurePseudoDS 
ucar.nc2.dt.TypedDatasetFactory
            
 

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.dataset.CoordinateAxis1D.findCoordElement(double, int)
          use findCoordElement(coordVal) 
ucar.nc2.Dimension.getCoordinateVariables()
          - do not use 
thredds.catalog.InvCatalog.getDataset()
          use getDatasets() 
thredds.catalog.InvService.getFullName()
          services should always be at top level. 
ucar.ma2.Array.getIndexIteratorFast()
          use getIndexIterator 
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.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 
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); 
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)