|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.thredds.ThreddsDataFactory
public class ThreddsDataFactory
This tries to translate a THREDDS InvDataset into a data object that can be used, either a NetcdfDataset or a FeatureDataset.
As input, it can take
| Nested Class Summary | |
|---|---|
static class |
ThreddsDataFactory.Result
The result of trying to open a THREDDS dataset. |
| Constructor Summary | |
|---|---|
ThreddsDataFactory()
|
|
| Method Summary | |
|---|---|
static void |
annotate(InvDataset ds,
NetcdfDataset ncDataset)
Add information from the InvDataset to the NetcdfDataset. |
InvAccess |
chooseDatasetAccess(java.util.List<InvAccess> accessList)
Find the "best" access in case theres more than one, based on what the CDM knows how to open and use. |
NetcdfDataset |
openDataset(InvAccess access,
boolean acquire,
CancelTask task,
java.util.Formatter log)
Try to open invAccess as a NetcdfDataset. |
NetcdfDataset |
openDataset(InvDataset invDataset,
boolean acquire,
CancelTask task,
java.util.Formatter log)
Try to open as a NetcdfDataset. |
NetcdfDataset |
openDataset(java.lang.String location,
boolean acquire,
CancelTask task,
java.util.Formatter log)
Open a NetcdfDataset from a URL location string. |
ThreddsDataFactory.Result |
openFeatureDataset(FeatureType wantFeatureType,
java.lang.String urlString,
CancelTask task)
Open a FeatureDataset from a URL location string, and a desired type (may by NONE or null). |
ThreddsDataFactory.Result |
openFeatureDataset(InvAccess access,
CancelTask task)
Open a FeatureDataset from an InvAccess object. |
ThreddsDataFactory.Result |
openFeatureDataset(InvDataset invDataset,
CancelTask task)
Open a FeatureDataset from an InvDataset object, deciding on which InvAccess to use. |
ThreddsDataFactory.Result |
openFeatureDataset(java.lang.String urlString,
CancelTask task)
Open a FeatureDataset from a URL location string. |
static void |
setDebugFlags(DebugFlags debugFlag)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreddsDataFactory()
| Method Detail |
|---|
public static void setDebugFlags(DebugFlags debugFlag)
public ThreddsDataFactory.Result openFeatureDataset(java.lang.String urlString,
CancelTask task)
throws java.io.IOException
urlString - [thredds:]catalog.xml#datasetIdtask - may be null
java.io.IOException - on read error
public ThreddsDataFactory.Result openFeatureDataset(FeatureType wantFeatureType,
java.lang.String urlString,
CancelTask task)
throws java.io.IOException
wantFeatureType - desired feature type, may be NONE or nullurlString - [thredds:]catalog.xml#datasetIdtask - may be null
java.io.IOException - on read error
public ThreddsDataFactory.Result openFeatureDataset(InvDataset invDataset,
CancelTask task)
throws java.io.IOException
invDataset - use this to figure out what type, how to open, etctask - allow user to cancel; may be null
java.io.IOException - on read error
public ThreddsDataFactory.Result openFeatureDataset(InvAccess access,
CancelTask task)
throws java.io.IOException
access - use this InvAccess.task - may be null
java.io.IOException - on read error
public NetcdfDataset openDataset(java.lang.String location,
boolean acquire,
CancelTask task,
java.util.Formatter log)
throws java.io.IOException
location - catalog.xml#datasetId, may optionally start with "thredds:"task - may be nulllog - error messages gp here, may be nullacquire - if true, aquire the dataset, else open it
java.io.IOException - on read error
public NetcdfDataset openDataset(InvDataset invDataset,
boolean acquire,
CancelTask task,
java.util.Formatter log)
throws java.io.IOException
invDataset - open thisacquire - if true, aquire the dataset, else open ittask - may be nulllog - error message, may be null
java.io.IOException - on read error
public NetcdfDataset openDataset(InvAccess access,
boolean acquire,
CancelTask task,
java.util.Formatter log)
throws java.io.IOException
access - open this InvAccessacquire - if true, aquire the dataset, else open ittask - may be nulllog - error message, may be null
java.io.IOException - on read errorpublic InvAccess chooseDatasetAccess(java.util.List<InvAccess> accessList)
accessList - choose from this list.
public static void annotate(InvDataset ds,
NetcdfDataset ncDataset)
ds - get info from herencDataset - add to here
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||