[Thread Prev][Thread Next][Index]

Re: [ferret_users] 1D data to 2D grid



Try RESHAPE:

let freqnew = reshape(freq,x[gx=xaxis+y[gy=yaxis])

BK

On 11 May 2011, at 9:53 AM, David Ogier wrote:

Hi there,

I'm sure this is possible but I can't seem to get it right.
I need to get some data from it's 1 dimensional format into 2 dimensions
The data is in the format below
name title I J K L
 FREQ     Frequency             1:16      ...       ...       ...

but I'm hoping to get it into something like

name title I J K L
  new   Frequency             1:4      1:4      ...       ...

so that I am able to plot it
What i've done so far is

define axis/x=1:4:1 xaxis
define axis/y=1:4:1 yaxis
define grid/x=xaxis/y=yaxis newgrid

let FREQnew = FREQ[gxy=newgrid] !this only does the first 4 values and does nothing for y

Any ideas?

Cheers

Dave Ogier

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William S. Kessler
NOAA / Pacific Marine Environmental Laboratory
7600 Sand Point Way NE
Seattle WA 98115 USA

william.s.kessler@xxxxxxxx
Tel: 206-526-6221
Fax: 206-526-6744
Web: http://www.pmel.noaa.gov/people/kessler



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

Privacy Policy | Disclaimer | Accessibility Statement