Package ucar.nc2.dods
Class DodsNetcdfFiles
- java.lang.Object
-
- ucar.nc2.dods.DodsNetcdfFiles
-
public class DodsNetcdfFiles extends Object
Static utilities for opendap.
-
-
Constructor Summary
Constructors Constructor Description DodsNetcdfFiles()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcanonicalURL(String urlName)Create the canonical form of the URL.static intconvertToDODSType(ucar.ma2.DataType dataType)Get the DODS data class corresponding to the Netcdf data type.static ucar.ma2.DataTypeconvertToNCType(int dodsDataType, boolean isUnsigned)Get the Netcdf data type corresponding to the DODS data type.static ucar.ma2.DataTypeconvertToNCType(BaseType dtype, boolean isUnsigned)Get the Netcdf data type corresponding to the DODS BaseType class.static booleanisUnsigned(BaseType dtype)Get whether this is an unsigned type.static StringmakeDODSname(ucar.nc2.dods.DodsV dodsV)static StringmakeDODSName(String name)static StringmakeShortName(String name)static voidsetDebugFlags(ucar.nc2.util.DebugFlags debugFlag)Debugging
-
-
-
Method Detail
-
setDebugFlags
public static void setDebugFlags(ucar.nc2.util.DebugFlags debugFlag)
Debugging
-
canonicalURL
public static String canonicalURL(String urlName)
Create the canonical form of the URL. If the urlName starts with "http:" or "https:", change it to start with "dods:", otherwise leave it alone.- Parameters:
urlName- the url string- Returns:
- canonical form
-
makeDODSname
public static String makeDODSname(ucar.nc2.dods.DodsV dodsV)
-
convertToDODSType
public static int convertToDODSType(ucar.ma2.DataType dataType)
Get the DODS data class corresponding to the Netcdf data type. This is the inverse of convertToNCType().- Parameters:
dataType- Netcdf data type.- Returns:
- the corresponding DODS type enum, from opendap.dap.Attribute.XXXX.
-
convertToNCType
public static ucar.ma2.DataType convertToNCType(int dodsDataType, boolean isUnsigned)Get the Netcdf data type corresponding to the DODS data type. This is the inverse of convertToDODSType().- Parameters:
dodsDataType- DODS type enum, from dods.dap.Attribute.XXXX.- Returns:
- the corresponding netcdf DataType.
- See Also:
isUnsigned(opendap.dap.BaseType)
-
convertToNCType
public static ucar.ma2.DataType convertToNCType(BaseType dtype, boolean isUnsigned)
Get the Netcdf data type corresponding to the DODS BaseType class. This is the inverse of convertToDODSType().- Parameters:
dtype- DODS BaseType.- Returns:
- the corresponding netcdf DataType.
- See Also:
isUnsigned(opendap.dap.BaseType)
-
isUnsigned
public static boolean isUnsigned(BaseType dtype)
Get whether this is an unsigned type.- Parameters:
dtype- DODS BaseType.- Returns:
- true if unsigned
-
-