<!--Copyright (C) 1988-2005 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information.--><title>GrADS Command: set sdfattr</title> <body bgcolor="e0f0ff" text="#000000"> <H2><B>set sdfattr</B></H2> <P> <code>set sdfattr <i>varname attribute_type attribute_name attribute_value</i></code> <p> Sets attribute metadata to be included in the output file created with the <a href="gradcomdsdfwrite.html"><code>sdfwrite</code></a> command. <ul> <p><code><i>varname</i> </code>May be set to "global", "longitude", "latitude", "level", "time", "ensemble", or <br /> <code> </code>a defined variable name<br> <code><i>attribute_type</i></code> May be one of five data type types (valid aliases in parentheses): <br /> <code> </code>"char" (String, Str, Url) <br /> <code> </code>"short" (Int16, UInt16)<br /> <code> </code>"int" (long, Int32, UInt32)<br /> <code> </code>"float" (Float32)<br /> <code> </code>"double" (Float64). <br> <code><i>attribute_name</i> </code>May be any single word or string with no spaces (e.g.: "units", "long_name")<br /> <code><i>attribute_value</i> </code>May be any string as long as the length of the entire entry does not exceed 512 characters. <br /> For numeric types, may be a list of comma-delimited numerals. </p> </ul> <p> <H3>Usage Notes</H3> <P>This command is available in GrADS v2.0.a3 or higher. <P>The <code><a href="gradcomdreset.html">reset</a></code> command will release all the attributes from memory. To do this without resetting all the other user-specified options, use the <code><a href="gradcomdclear.html">clear sdfwrite</a></code> command. <H3>Examples</H3> <P><code>set sdfattr precip String units mm/day</code><br> <code>set sdfattr precip String long_name Daily Precipiation </code><br /> <code>set sdfattr precip double actual_range 0,57.5</code>