@Deprecated public class ParsedSectionSpec extends Object
section specification := selector | selector '.' selector
selector := varName ['(' dims ')']
varName := ESCAPED_STRING
dims := dim | dim, dims
dim := ':' | slice | start ':' end | start ':' end ':' stride
slice := INTEGER
start := INTEGER
stride := INTEGER
end := INTEGER
ESCAPED_STRING : must escape characters = ".("
Nonterminals are in lower case, terminals are in upper case, literals are in single quotes.
Optional components are enclosed between square braces '[' and ']'.| Constructor and Description |
|---|
ParsedSectionSpec(Variable variable,
Section section)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Section |
getArraySection()
Deprecated.
|
ParsedSectionSpec |
getChild()
Deprecated.
|
Section |
getSection()
Deprecated.
use getArraySection()
|
Variable |
getVariable()
Deprecated.
|
static ParsedSectionSpec |
makeFromVariable(Variable v,
String selector)
Deprecated.
|
String |
makeSectionSpecString()
Deprecated.
|
static String |
makeSectionSpecString(Variable v,
List<Range> ranges)
Deprecated.
Make section specification String from a range list for a Variable.
|
static ParsedSectionSpec |
parseVariableSection(NetcdfFile ncfile,
String variableSection)
Deprecated.
Parse a section specification String.
|
String |
toString()
Deprecated.
|
public static ParsedSectionSpec parseVariableSection(NetcdfFile ncfile, String variableSection) throws InvalidRangeException
ncfile - look for variable in herevariableSection - the string to parse, eg "record(12).wind(1:20,:,3)"IllegalArgumentException - when token is misformed, or variable name doesnt exist in ncfileInvalidRangeException - if section does not match variable shapepublic static ParsedSectionSpec makeFromVariable(Variable v, String selector) throws InvalidRangeException
InvalidRangeExceptionpublic static String makeSectionSpecString(Variable v, List<Range> ranges)
v - for this Variable.ranges - list of Range. Must includes all parent structures. The list be null, meaning use all.
Individual ranges may be null, meaning all for that dimension.public Variable getVariable()
@Deprecated public Section getSection()
public Section getArraySection()
public ParsedSectionSpec getChild()
public String makeSectionSpecString()