[ncl-install] HDF5 and NC4 messages in NCL

Will Hobbs will.hobbs at utas.edu.au
Thu Apr 11 20:30:50 MDT 2019


Christina

There have been a number of posts about this issue, it seems to be that conda installs an older version of netcdf (4.62.) with this bug, instead of the latest version (4.6.3). You could fix it by somehow installing the latest version of netcdf4 into your conda environment, or installing NCL from binary like back in the good old days.

An alternative hack – which I in no way advocate or endorse, nor would I ever admit to using myself – is to invoke NCL in the following fashion:

ncl 2>dev/null …

You’ll still get NCL error/warning messages

Will

From: ncl-install <ncl-install-bounces at ucar.edu> on behalf of Christina Karamperidou via ncl-install <ncl-install at ucar.edu>
Reply-To: Christina Karamperidou <ckaramp at hawaii.edu>
Date: Friday, 12 April 2019 at 12:16 PM
To: "ncl-install at ucar.edu" <ncl-install at ucar.edu>
Subject: [ncl-install] HDF5 and NC4 messages in NCL

Hello NCL-install

I believe this may be an installation issue but I cannot trace it back to its source to make it stop.
NCL (version 6.6.2) prints a list of messages when I read datasets.
Examples:

f5      = addfile ("test.nc<http://test.nc>", "r")
NC4_open: path test.nc<http://test.nc> mode 4096 params 0
HDF5 error messages turned on.
nc4_open_file: path test.nc<http://test.nc> mode 4096
nc4_grp_list_add: name /
nc4_rec_read_metadata: grp->hdr.name<http://hdr.name> /
found dataset lon
found dataset lat
found dataset lev

When I exit NCL (after having read the dataset), I get the following (with many similar lines following):


ncl 1> exit
NC4_close: ncid 0x10000
nc4_close_hdf5_file: h5->path /test.nc<http:///test.nc> abort 0
nc4_rec_grp_HDF5_del: grp->name /
closing HDF5 dataset 360287970189639751
closing HDF5 dataset 360287970189639752
closing HDF5 dataset 360287970189639753
closing HDF5 dataset 360287970189639754
closing HDF5 dataset 360287970189639756




Is there a way to mute these warnings/notifications?
I tried uninstalling and reinstalling HDF5 and NCL via conda, but it didn’t help.
I do not get these messages outside the ncl_stable environment, where I run NCL version 6.2.1.


thank you,
Christina



University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20190412/b51979b6/attachment-0001.html>


More information about the ncl-install mailing list