Thanks a lot Charlie and henry Butowsky It worked finally :)
Sorry for asking you again i tried ncatted -a area_keywords, global, o, c, "World Ocean" cat.nc but i am not successful and bring me this error ncatted: ERROR received 5 filenames; need no more than two ncatted Command line options cheatsheet (full details in manual, http://nco.sf.net/nco.html): ncatted [-a ...] [--bfr sz] [-D dbg_lvl] [-h] [--hdr_pad nbr] [-l path] [-O] [-o out.nc] [-p path] [-R] [-r] in.nc [[out.nc]] -a, --attribute att_nm,var_nm,mode,att_typ,att_val Attribute specification: mode...
Thanks Henry if i understood you well for instance global attribute looks like as given below in my file and i want to modify :area_keywords = "Black Sea"; to "World Ocean" so how it should be ncatted -a new,global,c,c,"hello world" in.nc can you please help me what will be new and "hello world" in this case?? // global attributes: :_NCProperties = "version=1|netcdflibversion=4.6.1|hdf5libversion=1.10.4"; :Conventions = "CF-1.6"; :title = "DIVA 4D analysis of sea water salinity"; :file_name = "/Users/kanwal/Documents/SDC_GLO_CLIM_S_V1_2_V2/January/Output_DIVA_nc/SDC_GLO_CLIM_S_V1_2_V2_3_1.nc";...
Dear all, Is it possible to edit the global attribute of a netcdf file? Thanks Best regards Kanwal