Kunal Kunal
Kunal Kunal

Reputation: 11

add or create new attributes using NCO

I have one .nc file in which I want to create a new attribute

like

float Longitude_Aerosol_NearUV_Swath(nTimes_Aerosol_NearUV_Swath, nXtrack_Aerosol_NearUV_Swath) ;
    Longitude_Aerosol_NearUV_Swath:standard_name = "longitude" ;
    Longitude_Aerosol_NearUV_Swath:long_name = "longitude" ;
    Longitude_Aerosol_NearUV_Swath:units = "degrees_east" ;
    Longitude_Aerosol_NearUV_Swath:_CoordinateAxisType = "Lon" ;

please let me know how to add this in the file.

Thanks

Upvotes: 1

Views: 609

Answers (1)

Charlie Zender
Charlie Zender

Reputation: 6342

Read the fine manual here

ncatted -a attribute_name,variable_name,o,c,'text string' in.nc out.nc

Upvotes: 2

Related Questions