<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hello!<br></div><div> You can create .nc file<br data-mce-bogus="1"></div><div>containing time series<br data-mce-bogus="1"></div><div>of variable at a grid point as follows<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>If the long of the grid point for<br data-mce-bogus="1"></div><div>which you wish to write time<br data-mce-bogus="1"></div><div>series of variables is say 75E</div><div>and latitude is 20N and variable name is var,<br data-mce-bogus="1"></div><div>and time series you wish to write is from t=1 to t=100<br data-mce-bogus="1"></div><div>then following are steps to write output in .nc file<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>'set lon 75'<br data-mce-bogus="1"></div><div>'set lat 25'<br data-mce-bogus="1"></div><div>'set t 1 100'<br>'set undef dfile'<br>'define xx='var<br>'sdfwrite xx'<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I do not know how to write 8 variables<br data-mce-bogus="1"></div><div>in the same file.<br data-mce-bogus="1"></div><div>Try defining all 8 variables with<br data-mce-bogus="1"></div><div>different names such as<br data-mce-bogus="1"></div><div>xx1, xx2, xx3, xx4,xx5,xx6,xx7 and xx8<br data-mce-bogus="1"></div><div>(similar to that defined for xx above)<br data-mce-bogus="1"></div><div>and then use separate sdfwrite for</div><div>all the 8 defined 8 .<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Above procedure writes variables in<br data-mce-bogus="1"></div><div>"double" format in .nc file.<br data-mce-bogus="1"></div><div>If you wish write variables in "float" format<br data-mce-bogus="1"></div><div>then use following before sdfwrite.<br data-mce-bogus="1"></div><div>'set sdfwrite -flt outfilname.nc'<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Hope this is what you want.<br data-mce-bogus="1"></div><div>With best regards<br data-mce-bogus="1"></div><div>Dr.(Mrs) Sujata K. Mandke<br data-mce-bogus="1"></div><div>Scientist, Indian Institute of Tropical Meteorology,<br data-mce-bogus="1"></div><div>Pashan, PUNE-411007, INDIA<br data-mce-bogus="1"></div><hr id="zwchr" data-marker="__DIVIDER__"><div><b>From: </b>"ma_mosaffa" <ma_mosaffa@ut.ac.ir><br></div><div data-marker="__HEADERS__"><b>To: </b>"gradsusr" <gradsusr@gradsusr.org><br><b>Sent: </b>Sunday, May 26, 2019 11:41:02 PM<br><b>Subject: </b>[gradsusr] Create nc file<br></div><div><br></div><div data-marker="__QUOTED_TEXT__">
<p>Hi,</p>
<p>I have a question, In special location (lat. long. ) I want to create .nc file time series of 8 variables</p>
<p>How can i create .nc file?</p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<br>_______________________________________________<br>gradsusr mailing list<br>gradsusr@gradsusr.org<br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></div></body></html>