On Jan 30, 2008 9:37 AM, Jennifer Adams <<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">
We know that the loss of the LATS interface severely impacts many users. But our intention is to *replace* it with something better, not to eliminate the functionality completely. Consider this: <div><br></div><div>set x; set y; set z; set t; set e<br>
<div>set gxout fwrite</div><div>set fwrite -nc <a href="http://file.nc" target="_blank">file.nc</a></div><div>d var</div><div>disable fwrite </div><div></div></div></div></blockquote><div><br>Actually, if the "fwrite -nc" feature is implemented you could still use lats4d for avoid having to write a script. It is important to understand that while lats4d started as a wrapper around LATS, it has evolved beyond LATS. For example, if you enter:<br>
<br>lats4d -i myfile.ctl -o example -format sequential<br><br>it would write the f77 binary file "example.bin". Other options are "stream" for plain binary. The options "-be" and "-le" have also been added specify if you want your binary file to be little_endian or big_endian. And of course, you can use all the subsetting, -func, etc to customize what gets written. The sequential/stream formats were written around the current "fwrite" feature, so any enhancement of fwrite could be easily incorporated. One feature that is missing and that could be easily incorporated is for lats4d to write a companion .ctl for the binary files it writes.<br>
<br>Recently I've be using lats4d as a generic iterator over a dataset. For example,<br><br>lats4d -i myfile.ctl -format <a href="http://myscript.gs">myscript.gs</a><br><br>will call my script for each time/level/variable, so you can use the lats4d command line options for space/time/variable subsetting, and then run your little script on each chunk. A variant of this is<br>
<br>lats4d -i myfile.ctl -format myscript.gsf<br><br>where "myscript.gsf" is treated as a script library, therefore having access to the <a href="http://lats4d.gs">lats4d.gs</a> namespace. <br><br>And finally, a new feature that people may not be aware of is<br>
<br>lats4d -i myfile.ctl -format stats<br><br>which prints an ASCII table with min/max/ave/etc for each variable/level/time. This is a quick way to examine what is on a dataset.<br><br>I am attaching my latest <a href="http://lats4d.gs">lats4d.gs</a> to save people the trouble of go looking for it. It should be in the 1.9.0-rc1 build as well.<br>
<br> Arlindo<br><br><br><br><br><br></div></div><br><br><br><br><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>