[Thread Prev][Thread Next][Index]

Re: [ferret_users] Temp transect



Hi,

The problem is with the (z-1) in

    let zz=(z-1)*(bb)

z is a reserved name so it can't appear in expressions.  If you're wanting to work with the z coordinates of a variable, perhaps of the variable dep, you would first need to define a variable whose values are those coordinates.  Something like this:

   let zcoords = z[gz=dep]
   let zz=(zcoords-1)*(bb)



On 9/13/2017 10:01 AM, 'sarasari206@xxxxxxxxx' via _OAR PMEL Ferret Users wrote:
Hi,
I'm trying to plot a temp transects. 
I use:
مستانه:
transform zigma level to depth to plot vertical profiles:
(depth vs distanse)

let bb=dep+0*temp[l=1]
 show grid bb
 let zz=(z-1)*(bb)
 stat zz
 plot/i=12/j=40 zz
 def axis/z=0:-100:1/dep z100
 let znew=z[gz=z100]
 let tempdepth=zaxreplace(temp,zz,znew)
fill/l=10/x=855/vlimits=0:-100:5/lev=(20,26,0.5) tempdepth
list/x=550/y=350/z=0:60/l=1:19 temp
plot/x=550/y=400/l=10/line/color=1/vlimits=0:-100:5 tempdepth
 fill/l=.../j=.../vlimits=min depth:-max depth:interval  (repeat arbitrary name)
fill or contor/l=.../i=.../vlimits=0:-50 depth:interval  (repeat arbitrary name)


The problem is that the program is ok with the first "let" command, but complains about the rests...it shows:
ERROE:command syntax: let
Anyone knows why I get this error?
Thanks,
Sara



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement