ncwriteatt(filename,location,attname,attvalue,"Datatype",dtype) Description ncwriteatt(filename,location,attname,attvalue)creates or modifies the attribute specified byattnamein the group or variable specified bylocationin the netCDF file specified byfilename. The written attribute value is of the...
ncwriteatt(filename,location,attname,attvalue,"Datatype",dtype) Description ncwriteatt(filename,location,attname,attvalue)creates or modifies the attribute specified byattnamein the group or variable specified bylocationin the netCDF file specified byfilename. The written attribute value is of the...
ncwriteatt("myfile.nc","/grid1/temp","Units",["°F" "°C"]) Verify the value of the new attribute. Get ncreadatt("myfile.nc","/grid1/temp","Units") ans = 1x2 string "°F" "°C" Write Attribute with Specified Data Type Copy Code Copy Command Create a netCDF-4 format...