[ncl-talk] hdf5 variable extraction error

David Brown dbrown at ucar.edu
Thu Apr 23 17:26:27 MDT 2015


Hi Matt,
This sounds like it may be a bug. Which version of NCL are you using?
There have been quite a few updates to the
advanced file structure code recently. If you are not using the latest
version (6.3.0) that may be the problem.

In any case, it would help if you can send us this file or tell us
where we can download it.
If you send the file look at the instructions at
http://www.ncl.ucar.edu/report_bug.shtml for where and how to upload
it. Let us know offline the name of the file after you have uploaded
it.
 -dave


On Thu, Apr 23, 2015 at 5:11 PM, Matt Masarik
<mattmasarik at boisestate.edu> wrote:
> Hi,
> I'm reading in some satellite data from an hdf5 file and am getting the
> following error when trying to extract a 2-D variable:
>
> fatal:_NclOneDValCoordDataCreate: Number of dimensions is greater than one,
> could not create coordinate data object
>
> I'm following the procedure on the Reading and Writing HDF5 page and am
> using these commands:
>
> ncl 0>  setfileoption("h5", "FileStructure", "Advanced")
> ncl 1>  fn = "smap.h5"
> ncl 2>  fi = addfile(fn, "r")
> ncl 3>  g = fi=>Sigma0_Data   ; also tried   g = fi=>/Sigma0_Data   not sure
> of the difference
> ncl 4> s = g->cell_sigma0_hh_aft
>
> It's on this step of trying to extract the variable (cell_sigma0_hh_aft)
> from the group handle (g) that I'm getting the error.
>
> Thanks in advance for any help,
> Matt
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list