[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

970919: netCDF 3.3.1: integer problem on Alpha



Ralph,

>Date: Fri, 19 Sep 1997 09:20:00 +0200 (MET DST) 
>From: "Ralph J. Hangleiter" <address@hidden>
>Organization: ?
>To: Steve Emmerson <address@hidden>
>Subject: sample code for int problem 
>Keywords: 199709171555.JAA27855

In the above message, you wrote:

> I have written a small piece of code, following as good as I could what
> is happening in our application (makefile and source are attached to this
> mail). I hope it is readable - I haven't wrote the netcdf-part of our
> application, but am just looking into this problem now.

I got the stuff and it built OK.

> 
>    The problem occurs in the global-attributes. Instead of getting
> 
> // global attributes:
>                 :TEST_PIECE = "Small(?) testcode" ;
>                 :created_on = "DEC ALPHA OSF1 4.0b" ;
>                 :value1 = 1 ;
>                 :value2 = 2 ;
>                 :value3 = 2, 3, 4, 5, 6 ;
>                 :value4 = 2, 3, 4, 5, 6 ;
> which is what I get on our SUN Sparc workstation, on ALPHA I have
> // global attributes:
>                 :TEST_PIECE = "Small(?) testcode" ;
>                 :created_on = "DEC ALPHA OSF1 4.0b" ;
>                 :value1 = 16777216 ;
>                 :value2 = 33554432 ;
>                 :value3 = 33554432, 50331648, 67108864, 83886080,
> 100663296 ;
>                 :value4 = 33554432, 0, 50331648, 0, 67108864 ;
> 
> 
> When I create the netfile on the SUN and use the ALPHA-netdump, it says
>    ncdump: sample.net: Invalid dimension id or name
> Viceversa (netfile from ALPHA, ncdump from SUN) it's the same.
> 
> Thank you very much for your help.
> ralph hangleiter

I was unable to duplicate your problem on my Alpha.  Here's what I got:

    $ uname -a
    OSF1 ernie.unidata.ucar.edu V4.0 564 alpha
    ./sample
    NetCDF small piece of testcode
    Opening ncfile...
     Defining data_set...
       Attribut put: a = 1 and b[0]=2
     Done
     Putting values...
    Closing netcdf file
    $ ncdump sample.net
    netcdf sample {
    dimensions:
            DimA = 1 ;
            DimB = 5 ;
            DimC = 3 ;
            DimD = 2 ;
            DimE = 29 ;
    variables:
            int Var_a_scalar ;
            int Var_b_vector(DimB) ;
            int Var_c_matrix(DimC, DimD) ;
            char TEXT(DimE) ;

    // global attributes:
                    :TEST_PIECE = "Small(?) testcode" ;
                    :created_on = "DEC ALPHA OSF1 4.0b" ;
                    :value1 = 1 ;
                    :value2 = 2 ;
                    :value3 = 2, 3, 4, 5, 6 ;
                    :value4 = 2, 3, 4, 5, 6 ;
    data:

     Var_a_scalar = 1 ;

     Var_b_vector = 2, 3, 4, 5, 6 ;

     Var_c_matrix =
      0, 1,
      3, 4,
      6, 7 ;

     TEXT = "This is just a dummy string!" ;
    }

I used your makefile with its option settings modified to reflect the
location of our netCDF installation.

It appears that your Alpha differs from mine.  What kind do you have and
are you running it in an unusual mode?

--------
Steve Emmerson   <http://www.unidata.ucar.edu>