<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I don’t know if it helps but using the<font face="Menlo" class=""> “w”</font> option in <font face="Menlo" class="">addfile</font> function was giving me a lot of errors in NCL 6.3.0, while the older version was working well. Unfortunately I didn’t had time to investigate the error: having both versions I just needed to load and unload the module when I needed to write on a <font face="Menlo" class="">netcdf</font> file. <div class="">Maybe someone can give you more useful informations. <br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Guido Cioni</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://guidocioni.altervista.org" class="">http://guidocioni.altervista.org</a> </div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 02 Feb 2016, at 13:52, Hanna Ojrzyńska <<a href="mailto:hanna.ojrzynska@uni.wroc.pl" class="">hanna.ojrzynska@uni.wroc.pl</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Dear all,<br class="">I wrote script to calculate new AQI index from data existing in wrfout file (NetCDF4). I want to write new variable (AQI) in those NetCDF4.<br class=""><br class="">Below important parts of script: <br class=""><br class=""><br class="">################################<br class=""><br class="">a = addfile(FILES(ifil)+".nc","w")<br class="">...<br class=""><br class="">T2=wrf_user_getvar(a,"T2",-1)<br class=""><br class="">AQI@long_name="Air Quality Index"<br class="">AQI@short_name="AQI")<br class="">filevardef(a, "AQI",typeof(T2), getvardims(T2))<br class=""><br class=""><br class="">a->AQI(it,:,:) = (/AQI(it,:,:)/)<br class=""><br class="">##################################<br class=""><br class="">It runs in ncl 6.1.0 but in 6.3.0 I recived:<br class=""><br class="">fatal:["NclNetCDF4.c":3073]:NclNetCDF4.c: Error in nc_def_var_chunking in file (/home/hano/Documents/scripts/wrfout_d03_2014-01-26_00:00:00.nc) for writing, at line: 3073<br class=""><br class="">line 3074 of NclNetCDF4.c: NetCDF: Attempt to define var properties, like deflate, after enddef.<br class=""><br class="">What is the reason?<br class=""><br class="">-- <br class="">Dr inż. Hanna Ojrzyńska<br class=""><br class="">Uniwersytet Wrocławski<br class="">Instytut Geografii i Rozwoju Regionalnego<br class="">Zakład Klimatologii i Ochrony Atmosfery<br class=""><a href="http://www.meteo.uni.wroc.pl" class="">www.meteo.uni.wroc.pl</a><br class="">_______________________________________________<br class="">ncl-talk mailing list<br class="">ncl-talk@ucar.edu<br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></div></blockquote></div><br class=""></div></body></html>