[Thread Prev][Thread Next][Index]

Re: [ferret_users] Regridding to retain K and L



Dear Kamoru Abiodun Lawal,

> I wish to regrid and at the same time want to maintain my K and L for the data below-------- 

>   let slon = xsequence(GLOBAL_LONGITUDE[i=28:63,j=11:40])  !...... Fit the domain here
>   let slat = xsequence(GLOBAL_LATITUDE[i=28:63,j=11:40])  
>   let PRECIP = xsequence(PR[i=28:63,j=11:40,k=1:1600,l=1:50])     !....... Change Variable to your desired variable here  

I suspect you shouldn't be using xsequence on PRECIP: it puts ALL data
on an x axis, where ferret probably expects precip(x,z,t) in this case.
You may be able to do it with the reshape() function.
You may have to make your slon and slat variables 3D as well:
something like

let mylon = slon + 0*z[gz=precip] + 0*t[gt=precip]

Let me know if you get this working, I would like to use it as well.
I use MATLAB myself for such cases: the griddata function is very
powerful.  It's a lot of work to write out netcdf data again, though.


Kind regards,

     Hein Zelle


-- 

Dr. Hein Zelle
Advisor Meteorology & Oceanography

Tel:        +31 (0)527-242299
Fax:        +31 (0)527-242016
E-mail:     hein.zelle@xxxxxxxxxxxxx
Website:    www.bmtargoss.com
	    
BMT ARGOSS b.v.

Voorsterweg 28, 8316 PT Marknesse, the Netherlands
Postal address: P.O. Box 61, 8325 ZH Vollenhove, the Netherlands

Registered in The Netherlands, Registered no. 39060160.

Unless otherwise agreed by BMT ARGOSS in writing, all work,
services, goods or products supplied by BMT ARGOSS shall be subject
to and governed by BMT ARGOSS' own terms and conditions which are
available for inspection from BMT ARGOSS on request.

----Confidentiality Notice & Disclaimer---- 

The contents of this e-mail and any attachments are intended for the
use of the mail addressee(s) shown. If you are not that person, you
are not allowed to read it, to take any action based upon it or to
copy it, forward, distribute or disclose the contents of it and you
should please delete it from your system. BMT ARGOSS does not accept
liability for any errors or omissions in the context of this e-mail or
its attachments which arise as a result of internet transmission, nor
accept liability for statements which are those of the author and
clearly not made on behalf of BMT ARGOSS.



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

Privacy Policy | Disclaimer | Accessibility Statement