[Thread Prev][Thread Next][Index]

[ferret_users] Variable Unknown Problem



Hi All,

I am trying to execute some code (see at bottom) to regrid data that is on a sigma vertical axis onto a grid that is on a depth coordinate and am getting the error:

**ERROR: variable unknown or not in data set: DEPTHVALUES[X=@MIN,Y=@MIN,Z=@MIN,T=@MIN] cancel region/z let sig = z[gz=u] let depthValues = sig * ( depth + zeta ) LET zmin = `depthValues[x=@min,y=@min,z=@min,t=@min]` LET zmax = `depthValues[x=@max,y=@max,z=@max,t=@max]` define axis/z=`zmin`:`zmax`:10/units=meters/depth zdepth let var1OnDepth = zaxreplace(u,depthValues,z[gz=zdepth]) let var1IsOnZ = "true" Command file, command group, or REPEAT execution aborted .

Any suggestions why Ferret doesn't recognize DEPTHVALUES?

Regards,

John

IF `strcmp("($theVar1)", "XX") ne 0.0`  THEN \
   (if `strcmp("($3)","temp") eq 0.0 or strcmp("($3)","salt") eq 0.0 or strcmp("($3)","u") eq 0.0 or strcmp("($3)","v") eq 0.0` then \
      cancel region/z \
      let sig = z[gz=$3] \
      let depthValues = sig * ( depth + zeta ) \
      LET zmin = `depthValues[x=@min,y=@min,z=@min,t=@min]` \
      LET zmax = `depthValues[x=@max,y=@max,z=@max,t=@max]` \
      define axis/z=`zmin`:`zmax`:10/units=meters/depth zdepth \
      let var1OnDepth = zaxreplace($3,depthValues,z[gz=zdepth]) \
      let var1IsOnZ = "true" \
   else \
      let var1IsOnZ = "false" \
   endif) \
endif


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement