public class GridVariable extends Object
Modifier and Type | Field and Description |
---|---|
protected GridEnsembleCoord |
ecs
ensemble coord system
|
protected GridRecord |
firstRecord
first grid record
|
protected GridTableLookup |
lookup
lookup table
|
protected int |
nlevels
number of levels
|
protected int |
ntimes
number of times
|
protected GridRecord[] |
recordTracker
record tracker
|
protected GridTimeCoord |
tcs
time coord system
|
protected GridVertCoord |
vc
vertical coordinate
|
String |
vname
variable name
|
Modifier | Constructor and Description |
---|---|
protected |
GridVariable(String filename,
String name,
GridHorizCoordSys hcs,
GridTableLookup lookup)
Create a new GridVariable
|
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraAttributes(GridParameter param,
Variable v) |
String |
dump()
Dump this variable
|
boolean |
equals(Object oo)
Check for equality
|
GridRecord |
findRecord(int ens,
int time,
int level)
Find the grid record for the time and level indices
Canonical ordering is ens, time, level
|
String |
getName()
Get the name
|
int |
getNEnsembles()
Get the number of Ensemble
|
protected int |
getVertIndex(GridRecord p)
Get the index in the vertical for the particular grid
|
int |
hashCode()
Override Object.hashCode() to implement equals.
|
protected boolean |
isEnsemble() |
String |
makeIntervalName() |
String |
makeLevelName(GridRecord gr,
GridTableLookup lookup)
Make the level name
|
protected String |
makeLongName()
Make a long name for the variable
|
void |
showMissing(Formatter f)
Dump out the missing data
|
int |
showMissingSummary(Formatter f)
Dump out the missing data as a summary
|
void |
showRecord(int recnum,
Formatter f) |
String |
toString() |
protected boolean |
trackRecords(int time,
int level,
GridRecord p,
RandomAccessFile raf,
boolean messSent) |
public String vname
protected GridRecord firstRecord
protected GridTableLookup lookup
protected GridTimeCoord tcs
protected GridEnsembleCoord ecs
protected GridVertCoord vc
protected int nlevels
protected int ntimes
protected GridRecord[] recordTracker
protected GridVariable(String filename, String name, GridHorizCoordSys hcs, GridTableLookup lookup)
name
- name with levelhcs
- horizontal coordinate systemlookup
- lookup tablepublic int getNEnsembles()
protected boolean isEnsemble()
protected int getVertIndex(GridRecord p)
p
- grid to checkprotected void addExtraAttributes(GridParameter param, Variable v)
protected boolean trackRecords(int time, int level, GridRecord p, RandomAccessFile raf, boolean messSent)
public void showRecord(int recnum, Formatter f)
public void showMissing(Formatter f)
f
- write to thispublic int showMissingSummary(Formatter f)
f
- write to thispublic GridRecord findRecord(int ens, int time, int level)
ens
- ensemble indextime
- time indexlevel
- level indexpublic boolean equals(Object oo)
public String getName()
public int hashCode()
public String dump()
protected String makeLongName()
public String makeLevelName(GridRecord gr, GridTableLookup lookup)
gr
- grid recordlookup
- lookup tablepublic String makeIntervalName()
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.