<div dir="ltr">Hi NCL'ers,<div><br></div><div>My issue has been resolved. NCAR's IT person for my lab was able to build a version for RAL that uses the "correct" NetCDF library. </div><div>I'm sharing this information in case someone else runs into the same issue. <br></div><div><div><br></div></div><div>The IT person compared the shared libraries linked in to each version (i.e. using "ldd") and made a guess as to the culprit. Given the error message<br>itself comes from the netcdf c library, it was a pretty safe bet.<br></div><div><br></div><div>From his email: </div><div>"Well, the short answer is to "use netcdf-c-4.8.0". The long answer involves knowing how to build ncl and all of its dependencies which is a beast.<br>He built it with gdal and vis5d which are optional but needed by folks in RAL (or have been in the past). Newer GDAL builds require the PROJ library at v6 or greater<br>(PROJ is at 9.x) while NCL cannot use PROJ greater than 7 and greater than 5 requires hacking a ncl file (minor hack, but still). That's just one example.<br>All the shared libs *and* the shared-libs' shared-libs have to match up exactly or ncl won't build."<br></div><div><br></div><div>I am not sure why the conda-provided version of NCL also had this issue (maybe something related to my path?). It makes me wonder if a service update of NCL is in order to ensure it continues working on new OSs.</div><div><br></div><div>Best regards,</div><div>Jonathan</div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><pre><font face="arial, helvetica, sans-serif">Jonathan Vigh                                              
Project Scientist II, Joint Numerical Testbed    
Research Applications Laboratory (RAL)
National Center for Atmospheric Research (NCAR)
P.O. Box 3000                    tel: +1 (303) 497-8205
Boulder, CO 80307-3000   fax: +1 (303) 497-8171
</font><font face="arial, sans-serif"><a href="http://staff.ral.ucar.edu/jvigh/" target="_blank">Jonathan's Staff Web Page</a> (CV, publications, etc.)
<a href="http://hurricanes.ral.ucar.edu/" target="_blank">Tropical Cyclone Guidance Project</a> (real-time hurricane data)</font></pre><pre><font face="arial, sans-serif"><a href="https://verif.rap.ucar.edu/tcdata/" target="_blank">Tropical Cyclone Data Project</a> (FLIGHT+, VDM+, TC-OBS datasets)</font></pre><pre><a href="https://wxrisk.io/" style="font-family:Arial,Helvetica,sans-serif" target="_blank"><span style="font-size:11pt;font-family:Arial;color:rgb(17,85,204);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">HurricaneRiskCalculator®️</span></a><span style="background-color:transparent;font-size:11pt;font-family:Arial;color:rgb(34,34,34);vertical-align:baseline;white-space:pre-wrap"> (Now available -- Personalized hurricane wind hazard assessments for decision support)</span></pre><pre><span style="color:rgb(136,136,136);font-family:Arial,Helvetica,sans-serif;white-space:normal">During COVID-19, my working day is likely different from your working day. Please do not feel obliged to reply to this email outside of your normal working hours.</span><br></pre>
</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 20, 2023 at 9:28 PM Jonathan Vigh <<a href="mailto:jvigh@ucar.edu" target="_blank">jvigh@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Greetings NCL'ers,</div><div><br></div><div>Has anyone ever encountered an error like this before when defining a filevar for a NetCDF file?</div><div><br></div><div><b>fatal:["NclNetCDF4.c":5409]:NetCDF: Filter error: bad id or parameters or duplicate filter<br>fatal:["NclAdvancedFile.c":6126]:AdvancedFileAddVar: Error adding variable as type: <none></b><div><br></div></div><div>The line of code that this is coming from is where the file variable is being defined:</div><div>     filevardef(fout, "CYCLONE_ATCF_stormid",typeof(CYCLONE_ATCF_stormid)                                                ,"cyclone")<br></div><div><br></div><div>The variable is of type string and I am using the advanced features to write out strings:</div><div>     setfileoption("nc","FileStructure","Advanced")  <br></div><div>     setfileoption("nc","Format","NetCDF4")<br></div><div><br></div><div>Variable: CYCLONE_ATCF_stormid<br>Type: string<br>Total Size: 3328 bytes<br>            416 values<br>Number of Dimensions: 1<br>Dimensions and sizes:   [416]<br>Coordinates:<br>Number Of Attributes: 4<br>  units :       none<br>  description : ATCF STORM ID used to designate a given storm in the Best Track dataset b-deck file and the Storm Table (e.g. 'AL012013')<br>  long_name :   BT_STORM_stormid<br>  _FillValue :<br>(0)     string<br></div><div><br></div><div>I did not get this error previously, but my machine was recently upgraded to Debian Bookworm and now this error is occurring both for the RAL-built NCL binary and the one from conda forge. </div><div><br></div><div>I do <u><i>not</i></u> get the error when running on a machine that hasn't been upgraded to the new OS. I've boiled the script down to a standalone test script in case anyone would like to try it (see attached). </div><div><br></div><div>Thanks,</div><div>Jonathan</div><div><br></div><div><br></div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><pre><font face="arial, helvetica, sans-serif">Jonathan Vigh                                         
Project Scientist II, Joint Numerical Testbed    
Research Applications Laboratory (RAL)
National Center for Atmospheric Research (NCAR)
P.O. Box 3000                    tel: +1 (303) 497-8205
Boulder, CO 80307-3000   fax: +1 (303) 497-8171
</font><font face="arial, sans-serif"><a href="http://staff.ral.ucar.edu/jvigh/" target="_blank">Jonathan's Staff Web Page</a> (CV, publications, etc.)
<a href="http://hurricanes.ral.ucar.edu/" target="_blank">Tropical Cyclone Guidance Project</a> (real-time hurricane data)</font></pre><pre><font face="arial, sans-serif"><a href="https://verif.rap.ucar.edu/tcdata/" target="_blank">Tropical Cyclone Data Project</a> (FLIGHT+, VDM+, TC-OBS datasets)</font></pre><pre><a href="https://wxrisk.io/" style="font-family:Arial,Helvetica,sans-serif" target="_blank"><span style="font-size:11pt;font-family:Arial;color:rgb(17,85,204);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">HurricaneRiskCalculator®️</span></a><span style="background-color:transparent;font-size:11pt;font-family:Arial;color:rgb(34,34,34);vertical-align:baseline;white-space:pre-wrap"> (Now available -- Personalized hurricane wind hazard assessments for decision support)</span></pre><pre><span style="color:rgb(136,136,136);font-family:Arial,Helvetica,sans-serif;white-space:normal">During COVID-19, my working day is likely different from your working day. Please do not feel obliged to reply to this email outside of your normal working hours.</span><br></pre>
</div></div></div></div></div></div></div>
</blockquote></div>