<html><head></head><body><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">Hello,</div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">I have two simple questions to which I hope I can get a quick fix</div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">1. I have calculated annual means of monthly sea level pressure from the file SLP.1979_2003.nc found on the ncl dataset list, using the c0de:</div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">begin</div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">  f=addfile("SLP.1979_2003.nc","r")</div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">  p=f->slp(:,:,:)</div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">  P197903_ym = month_to_annual(p,1)</div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">end</div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">When I run the above code, there is no error, but then nothing happens. I was expecting to see a file named <span>P197903_ym<span>P197903_ym. When I run the code interactively, and print(<span>P197903_ym) I can see the annual means.</span></span></span></div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span><br></span></span></span></div><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span>I have seen efficient and efficient ways of writing data to netcdf file. </span></span></span><div><span><span><span><span><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span><span><span><span><span>Is there a simple line for writing the output to file?</span></span></span></span> Sorry I have not checked the archives</span></span></span></div></span></span></span></span></div><div><span><span><span><span><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span></span></span></span></div></span></span></span></span><br></div><div>2. I am plotting a contour map with colored contours. I am using <br></div><div><span><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span><span><span><span><span>res@cnLineColors ="toint(fspan(2,240,20))"</span></span></span></span></span></span></span></div></span></div><div><span><div class="ydpe7837c5cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span><span><span><span><span></span></span></span></span></span></span></span></div></span><br></div><div>What do the numbers 2,240,20 mean. I have searched every where I cannot find. I know I can use e.g. "Rainbow"<br></div><div><br></div><div>Thank you very much for any assistance.<br></div><div><br></div><div><br></div><br></div></body></html>