public class GridVariable
extends java.lang.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
|
java.lang.String |
vname
variable name
|
Modifier | Constructor and Description |
---|---|
protected |
GridVariable(java.lang.String filename,
java.lang.String name,
GridHorizCoordSys hcs,
GridTableLookup lookup)
Create a new GridVariable
|
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraAttributes(GridParameter param,
Variable v) |
java.lang.String |
dump()
Dump this variable
|
boolean |
equals(java.lang.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
|
java.lang.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() |
java.lang.String |
makeIntervalName() |
java.lang.String |
makeLevelName(GridRecord gr,
GridTableLookup lookup)
Make the level name
|
protected java.lang.String |
makeLongName()
Make a long name for the variable
|
void |
showMissing(java.util.Formatter f)
Dump out the missing data
|
int |
showMissingSummary(java.util.Formatter f)
Dump out the missing data as a summary
|
void |
showRecord(int recnum,
java.util.Formatter f) |
java.lang.String |
toString() |
protected boolean |
trackRecords(int time,
int level,
GridRecord p,
RandomAccessFile raf,
boolean messSent) |
public java.lang.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(java.lang.String filename, java.lang.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, java.util.Formatter f)
public void showMissing(java.util.Formatter f)
f
- write to thispublic int showMissingSummary(java.util.Formatter f)
f
- write to thispublic GridRecord findRecord(int ens, int time, int level)
ens
- ensemble indextime
- time indexlevel
- level indexpublic boolean equals(java.lang.Object oo)
equals
in class java.lang.Object
oo
- object in questionpublic java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dump()
protected java.lang.String makeLongName()
public java.lang.String makeLevelName(GridRecord gr, GridTableLookup lookup)
gr
- grid recordlookup
- lookup tablepublic java.lang.String makeIntervalName()