Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: simple question

Hannes,

Here is an answer to your first question only.

The expected file size is calculated in a straightforward way. Assuming you are using NetCDF default types for real and integer, they are 4 bytes each. The file size is therefore:

    162 X
  x 76 Y
  x 10 years
  x 365.25 daily time steps per year
  x 4 variables
  x 4 bytes per datum
  = 720 Mbytes, approximately.

There is some file overhead, but it is negligible.

Therefore, 568 MB is too small, unless your program is crashing part way through, or your program is only partially filling the array for some other reason, or one of the factors above that I assumed is wrong. HTH.

--Dave A.
CDC/NOAA/CIRES

Hannes Isaak Reuter wrote:
Dear all,

just a silly simple question.... beeing still a newbie working with netcdf..
I create a nc file with dimensions x = 162 and y =  76
with a daily timestep for 10 years, 4 variables ( 1 real, 3 integer)
How large should such a file be....
because just by creating it grows up to 568 MB.
Is such size reasonable ? seems to be to large to me..

Second question
it is possible to open an netcdf file and write from several processes to it.. I know already that several processes can have read access to one file, with one process writing...

greetings

hannes


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690