[Thread Prev][Thread Next][Index]

[ferret_users] the role of comment/uncomment the command 'List'



hi, Ferreters,
 
It's a strange problem I got several times. Does the command 'List' impact on the later command?
 
I use model results in which Arawaka C-grid is used. Sometimes I have to regrid my results from density point to U or V point.  In the following script,  I get a variable 'tr', which is the volumn transport integrated from surface to density surface (36.21).  It's so tricky when I comment/uncomment 'list tr' ( the command before the last line).
 
IF don't execute 'list tr', then get the following error messages:
 
 **ERROR: illegal limits: X axis limits don't match variable def'n: TR
          Are you giving explicit limits when SET REGION would suffice ?
          list tr[x=-24]
          Command file, command group, or REPEAT execution aborted
 
IF execute 'list tr' before list tr[x=-24], then get
 
             LONGITUDE: 24W(-24)
             LATITUDE : 40.5S to 30.5S
             DEPTH (m): 0 to 5200
             TIME     : 16-JAN-1982 11:00
              17.396
 
I don't think the command 'List' can impact on the later results, but I can't explain this problem.
 
Dawn
 
 
 use model.cdf
 set reg/x=-62.5:-22.5/y=-40.5:-30.5
 let lev1 = 36.21
 let rho=rho_un(salt,temp,2000)-1000
 let mask= if rho le lev1 then 1
 let masku=mask[gx=u,x=-63:-22]; 
 let u_upper=u[x=-63:-22]*masku
 let masku=mask[gx=u,x=-63:-22];
 let tr=u_upper[y=@din,k=@din,l=1]*1e-6;
!----------Attention--------
 list tr
!-----------------------------
 list tr[x=-24]     ! only this number is what I really want.


Looking for last minute shopping deals? Find them fast with Yahoo! Search.
[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement