<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">The 'set gxout fwrite' option doesn't work with station expressions, which is what gr2stn returns. You need to wrap your expression inside a s2g1d ("station to grid 1D") call, to change your time series at an interpolated location back into a grid type. Then fwrite will work. <DIV>Jennifer</DIV><DIV><BR class="khtml-block-placeholder"><DIV><BR><DIV><DIV>On Feb 2, 2007, at 1:01 PM, Stephen R McMillan wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BR><FONT size="2" face="sans-serif">Hello,</FONT><BR><BR><FONT size="2" face="sans-serif">Is it possible to fwrite time series output, for a point using the gr2stn interpolation function? I can do it for a specified gridpoint, but not for an interpolated point using gr2stn. For example:</FONT><BR><BR><FONT size="2" face="sans-serif">I can do following without a problem (say, output from the GFS model):</FONT><BR><BR><FONT size="2" face="sans-serif">set t 1 last</FONT><BR><FONT size="2" face="sans-serif">set lat 40</FONT><BR><FONT size="2" face="sans-serif">set lon -76</FONT><BR><FONT size="2" face="sans-serif">set gxout fwrite</FONT><BR><FONT size="2" face="sans-serif">set fwrite d:\temp\test.dat</FONT><BR><FONT size="2" face="sans-serif">d tmp2m-273.16</FONT><BR><FONT size="2" face="sans-serif">disable fwrite</FONT><BR><BR><FONT size="2" face="sans-serif">However, using same file and settings but for a point interpolated to -75.83 and 40.05:</FONT><BR><BR><FONT size="2" face="sans-serif">d gr2stn(tmp2m-273.16, -75.83, 40.05)</FONT><BR><BR><FONT size="2" face="sans-serif">Above will display fine on screen, but will not fwrite to specified file. Any help/suggestions would be appreciated (including "not possible"). I am aware there are other methods such as using the 'set gxout print' and write functions, for example (and have used successfully), but it would be much simpler and more efficient to output to a binary file using fwrite.</FONT><BR><BR><FONT size="2" face="sans-serif">Thanks--</FONT><BR><FONT size="2" face="sans-serif">Stephen McMillan</FONT><BR><FONT size="2" face="sans-serif">Planalytics</FONT><BR> <BR> ***************************************************<BR> The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.<BR> ***************************************************<BR></BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Jennifer M. Adams</DIV><DIV>IGES/COLA</DIV><DIV>4041 Powder Mill Road, Suite 302</DIV><DIV>Beltsville, MD 20705</DIV><DIV><A href="mailto:jma@cola.iges.org">jma@cola.iges.org</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></DIV></BODY></HTML>