Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variable transformed with indefinite limits returns wrong "shape" in immediate mode #1073

Closed
karlmsmith opened this issue Nov 23, 2017 · 3 comments

Comments

@karlmsmith
Copy link
Contributor

karlmsmith commented Nov 23, 2017

Reported by @AndrewWittenberg on 18 Feb 2011 22:51 UTC
The SHAPE option for immediate mode ought to return the actual shape of a variable, even for variables transformed via @ave, @min, @max, etc. with indefinite limits. Such transformations collapse the axis they're applied to, so that axis becomes "normal" to the result variable (this is in constrast to @sbx, @iin, etc. which don't collapse the axis).

E.g. the last of the commands below ought to return "YT".

        NOAA/PMEL TMAP
        FERRET v6.7 (beta)
        Linux rh5 (gfortran) 2.6.18-238.1.1.el5P - 02/16/11
        18-Feb-11 17:33     

yes? use coads_climatology
yes? say `sst,r=shape`
XYT
yes? say `sst[x=0:360`@ave`],r=shape`
YT
yes? say `sst[x=`@ave`],r=shape`
XYT

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1801

@karlmsmith
Copy link
Contributor Author

karlmsmith commented Nov 23, 2017

Modified by @AnsleyManke on 9 Mar 2011 00:29 UTC

@karlmsmith
Copy link
Contributor Author

karlmsmith commented Nov 23, 2017

Comment by @AndrewWittenberg on 26 Dec 2012 22:41 UTC
See also ticket 1977.

@karlmsmith
Copy link
Contributor Author

karlmsmith commented Nov 23, 2017

Comment by steven.c.hankin on 6 Jan 2013 17:53 UTC
see SVN [http://dunkel.pmel.noaa.gov/trac/ferret/log/ferret?rev=15312 15312]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant