Re: Fwd: Problem reading HDF5 data

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 03 2013 - 17:27:50 MDT

[1] What version of NCL are you using?

%> ncl -V

[2] What OS?

%> uname -a

[3] Please ftp a sample file t

ftp ftp.cgd.ucar.edu
anonymous
email
cd incoming
put .....
quit

Please send an email to ncl-talk (only) when you have
completed the file transfer.

On 6/3/13 5:22 PM, Andrea Chini wrote:
> Hi,
>
> i'm trying to read data in HDF5 format with multiple groups .
>
> This is the first part of "ncdump $namefile.h5":
>
> netcdf \2013-05-03-13-00-00.itspc.PVOL.0 {
>
> // global attributes:
> :Conventions = "ODIM_H5/V2_0" ;
>
> group: dataset1 {
>
> group: data1 {
> dimensions:
> phony_dim_0 = 450 ;
> phony_dim_1 = 500 ;
> variables:
> ushort data(phony_dim_0, phony_dim_1) ;
> data: ......
>
> "
>
> When i try to read de data variable of the group "/dataset1/data1" i get
> segmentation fault.
>
> This is the code of my script:
>
> "load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
> begin
>
> f=addfile("20130503/2013-05-03-13-00-00.itspc.PVOL.0.h5","r")
>
> g= f=>dataset2/data1
>
> vel= g->data
>
> end"
>
> Is there something wrong in my script? How can I read the variables
> correctly?
>
> Thanks a lot.
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 3 17:27:55 2013

This archive was generated by hypermail 2.1.8 : Tue Jun 04 2013 - 09:50:17 MDT