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

CANCEL ATTRIBUTE/OUTPUT fails for pseudo-variable with explicit dataset number #1135

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

Comments

@karlmsmith
Copy link
Contributor

karlmsmith commented Nov 23, 2017

Reported by @AndrewWittenberg on 24 Jun 2011 22:48 UTC
CANCEL ATTRIBUTE/OUTPUT seems to have no effect on the NetCDF output for pseudovariables that refer to an explicit dataset number (which is often the case for pseudovariables).

In the following example, the output dataset b.nc still has the (ZAXLEVITR).point_spacing attribute, despite our telling Ferret to suppress it. And where did the extra (ZAXLEVITR).axis attribute come from?

        NOAA/PMEL TMAP
        FERRET v6.7  
        Linux rh5 (gfortran) 2.6.18-238.1.1.el5P - 05/06/11
        24-Jun-11 18:36     

yes? use levitus_climatology
yes? let a = temp[x=`@ave`,y=`@ave`]
yes? let b = temp[x=`@ave`,y=`@ave`,d=1]
yes? can att/output (`a,r=zaxis`).point_spacing
 !-> can att/output (ZAXLEVITR).point_spacing
yes? save/q/clob/file="a.nc"/bounds a
yes? sp ncdump -h a.nc | grep "ZAXLEVITR:"
                ZAXLEVITR:units = "METERS" ;
                ZAXLEVITR:positive = "down" ;
                ZAXLEVITR:bounds = "ZAXLEVITR_bnds" ;
yes? save/q/clob/file="b.nc"/bounds b
yes? sp ncdump -h b.nc | grep "ZAXLEVITR:"
                ZAXLEVITR:units = "METERS" ;
                ZAXLEVITR:positive = "down" ;
                ZAXLEVITR:point_spacing = "uneven" ;
                ZAXLEVITR:axis = "Z" ;
                ZAXLEVITR:bounds = "ZAXLEVITR_bnds" ;

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

@karlmsmith
Copy link
Contributor Author

karlmsmith commented Nov 23, 2017

Modified by @AnsleyManke on 21 Aug 2014 16:32 UTC

@karlmsmith
Copy link
Contributor Author

karlmsmith commented Nov 23, 2017

Comment by @AnsleyManke on 8 Sep 2014 17:50 UTC
fixed in cd_write_axis.F

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