[ncl-talk] ncclose: ncid 131072: NetCDF: Can't open HDF5 attribute

Ehsan Taghizadeh ehsantaghizadeh at yahoo.com
Wed Aug 22 23:30:38 MDT 2018


Dear DennisThank you so much for your nice reply.As you said I've encountered abnormally size before in ncl-6.4. However in ncl6.5 I encountered addition problem and in this email I mean this new problem (may bug in ncl6.5). It seems ncl6.5 reset wrong date/time. For example I have "0103-01-01 00:00:00" instead of "2018-01-01 07:00:00" for "Date     Time".
SincerelyEhsan   On Thursday, August 23, 2018, 2:58:34 AM GMT+4:30, Dennis Shea <shea at ucar.edu> wrote:  
 
 This [netCDF-4 file size] has been discussed in ncl-talk before. Please search the archives. 
--
It has to do with the netCDF-4 'chunk size' used by NCL.  A JIRA ticket has been opened.

NCAR Command Language / Defect NCL-2757
NetCDF-4 file with unlimited time dimension size has abnormally large size 

You can change the chunk size: see

http://www.ncl.ucar.edu/Docume nt/Functions/Built-in/filechun kdimdef.shtml

You may have to experimet.
======
I suggest trying just writing netCDF-3 [the default]

Good luck


On Tue, Aug 21, 2018 at 8:37 AM, Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com> wrote:

Hi,I used attached script (prc_sum_write.ncl) which has been provided by ncl-talk to sum precipitation in different time steps. In ncl-6.5 I encountered following message:    ncclose: ncid 131072: NetCDF: Can't open HDF5 attribute
It seems the script does summation correctly, however reset wrong date/time! (cdoout6.5.dat in attached files)The script works correctly in ncl-6.4; however the problem with ncl-6.4 was about following line:    filedimdef(fo,"time",-1,True)      ; make time UNLIMITED
which produced a much bigger size output. Same is true in ncl-6.5 which the output without above line will have 755 KB size and the output with above line will have 24.0 MB. However the date/time in output file for ncl-6.4 are correct (cdoout6.4.dat in attached files). I also attached output files from both version of ncl in small size (commented filedimdef(fo,"time",-1,True)) .
Should I use ncl-6.4 with this script or I did something wrong? I'll be thankful for any help.

SincerelyEhsan
______________________________ _________________
ncl-talk mailing list
ncl-talk at ucar.edu
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/ mailman/listinfo/ncl-talk



  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180823/71466585/attachment.html>


More information about the ncl-talk mailing list