FW: Need help with ctl for netcdf

P.R. romero619 at HOTMAIL.COM
Wed May 20 17:24:14 EDT 2009


Im re-posting this message, since I believe that it might been skipped.
Im still having trouble trying to open this particular netcdf file.
I don’t know how to setup a control file for it.
Again, here are the details of the file's contents:

#ncdump -h GEBCO_08.nc

netcdf GEBCO_08 {
dimensions:
        side = 2 ;
        xysize = 933120000 ;
variables:
        double x_range(side) ;
                x_range:units = "user_x_unit" ;
        double y_range(side) ;
                y_range:units = "user_y_unit" ;
        short z_range(side) ;
                z_range:units = "user_z_unit" ;
        double spacing(side) ;
        int dimension(side) ;
        short z(xysize) ;
                z:scale_factor = 1. ;
                z:add_offset = 0. ;
                z:node_offset = 1 ;

// global attributes:
                :title = "GEBCO_08 Grid" ;
                :source = "20090202" ;
}

This file contains bathymetric/elevation data in meters in the 'z' variable.
However, it doesn’t appear to have x&y variables, just the total x*y grid
size (933120000).
Here's a description of the grid from the file's documentation:

"
The complete data set gives global coverage.
It consists of 21,600 rows x 43,200 columns, resulting in 9,331,200,000 data
points.

The data start at position 89° 59’ 45’’N, 179° 59’ 45’’W and are arranged in
latitudinal bands of 360 degrees x 120 points/degree = 43,200 values.

The data range eastward from 179° 59’ 45’’W to 179° 59’ 45’’E.

Thus, the first band contains 43,200 values for 89° 59’ 45’’N, then followed
by a band of 43,200 values at 89°59’ 15’’N and so on at 30 arc-second
latitude intervals down to 89° 59’ 45’’S.
"

Please help,
P. Romero


-----Original Message-----
From: P.R. [mailto:romero619 at hotmail.com]
Sent: 2009-05-15 2:44 PM
To: 'GRADSUSR at LIST.CINECA.IT'
Subject: Need help with ctl for netcdf

I need help setting up the control file for a netcdf file.
The file has a strange variable & dimensions setup, so I couldn’t open it
automatically with sdfopen.
Here's an 'ncdump' of the netcdf header

#ncdump -h GEBCO_08.nc

netcdf GEBCO_08 {
dimensions:
        side = 2 ;
        xysize = 933120000 ;
variables:
        double x_range(side) ;
                x_range:units = "user_x_unit" ;
        double y_range(side) ;
                y_range:units = "user_y_unit" ;
        short z_range(side) ;
                z_range:units = "user_z_unit" ;
        double spacing(side) ;
        int dimension(side) ;
        short z(xysize) ;
                z:scale_factor = 1. ;
                z:add_offset = 0. ;
                z:node_offset = 1 ;

// global attributes:
                :title = "GEBCO_08 Grid" ;
                :source = "20090202" ;
}

This file contains bathymetric/elevation data in meters in the 'z' variable.
However, it doesn’t appear to have x&y variables, just the total x*y grid
size (933120000).
Here's a description of the grid from the file's documentation:

The complete data set gives global coverage.
It consists of 21,600 rows x 43,200 columns, resulting in 9,331,200,000 data
points.

The data start at position 89° 59’ 45’’N, 179° 59’ 45’’W and are arranged in
latitudinal bands of 360 degrees x 120 points/degree = 43,200 values.

The data range eastward from 179° 59’ 45’’W to 179° 59’ 45’’E.

Thus, the first band contains 43,200 values for 89° 59’ 45’’N, then followed
by a band of 43,200 values at 89°59’ 15’’N and so on at 30 arc-second
latitude intervals down to 89° 59’ 45’’S.

Could someone please help me figure out how to setup the control file for
this netcdf file?

Please help,
Thanks,
P.Romero



More information about the gradsusr mailing list