[Thread Prev][Thread Next][Index]

Re: Plot Buffer error.



Hi Emanuele,

	Funny, but I just asked Steve Hankin the same question. The problem is
not the memory available to ferret (2160x1080 data points requires about 9Mb).
The problem is that the underlying plotting routines only allow you to plot
495000 points at one time. I don't know if there is a better fix, but when I
run across this problem I regrid the data. Your 2160x1080 data set is 2,332,800
points, or about 5 times the number of points allowed. You could regrid the
2160 points to 720 (1/3rd the points) and the 1080 axis to 540 (1/2 the
points), thus you are trying to plot 388,800 points. The method to do this is
the follows:

1) If you don't know the axis extremes of your data then:
   yes? use my_data
   yes? show grid/i=1 my_var
   yes? show grid/i=2160 my_var
   yes? show grid/j=1 my_var
   yes? show grid/j=1080 my_var
   (Let's say that the axis extremes are 0E:359.9E and 90S:90N for example's
   sake)

2) Define new grid:
   yes? define axis/x=0:359.9/npoints=720/units=longitude newx
   yes? define axis/y=-90:90/npoints=540/units=latitude newy
   yes? define grid/like=my_var/x=newx/y=newy newg

3) Now, you can plot your data:
   yes? contour my_var[g=newg]

Good Luck, Mark

-- 
-------------------------------------------------------------------------------

	      Mark Verschell (verschell@coaps.fsu.edu)
	      Center for Ocean and Atmospheric Prediction Studies
	      Florida State University
              2035 E. Paul Dirac Drive
              R.M. Johnson Bldg. - Suite 200
	      Tallahassee, FL  32310
	      (904) 644-6532              (904) 644-4841 (fax)


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / ERL / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement