[ncl-talk] NetCDF filter error: bad id or parameters or duplicate filter

Jonathan Vigh jvigh at ucar.edu
Mon Nov 20 21:28:01 MST 2023


Greetings NCL'ers,

Has anyone ever encountered an error like this before when defining a
filevar for a NetCDF file?


*fatal:["NclNetCDF4.c":5409]:NetCDF: Filter error: bad id or parameters or
duplicate filterfatal:["NclAdvancedFile.c":6126]:AdvancedFileAddVar: Error
adding variable as type: <none>*

The line of code that this is coming from is where the file variable is
being defined:
     filevardef(fout, "CYCLONE_ATCF_stormid",typeof(CYCLONE_ATCF_stormid)
,"cyclone")

The variable is of type string and I am using the advanced features to
write out strings:
     setfileoption("nc","FileStructure","Advanced")
     setfileoption("nc","Format","NetCDF4")

Variable: CYCLONE_ATCF_stormid
Type: string
Total Size: 3328 bytes
            416 values
Number of Dimensions: 1
Dimensions and sizes:   [416]
Coordinates:
Number Of Attributes: 4
  units :       none
  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')
  long_name :   BT_STORM_stormid
  _FillValue :
(0)     string

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.

I do *not* 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).

Thanks,
Jonathan




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-8171Jonathan's Staff Web
Page <http://staff.ral.ucar.edu/jvigh/> (CV, publications,
etc.)Tropical Cyclone Guidance Project
<http://hurricanes.ral.ucar.edu/> (real-time hurricane data)

Tropical Cyclone Data Project <https://verif.rap.ucar.edu/tcdata/>
(FLIGHT+, VDM+, TC-OBS datasets)

HurricaneRiskCalculator®️ <https://wxrisk.io/> (Now available --
Personalized hurricane wind hazard assessments for decision support)

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20231120/72301c6c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_write.ncl
Type: application/octet-stream
Size: 4575 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20231120/72301c6c/attachment.obj>


More information about the ncl-talk mailing list