[Thread Prev][Thread Next][Index]

Re: [ferret_users] Putting a pseudo-variable on the J axis



Pearse,

You'll have to use the form:

yes? DEFINE AXIS[/qualifiers] axis_name = expr ---- cf: ../../documentation/users-guide/commands-reference/DEFINE

In your case it would be something like: def ax/y/unit=meter AXNAME = y_metres (cf. script attached)

However our variable is not monotonic... Since it seems symetric around the middle values, you're probably willing to have a series of negative values followed by the positive ones...

Regards,

P.


On 08/03/2017 10:53 AM, Pearse Buchanan wrote:

Hi all,

I’ve manually defined a new variable like so:

let y_metres = {1.74779531E+05, 1.74779531E+05, 1.76507196E+05, 1.76507196E+05, 1.76854059E+05, 1.76854059E+05, 1.76975907E+05, 1.76975907E+05, 1.77031836E+05, 1.77031836E+05, 1.77061916E+05, 1.77061916E+05, 1.77079884E+05, 1.77079884E+05, 1.77091447E+05, 1.77091447E+05, 1.77099312E+05, 1.77099312E+05, 1.77104895E+05, 1.77104895E+05, 1.77108994E+05, 1.77108994E+05, 1.77112087E+05, 1.77112087E+05, 1.77114473E+05, 1.77114473E+05, 1.77116347E+05, 1.77116347E+05, 1.77117841E+05, 1.77117841E+05, 1.77119046E+05, 1.77119046E+05, 1.77120027E+05, 1.77120027E+05, 1.77120831E+05, 1.77120831E+05, 1.77121494E+05, 1.77121494E+05, 1.77122040E+05, 1.77122040E+05, 1.77122491E+05, 1.77122491E+05, 1.77122859E+05, 1.77122859E+05, 1.77123158E+05, 1.77123158E+05, 1.77123396E+05, 1.77123396E+05, 1.77123579E+05, 1.77123579E+05, 1.77123712E+05, 1.77123712E+05, 1.77123799E+05, 1.77123799E+05, 1.77123842E+05, 1.77123842E+05, 1.77123842E+05, 1.77123842E+05, 1.77123799E+05, 1.77123799E+05, 1.77123712E+05, 1.77123712E+05, 1.77123579E+05, 1.77123579E+05, 1.77123396E+05, 1.77123396E+05, 1.77123158E+05, 1.77123158E+05, 1.77122859E+05, 1.77122859E+05, 1.77122491E+05, 1.77122491E+05, 1.77122040E+05, 1.77122040E+05, 1.77121494E+05, 1.77121494E+05, 1.77120831E+05, 1.77120831E+05, 1.77120027E+05, 1.77120027E+05, 1.77119046E+05, 1.77119046E+05, 1.77117841E+05, 1.77117841E+05, 1.77116347E+05, 1.77116347E+05, 1.77114473E+05, 1.77114473E+05, 1.77112087E+05, 1.77112087E+05, 1.77108994E+05, 1.77108994E+05, 1.77104895E+05, 1.77104895E+05, 1.77099312E+05, 1.77099312E+05, 1.77091447E+05, 1.77091447E+05, 1.77079884E+05, 1.77079884E+05, 1.77061916E+05, 1.77061916E+05, 1.77031836E+05, 1.77031836E+05, 1.76975907E+05, 1.76975907E+05, 1.76854059E+05, 1.76854059E+05, 1.76507196E+05, 1.76507196E+05, 1.74779531E+05, 1.74779531E+05}

This new variable (y_metres) is automatically put on the I axis. I was wondering how I might specify it to be on the J axis.

I know this is probably very simple, but I’ve tried a few things and the solution isn’t immediately obvious.

Thanks,

Pearse

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.


let y_metres = {1.74779531E+05, 1.74779531E+05, 1.76507196E+05, 1.76507196E+05, 1.76854059E+05, 1.76854059E+05, 1.76975907E+05, 1.76975907E+05, 1.77031836E+05, 1.77031836E+05, 1.77061916E+05, 1.77061916E+05, 1.77079884E+05, 1.77079884E+05, 1.77091447E+05, 1.77091447E+05, 1.77099312E+05, 1.77099312E+05, 1.77104895E+05, 1.77104895E+05, 1.77108994E+05, 1.77108994E+05, 1.77112087E+05, 1.77112087E+05, 1.77114473E+05, 1.77114473E+05, 1.77116347E+05, 1.77116347E+05, 1.77117841E+05, 1.77117841E+05, 1.77119046E+05, 1.77119046E+05, 1.77120027E+05, 1.77120027E+05, 1.77120831E+05, 1.77120831E+05, 1.77121494E+05, 1.77121494E+05, 1.77122040E+05, 1.77122040E+05, 1.77122491E+05, 1.77122491E+05, 1.77122859E+05, 1.77122859E+05, 1.77123158E+05, 1.77123158E+05, 1.77123396E+05, 1.77123396E+05, 1.77123579E+05, 1.77123579E+05, 1.77123712E+05, 1.77123712E+05, 1.77123799E+05, 1.77123799E+05, 1.77123842E+05, 1.77123842E+05, 1.77123842E+05, 1.77123842E+05, 1.77123799E+05, 1.77123799E+05, 1.77123712E+05, 1.77123712E+05, 1.77123579E+05, 1.77123579E+05, 1.77123396E+05, 1.77123396E+05, 1.77123158E+05, 1.77123158E+05, 1.77122859E+05, 1.77122859E+05, 1.77122491E+05, 1.77122491E+05, 1.77122040E+05, 1.77122040E+05, 1.77121494E+05, 1.77121494E+05, 1.77120831E+05, 1.77120831E+05, 1.77120027E+05, 1.77120027E+05, 1.77119046E+05, 1.77119046E+05, 1.77117841E+05, 1.77117841E+05, 1.77116347E+05, 1.77116347E+05, 1.77114473E+05, 1.77114473E+05, 1.77112087E+05, 1.77112087E+05, 1.77108994E+05, 1.77108994E+05, 1.77104895E+05, 1.77104895E+05, 1.77099312E+05, 1.77099312E+05, 1.77091447E+05, 1.77091447E+05, 1.77079884E+05, 1.77079884E+05, 1.77061916E+05, 1.77061916E+05, 1.77031836E+05, 1.77031836E+05, 1.76975907E+05, 1.76975907E+05, 1.76854059E+05, 1.76854059E+05, 1.76507196E+05, 1.76507196E+05, 1.74779531E+05, 1.74779531E+05}
 
def ax/y/unit=meter ym = y_metres  !--- error: not monotonic, check with plot
plot y_metres
 
def ax/y/unit=meter ym = y_metres[i=1:58] !-- ok, but with repeated values
 
plot y[gy=ym]

[Thread Prev][Thread Next][Index]