[Thread Prev][Thread Next][Index]

Re: [ferret_users] putting 1D variable into 2D (lat,depth) for using in objective analysis

Hi Pearse,

For your data, the arguments of scat2gridgauss_yz would just be the simple 1-D lists of data, and the result will be on your y-z grid defined by the axes yax and zax that you've defined.  The function allows for the 3rd argument to have more dimensions, for instance scattered locations all measured at a set of times, but it is fine for the first 3 arguments to all be 1-D.

You're treating longitude only as a mask, that is keeping longitudes in the range between 35 and 120 degrees east, correct?  So the result will not depend on longitude.

Since z is a depth, you should define your axis zax with /depth, that is positive values of depth increasing downwards.  You don't say what error you're running into.  What plot commands are you trying and what happens?


On 5/4/2018 8:03 AM, Pearse Buchanan wrote:

Hello all,


I’m trying to interpolate observations of NO3 using the function “scat2gridgauss_yz”.


I successfully read in my data, which is structured as 1D column data, which looks like so:


As you can see, I have 37,200 observations.


I now want to select my data from the Indian Ocean, where I eventually would like to do my interpolation using scat2gridgauss_yz.

Plotting the locations it seems like this has worked nicely.




However, the problem then arises when I want to use “scat2gridgauss_yz” to interpolate this data. My command is:

And when trying to plot the data, I have an error. This error is related (I think!) to the fact that my NO3 data is in a 1D form. That is, it doesn’t have y,z coordinates. Scat2gridgauss requires that the variable in the 3rd argument be of 2 dimensions. Specifically, it must relate to the 2 dimensions of the 1st and 2nd arguments, in this case Latitude and Depth.


My question, therefore, is how to place my 1D NO3 data onto 2 dimensions of the lat,depth coordinates.


Thanks all,



Pearse J. Buchanan

Institute for Marine and Antarctic Studies (IMAS), University of Tasmania


PhD Candidate / CSIRO-UTAS Quantitative Marine Science

ARC Centre of Excellence in Climate System Science – UTAS student representative


University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.

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

Privacy Policy | Disclaimer | Accessibility Statement