|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.NetcdfFile
ucar.nc2.dods.DODSNetcdfFile
public class DODSNetcdfFile
Access to DODS datasets through the Netcdf API.
NetcdfFile| Field Summary | |
|---|---|
static boolean |
debugAttributes
|
static boolean |
debugCached
|
static boolean |
debugCE
|
static boolean |
debugCharArray
|
static boolean |
debugConstruct
|
static boolean |
debugConvertData
|
static boolean |
debugDataResult
|
static boolean |
debugOpenResult
|
static boolean |
debugServerCall
|
static boolean |
debugTime
|
static boolean |
showNCfile
|
| Fields inherited from class ucar.nc2.NetcdfFile |
|---|
addedRecordStructure, cacheName, cacheState, dimensions, gattributes, id, isClosed, location, rootGroup, spi, title, variables |
| Constructor Summary | |
|---|---|
DODSNetcdfFile(java.lang.String datasetURL)
Open a DODS file. |
|
DODSNetcdfFile(java.lang.String datasetURL,
CancelTask cancelTask)
Open a DODS file, allow user control over preloading string arrays and making structure data available through netcdf API. |
|
| Method Summary | |
|---|---|
static java.lang.String |
canonicalURL(java.lang.String urlName)
Create the canonical form of the URL. |
void |
close()
Close all resources (files, sockets, etc) associated with this file. |
static int |
convertToDODSType(DataType dataType,
boolean isUnsigned)
Get the DODS data class corresponding to the Netcdf data type. |
static DataType |
convertToNCType(opendap.dap.BaseType dtype)
Get the Netcdf data type corresponding to the DODS BaseType class. |
static DataType |
convertToNCType(int dodsDataType)
Get the Netcdf data type corresponding to the DODS data type. |
static java.lang.String |
getDODSshortName(Variable var)
|
static boolean |
isUnsigned(opendap.dap.BaseType dtype)
Get whether this is an unsigned type. |
static boolean |
isUnsigned(int dodsDataType)
Get whether this is an unsigned type. |
static void |
main(java.lang.String[] arg)
|
protected int[] |
makeShape(opendap.dap.DArray dodsArray)
|
java.util.List |
readArrays(java.util.List preloadVariables)
Make a single call to the DODS Server to read all the named variable's data in one client/server roundtrip. |
Array |
readData(Variable v,
java.util.List section)
do not call this directly, use Variable.read() !! |
Array |
readMemberData(Variable v,
java.util.List section,
boolean flatten)
do not call this directly, use Variable.readSection() !! |
Array |
readWithCE(Variable v,
java.lang.String CE)
|
static void |
setAllowCompression(boolean b)
Set whether to allow messages to be compressed. |
static void |
setAllowDeflate(boolean b)
Deprecated. use setAllowCompression |
static void |
setAllowSessions(boolean b)
Set whether to allow sessions by allowing cookies. |
static void |
setDebugFlags(DebugFlags debugFlag)
Debugging flags. |
java.lang.String |
toStringDebug()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean debugCE
public static boolean debugServerCall
public static boolean debugOpenResult
public static boolean debugDataResult
public static boolean debugCharArray
public static boolean debugConvertData
public static boolean debugConstruct
public static boolean debugTime
public static boolean showNCfile
public static boolean debugAttributes
public static boolean debugCached
| Constructor Detail |
|---|
public DODSNetcdfFile(java.lang.String datasetURL)
throws java.io.IOException
datasetURL - URL of the file. This should start with the protocol "dods:"
It may also start with protocol "http:".
java.io.IOException
java.net.MalformedURLException
public DODSNetcdfFile(java.lang.String datasetURL,
CancelTask cancelTask)
throws java.io.IOException
datasetURL - URL of the file. This should start with the protocol "dods:" or "http:".cancelTask - check if task is cancelled. may be null.
java.io.IOException
java.net.MalformedURLException| Method Detail |
|---|
public static void setAllowSessions(boolean b)
b - true or false. default is false.public static void setAllowDeflate(boolean b)
b - true or false.public static void setAllowCompression(boolean b)
b - true or false.public static void setDebugFlags(DebugFlags debugFlag)
debugFlag - public static java.lang.String canonicalURL(java.lang.String urlName)
urlName - the url string
public void close()
throws java.io.IOException
NetcdfFile
close in class NetcdfFilejava.io.IOException - if error closingprotected int[] makeShape(opendap.dap.DArray dodsArray)
public static java.lang.String getDODSshortName(Variable var)
public static int convertToDODSType(DataType dataType,
boolean isUnsigned)
dataType - Netcdf data type.
public static DataType convertToNCType(int dodsDataType)
dodsDataType - DODS type enum, from dods.dap.Attribute.XXXX.
isUnsigned(int)public static boolean isUnsigned(int dodsDataType)
dodsDataType - DODS type enum, from dods.dap.Attribute.XXXX.
public static DataType convertToNCType(opendap.dap.BaseType dtype)
dtype - DODS BaseType.
isUnsigned(int)public static boolean isUnsigned(opendap.dap.BaseType dtype)
dtype - DODS BaseType.
public java.util.List readArrays(java.util.List preloadVariables)
throws java.io.IOException
readArrays in class NetcdfFilepreloadVariables - list of type Variable
java.io.IOException
public Array readData(Variable v,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
NetcdfFile
readData in class NetcdfFilejava.io.IOException
InvalidRangeException
public Array readMemberData(Variable v,
java.util.List section,
boolean flatten)
throws java.io.IOException,
InvalidRangeException
NetcdfFile
readMemberData in class NetcdfFilejava.io.IOException
InvalidRangeException
public Array readWithCE(Variable v,
java.lang.String CE)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toStringDebug()
public static void main(java.lang.String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||