use (/ .. /) if this is not the desired result

From: <Tom.Gross_at_nyahnyahspammersnyahnyah>
Date: Thu, 30 Mar 2006 10:53:44 -0500

I am always messing up this sort of thing in NCL. The error messages
below are totally cryptic to me. Do you have any general comments about
what these things mean? Any help would be appreciated.
These are warning messages, and the output netcdf file I want actually
does get written. But what???

Code snippets:
;Make a bunch of netcdf variables for output
var_names3D = (/"tide_Ephase","tide_Eamp","tide_Cphase",\
                "tide_Cangle","tide_Cmin","tide_Cmax"/)
var_types3D = (/ "double", "double", "double", "double", "double",
"double" /)
filevardef( out, var_names3D, var_types3D, \
         (/ "tide_period", "eta_rho", "xi_rho" /) )

; Make a scratch array and zero it out
grd=out->tide_Ephase
grd=0.0

; Fill the scratch array and write it back out to pre-defined variable
; Cangle
print("Cangle")
nodevalues=intide->tide_Cangle
print("After nodevalues=")
do iperiod = 0,tide_period-1
  kperiod = periodpointer(iperiod)
  Fperiod = tidefacpointer(iperiod)
   do k = 0,node-1
     grd(iperiod,i_rho(k),j_rho(k))=nodevalues(k,kperiod)
  end do
end do
print("before out->")
out->tide_Cangle=grd

; Cmin
print("Cmin")

The output:::::::

(0) Cangle
(0) After nodevalues=
warning:VarVarWrite: Dimension names for dimension number (0) don't
match, assigning name of rhs dimension to lhs, use "(/../)" if this
change is not desired
warning:VarVarWrite: Dimension names for dimension number (1) don't
match, assigning name of rhs dimension to lhs, use "(/../)" if this
change is not desired
warning:Execute: Error occurred at or near line 160
 
(0) before out->
wwarning:Dimension names of left hand side and right hand side do not
match, overwriting dimension (tide_period), use (/ .. /) if this is not
the desired result
lncdimrename: ncid 5: String match to name in use
fatal:Could not change dimension (6) to (tide_period) for file (romsforcing)
warning:Dimension names of left hand side and right hand side do not
match, overwriting dimension (eta_rho), use (/ .. /) if this is not the
desired result
lncdimrename: ncid 5: String match to name in use
fatal:Could not change dimension (0) to (eta_rho) for file (romsforcing)
(0) Cmin
w
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 30 2006 - 08:53:44 MST

This archive was generated by hypermail 2.2.0 : Fri Mar 31 2006 - 10:32:42 MST