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

Ehsan Taghizadeh ehsantaghizadeh at yahoo.com
Fri Aug 24 14:58:19 MDT 2018


Dear MaryThank you very much for your nice reply.I put the original file "era5precjan2018t6s1_12.nc" in ftp. I've also attached the ncl script which I used to sum hourly precipitation.
SincerelyEhsan   On Friday, August 24, 2018, 10:47:23 PM GMT+4:30, Mary Haley <haley at ucar.edu> wrote:  
 
 Ehsan,
Can you provide the original  era5precjan2018t6s1_12.nc file? If it's not too large, but too large for email, then you can use ftp:
http://www.ncl.ucar.edu/ftp_files.shtml
Thanks,
--Mary

On Wed, Aug 22, 2018 at 11:30 PM, Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com> wrote:

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



  
______________________________ _________________
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/20180824/d46ee477/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prc_sum_write.ncl
Type: application/octet-stream
Size: 2399 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180824/d46ee477/attachment.obj>


More information about the ncl-talk mailing list