[go: up one dir, main page]

User Activity

  • Posted a comment on discussion Open Discussion on NCO netCDF Operators

    Great! Thanks for the efforts, really appreciated!

  • Posted a comment on discussion Open Discussion on NCO netCDF Operators

    Thanks for your help! I have opened a GitHub issue now. https://github.com/Unidata/netcdf-c/issues/3154 Feel free to comment or follow :)

  • Posted a comment on discussion Open Discussion on NCO netCDF Operators

    If I do this in Python: import netCDF4 file = "one-letter-att.nc" with netCDF4.Dataset(file, 'r+') as nc_file: nc_file.history = "" it works: ncks -M one-letter-att.nc | grep history :history = "" ; If I do it in R: library(ncdf4) nc <- nc_open("one-letter-att.nc",write=T) ncatt_put(nc, 0, "history","") nc_close(nc) it doesn't work ncks -M one-letter-att.nc | grep history :history = "c" ;

  • Posted a comment on discussion Open Discussion on NCO netCDF Operators

    Hi. I have upgraded to ncatted version 5.3.4 but the problem still occurs. Note: it only happens when I try to set an empty attribute AFTER I have set a one-letter attribute: Original test-file (attached) ncks -M in.nc | grep history :history = "dummy" ; Changing this to an empty string works: ncatted -h -O -a history,global,o,c,"" in.nc works.nc ncks -M works.nc | grep history :history = "" ; Setting a one-letter attribute: ncatted -h -O -a history,global,o,c,"a" in.nc one-letter-att.nc ncks -M...

  • Posted a comment on discussion Open Discussion on NCO netCDF Operators

    Hi. I've just found this strange behaviour and was wondering if someone can replicate it and whether there is a fix to it: Setting the global history attribute to a single letter, e.g. "a" (but works with all attributes): ncatted -h -O -a history,global,o,c,"a" $file ncdump -h $file | grep history :history = "a" ; Set it to blank: ncatted -h -O -a history,global,o,c,"" $file ncdump -h $file | grep history :history = "c" ; There is always a "c"! When I set it to something longer, e.g. ncatted -h -O...

View All

Personal Data

Username:
doblerone
Joined:
2025-08-13 12:52:00.697000

Projects

  • No projects to display.

Personal Tools