<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>Is this procedure similar to combining files found in NCO? Or, is it only a way to combine multiple variables into one file without extending the time steps?</DIV>
<DIV>does this make sense?</DIV>
<DIV>thanks,</DIV>
<DIV>teddy<BR> </DIV>
<P><A href="http://www.teddyallen.com/" rel=nofollow target=_blank>http://www.teddyallen.com</A></P>
<P>"To move quickly, go alone. To move far, go <FONT color=#ff0000><EM><STRONG>together</STRONG></EM></FONT>." </P>
<P>African Proverb</P>
<DIV><BR></DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Jennifer Adams <jma@cola.iges.org><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> GrADS Users Forum <gradsusr@gradsusr.org><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Fri, September 3, 2010 12:59:48 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [gradsusr] multiple variables in one netCDF<BR></FONT><BR>The netcdf operator 'ncks' can do this with a simple one-line command:
<DIV>ncks -h -A file1.nc file2.nc</DIV>
<DIV><BR></DIV>
<DIV>The -h option does not modify the global attribute 'history', the -A options means the variables in file1 are appended to file2. There is no need for me to write a whole lot of code in GrADS to do this when it is so easy with ncks. </DIV>
<DIV>--Jennifer</DIV>
<DIV><BR></DIV>
<DIV><BR>
<DIV>
<DIV>On Sep 2, 2010, at 8:35 PM, <A href="mailto:Don.VanDyke@noaa.gov" rel=nofollow target=_blank ymailto="mailto:Don.VanDyke@noaa.gov">Don.VanDyke@noaa.gov</A> wrote:</DIV><BR class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV>Hello,<BR><BR>Is there a way to write multiple variables to one netCDF file through GrADS instead of having to do separate files? I've tried the obvious way of simply issuing two sdfwrite commands to the same file, but it didn't work. The second variable just overwrote the first. Thanks for any help given!<BR><BR>Don Van Dyke<BR>NWS Tallahassee, FL<BR>_______________________________________________<BR>gradsusr mailing list<BR><A href="mailto:gradsusr@gradsusr.org" rel=nofollow target=_blank ymailto="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A><BR>http://gradsusr.org/mailman/listinfo/gradsusr<BR></DIV></BLOCKQUOTE></DIV><BR>
<DIV><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-SPACING: 0px 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class=Apple-style-span>
<DIV style="WORD-WRAP: break-word"><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-SPACING: 0px 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class=Apple-style-span><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-SPACING: 0px 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class=Apple-style-span>
<DIV>--</DIV>
<DIV>Jennifer M. Adams</DIV>
<DIV>IGES/COLA</DIV>
<DIV>4041 Powder Mill Road, Suite 302</DIV>
<DIV>Calverton, MD 20705</DIV>
<DIV><A href="mailto:jma@cola.iges.org" rel=nofollow target=_blank ymailto="mailto:jma@cola.iges.org">jma@cola.iges.org</A></DIV>
<DIV><BR class=khtml-block-placeholder></DIV><BR class=Apple-interchange-newline></SPAN></SPAN></DIV></SPAN></DIV><BR></DIV></DIV></DIV></div><br>
</body></html>