[Thread Prev][Thread Next][Index]

[ferret_users] @Sum Transformation: Feature (Or bug)?

Hi ferreters,

---------------- Forwarded Message ----------------
From: "Peter Szabo" <szabpet83@xxxxxxxxx>
Date: Wed, Sep 24, 2008 02:46 AM
Subject: Re: [ferret_users] @Sum Transformation: Feature (Or bug)?
To: "Roman Tonkonojenkov" <romantonk@xxxxxxx>

i tested your file and turned out that there is no problem with your data or ferret either. I experienced the same
if you enter after "let slat_sum = slat[i=@sum]"  or "let slat_sum = slat[j=@sum]" the command "fill slat_sum", ferret says
**ERROR: dimensions improperly specified: must be a 2D region
          CONTOUR/FILL slat_sum
SO it changed the dimensions. And works also the "plot" command and the "list slat_sum[j=80]" fine. But that must be a bug that ferret doesnt warn you when you "list slat_sum[i=30,j=80]" or enter "show grid slat_sum" and get the same dimensions as the original variable.

Cheers, Peter

On Mon, Sep 8, 2008 at 11:07 PM, Roman Tonkonojenkov <romantonk@xxxxxxx> wrote:
 Dear Ferret Users,
I have discovered that applying the @sum transformation to a variable doesn't change the dimension of the variable in some instances. Do you think this is a feature or a bug? Here is an example. I am using a file test.nc (attached) and here is what I get:

use test.nc
 *** NOTE: Ignored modulo length exceeding axis length: XT
yes? sh da
     currently SET data sets:
    1> ./test.nc  (default)
 name     title              &nb! sp;              I         J         K         L
 SLAT     sea level atmospheric temperatu  1:100     1:100     ...       1:1
yes? let slat_sum = slat[i=@sum]
yes? say `slat_sum, return = shape`
yes? list slat[i=30,j=80]
    &nbsp! ;        VARIABLE : sea level atmospheric temperature (K)
             FILENAME : test.nc
             LONGITUDE: 106.2E(106.2)
     !         LATITUDE : 53.1N & nbsp;           TIME     : 31-DEC-2609 22:12
yes? list slat_sum[i=30,j=80]
             VARIABLE : SLAT[I=@SUM]
             FILENAME : test.nc
             LONGITUDE: 104.4E to 108E
             LATITUDE : ! 53.1N
        &nbsp! ; & nbsp;  TIME     : 31-DEC-2609 22:12
yes? list slat_sum[j=80]
          !    VARIABLE : SLAT[I=@SUM]
             FILENAME : test.nc
             LONGITUDE: 0E(0) to 0E(360)
             LATITUDE : 53.1N
             TIME     : 31-DEC-2609 22:12

[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement