Hello,
Can you please provide us with a small sample script
that illustrates the problem? Also, a sample data file?
Please ftp to
ftp ftp.cgd.ucar.edu
anonymous
Use your email address for the password
cd incoming
put your_ncl_script
put your_data_file(s)
quit
Send us an email with the following information:
* The names of the files after you have successfully completed the 
transfer. We cannot look at the ftp/incoming directory for security 
reasons.
THX
Tompkins Adrian wrote:
> hello all,
> 
> I am running NCL 5.0.0
> 
> I have a 2D array, cprmask(x,z), and want to rotate the contents of each
> x-slice to the right by "nshift" places with cyclic boundary conditions.
> 
> As nshift itself is a function of height, I resorted to a Do-Loop as
> follows:
> 
>     do i=0,nhgtr-1
>       nshift = round(hgtr(i)*tan_sza_dx,3)
>       index = mod(ispan(0,npts-1,1)+nshift,npts)
>       shiftmask(:,i) = cprmask(index,i)
>       delete(index)
>     end do
> 
> This works, BUT I suffer from a nasty memory leak problem that is not
> allowing be to run the program for large amounts of data, despite the
> fact that I also have a "delete(shiftmask)" statement later in the
> "mother" do loop.
> 
> does anyone have any ideas how to prevent the memory leak?
> 
> thanks,
> 
> Adrian
> 
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 30 2009 - 07:50:42 MDT
This archive was generated by hypermail 2.2.0 : Fri Jul 31 2009 - 14:51:03 MDT