Re: [netcdfgroup] nf90_char size

  • To: "netcdfgroup@xxxxxxxxxxxxxxxx" <netcdfgroup@xxxxxxxxxxxxxxxx>
  • Subject: Re: [netcdfgroup] nf90_char size
  • From: Aleksandar Jelenak <ajelenak@xxxxxxxxxxxx>
  • Date: Sat, 2 May 2020 17:22:14 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hdfgroup.org; dmarc=pass action=none header.from=hdfgroup.org; dkim=pass header.d=hdfgroup.org; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lS/P/cwrwBBESU2ThcBZ5LRLG4ayg2Qun8pLu380L/k=; b=n2LgqCTpJ1M0EIU7nMlxHL5184j7k/H0DTgJxLhy68FFqFkW2hXG6CpdraW57xwAMstlohSpLPvouzZpREYI6SiFOXSjxxctp5uXxUiVf2kU09fTZgWqJsWfVvOAAVXi1StA6ql+vlxT7vDWJWGeGWW9LkZOqQR7U9YTQGcEhJS0RiDLyezaMsuJ9YchDtRhR3XNUKEJmBBrAZ2CJ8GbmOR00rxiiVdRAhj6PgR48LrbVYRw1rOO5BKX9vhhZroCo/ckTLBZ15g894loGaoDsqIF0MFgrxpgEk2eFO96N+mH8Z4zQu3E8el1Uluz5kjwKbdlFkQL5FtK2gsV1M/PXQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gozJ0slSkV9WR1/NsKeByK0fdP5Ib9iFLgTQImIPe0BPqMXHL3R/4Af7+wDc6BCMxGsxOCpKMZkfbdWOBa2Dr1YPn1x/bziy0mBxl06Fpg/m4n68XqL5Fp+pDzS9Ss5CUmw+XPzKXVJVQs9LRZhrr+84mkHnWzY+jQSaNTfzsF4ULCOmdfbMiePSyoX8EtvkZYxeTmpWEDv2JcOWnYqw7b43vJ4skPXbAvQp57le7I2htd+n4qyHqXzfwGnpgi3QIRWX0RMbcLBwC5iOBB3pgo3sOqKTfY12tOsTgH/Xl9rzbWFan7436hvbueTwofHoxIgS+RzNtb2JiNXTNf74ZQ==
  • Authentication-results: unidata.ucar.edu; dkim=none (message not signed) header.d=none;unidata.ucar.edu; dmarc=none action=none header.from=hdfgroup.org;
Hi Davide,

> On May 2, 2020, at 1:06 PM, Wei-Keng Liao <wkliao@xxxxxxxxxxxxxxxx> wrote:
> 
> The dump information shows there are actually 8 datasets in the file.
> Below is the start offsets, sizes, and end offsets of individual datasets .
> There is not much padding space in between the datasets.
> According to this, your file is expected to be of size 16 GB.
> 
> dataset name                  start offset    size            end offset
> BS_K_linearized1              2,379           8,100,000,000   8,100,002,379
> BS_K_linearized2              12,150,006,475  3,127,549,440   15,277,555,915

Thanks Wei-kang for preparing this useful information.

These two are netCDF dimensions which in HDF5 (netCDF-4) files are stored as 
HDF5 datasets. The above information indicate these HDF5 datasets are taking up 
file space although they should not have any actual data. The netCDF library 
only needs a specific value in the NAME attribute of these datasets. I, too, 
suggest creating your files with the latest version of the netCDF library as it 
may improve what kind of create dataset information it passes to the HDF5 
library.

        -Aleksandar

  • 2020 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: