Hey
I met the problem with "coordinate variable" when post processing CMAQ
output.
I want to get the daily maximum of ozone concentration.
My script is below
;************************************************
x = f->O3 ; (Time, bottom_top, south_north, west_east)
dims = getfilevardims(f,"O3")
printVarSummary(x)
print (dims)
;************************************************
; Get daily 1hr maximum
;************************************************
xMaxTime = dim_max( x(LAY|:, {ROW|:}, {COL|:},{TSTEP|:}) )
The output on the screen is
Variable: x
Type: float
Total Size: 1784832 bytes
446208 values
Number of Dimensions: 4
Dimensions and sizes: [TSTEP | 24] x [LAY | 1] x [ROW | 112] x [COL | 166]
Coordinates:
Number Of Attributes: 3
long_name : O3
units : ppmV
var_desc : Variable O3
Variable: dims
Type: string
Total Size: 16 bytes
4 values
Number of Dimensions: 1
Dimensions and sizes: [4]
Coordinates:
(0) TSTEP
(1) LAY
(2) ROW
(3) COL
fatal:Dimension (TSTEP) of (x) does not have an associated coordinate
variable
fatal:Execute: Error occurred at or near line 33
Any help will be greatly appreciated.
Xiaoming
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jan 11 2007 - 09:22:34 MST
This archive was generated by hypermail 2.2.0 : Thu Jan 11 2007 - 10:16:54 MST