h5dump for a subset

Greetings

I'm new at HDF5 tools so please forgive me if I'm making a dumb question. Is it possible to use h5dump but dump to an ASCII file only a designated subset?

Thanks

Best regards
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4888 (20100222) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Hi,

Seems the end of h5dump documentation is what you want :

h5dump --help :

""""
  Examples:

  1) Attribute foo of the group /bar_none in file quux.h5

         h5dump -a /bar_none/foo quux.h5

  2) Selecting a subset from dataset /foo in file quux.h5

      h5dump -d /foo -s "0,1" -S "1,1" -c "2,3" -k "2,2" quux.h5

  3) Saving dataset 'dset' in file quux.h5 to binary file 'out.bin'
        using a little-endian type

      h5dump -d /dset -b LE -o out.bin quux.h5
""""

Regards,

Cyril.

Le 23/02/2010 11:00, Ant�nio Rocha a �crit :

···

Greetings

I'm new at HDF5 tools so please forgive me if I'm making a dumb
question. Is it possible to use h5dump but dump to an ASCII file only
a designated subset?

Thanks

Best regards
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4888 (20100222) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Below are the options for dumping a subset:
      -s START, --start=START Offset of start of subsetting selection
      -S STRIDE, --stride=STRIDE Hyperslab stride
      -c COUNT, --count=COUNT Number of blocks to include in selection
      -k BLOCK, --block=BLOCK Size of block in hyperslab

Most likely, you will only need two options,
   -s (starting location, and -c (number of elements in the subset)

Giraudon Cyril wrote:

···

Hi,

Seems the end of h5dump documentation is what you want :

h5dump --help :

""""
  Examples:

  1) Attribute foo of the group /bar_none in file quux.h5

         h5dump -a /bar_none/foo quux.h5

  2) Selecting a subset from dataset /foo in file quux.h5

      h5dump -d /foo -s "0,1" -S "1,1" -c "2,3" -k "2,2" quux.h5

  3) Saving dataset 'dset' in file quux.h5 to binary file 'out.bin'
        using a little-endian type

      h5dump -d /dset -b LE -o out.bin quux.h5
""""

Regards,

Cyril.

Le 23/02/2010 11:00, António Rocha a écrit :
  

Greetings

I'm new at HDF5 tools so please forgive me if I'm making a dumb
question. Is it possible to use h5dump but dump to an ASCII file only
a designated subset?

Thanks

Best regards
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4888 (20100222) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
    
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Thank you Cyril

Right after I sent the email I realized what was in the bottom :slight_smile:

Regarding h5dump -w flag: It's suppose to define output number of columns. If I define, for example 9, with the command:
h5dump -d /Q_FLAGS -y HDF5_DATA_LST_200202170100 >temp_file.ascii -w 9

I get:
      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Much more than 9 columns. What might not be ok?

Thanks

antonio

···

hdf-forum-request@hdfgroup.org wrote:

Send Hdf-forum mailing list submissions to
  hdf-forum@hdfgroup.org

To subscribe or unsubscribe via the World Wide Web, visit
  http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
or, via email, send a message with subject or body 'help' to
  hdf-forum-request@hdfgroup.org

You can reach the person managing the list at
  hdf-forum-owner@hdfgroup.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Hdf-forum digest..."

Today's Topics:

   1. h5dump for a subset (Ant?nio Rocha)
   2. Re: h5dump for a subset (Giraudon Cyril)
   3. [HDF5 1.8.4] h5tbget_field_info_f in fortran (Giraudon Cyril)
   4. Re: h5dump for a subset (Peter Cao)

----------------------------------------------------------------------

Message: 1
Date: Tue, 23 Feb 2010 10:00:14 +0000
From: Ant?nio Rocha <antonio.rocha@deimos.com.pt>
To: hdf-forum@hdfgroup.org
Subject: [Hdf-forum] h5dump for a subset
Message-ID: <4B83A72E.8080004@deimos.com.pt>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Greetings

I'm new at HDF5 tools so please forgive me if I'm making a dumb question. Is it possible to use h5dump but dump to an ASCII file only a designated subset?

Thanks

Best regards
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4888 (20100222) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

------------------------------

Message: 2
Date: Tue, 23 Feb 2010 11:14:29 +0100
From: Giraudon Cyril <cyril.giraudon@free.fr>
To: Mailing list for users to discuss HDF issues with each other
  <hdf-forum@hdfgroup.org>
Subject: Re: [Hdf-forum] h5dump for a subset
Message-ID: <4B83AA85.8090701@free.fr>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Seems the end of h5dump documentation is what you want :

h5dump --help :

""""
  Examples:

  1) Attribute foo of the group /bar_none in file quux.h5

         h5dump -a /bar_none/foo quux.h5

  2) Selecting a subset from dataset /foo in file quux.h5

      h5dump -d /foo -s "0,1" -S "1,1" -c "2,3" -k "2,2" quux.h5

  3) Saving dataset 'dset' in file quux.h5 to binary file 'out.bin'
        using a little-endian type

      h5dump -d /dset -b LE -o out.bin quux.h5
""""

Regards,

Cyril.

Le 23/02/2010 11:00, Ant?nio Rocha a ?crit :
  

Greetings

I'm new at HDF5 tools so please forgive me if I'm making a dumb
question. Is it possible to use h5dump but dump to an ASCII file only
a designated subset?

Thanks

Best regards
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4888 (20100222) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
    
------------------------------

Message: 3
Date: Tue, 23 Feb 2010 11:21:18 +0100
From: Giraudon Cyril <cyril.giraudon@free.fr>
To: hdf-forum@hdfgroup.org
Subject: [Hdf-forum] [HDF5 1.8.4] h5tbget_field_info_f in fortran
Message-ID: <4B83AC1E.1000004@free.fr>
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I'm trying to use the 'h5tbget_field_info_f' function (fortan code) but
I don't succeed.
In the source (hdf5-1.8.4/hl/fortran/test/tsttable.f90:386) the test is
commented out.

Is there an issue with this function ?

Regards,

Cyril.

Environment:
Linux Ubuntu 9.04
HDF5 1.8.4 compiled with gcc-4.3.3 & ifort 11.1

------------------------------

Message: 4
Date: Tue, 23 Feb 2010 08:09:36 -0600
From: Peter Cao <xcao@hdfgroup.org>
To: Mailing list for users to discuss HDF issues with each other
  <hdf-forum@hdfgroup.org>
Subject: Re: [Hdf-forum] h5dump for a subset
Message-ID: <4B83E1A0.8070801@hdfgroup.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Below are the options for dumping a subset:
      -s START, --start=START Offset of start of subsetting selection
      -S STRIDE, --stride=STRIDE Hyperslab stride
      -c COUNT, --count=COUNT Number of blocks to include in selection
      -k BLOCK, --block=BLOCK Size of block in hyperslab

Most likely, you will only need two options,
   -s (starting location, and -c (number of elements in the subset)

Giraudon Cyril wrote:
  

Hi,

Seems the end of h5dump documentation is what you want :

h5dump --help :

""""
  Examples:

  1) Attribute foo of the group /bar_none in file quux.h5

         h5dump -a /bar_none/foo quux.h5

  2) Selecting a subset from dataset /foo in file quux.h5

      h5dump -d /foo -s "0,1" -S "1,1" -c "2,3" -k "2,2" quux.h5

  3) Saving dataset 'dset' in file quux.h5 to binary file 'out.bin'
        using a little-endian type

      h5dump -d /dset -b LE -o out.bin quux.h5
""""

Regards,

Cyril.

Le 23/02/2010 11:00, Ant?nio Rocha a ?crit :
  

Greetings

I'm new at HDF5 tools so please forgive me if I'm making a dumb
question. Is it possible to use h5dump but dump to an ASCII file only
a designated subset?

Thanks

Best regards
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4888 (20100222) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
    

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

------------------------------

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

End of Hdf-forum Digest, Vol 8, Issue 27
****************************************

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4890 (20100223) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4890 (20100223) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com