[BLDG-SIM] eQuest: macro for extracting data from a sim file
Brandon Nichols
BrandonN at Hargis.biz
Mon Nov 5 07:21:25 PST 2007
Awk is also a good choice, here's an editorial comparison of Awk vs. SED, with a link to tutorials for each:
http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2004-08/0405.html
Awk is a programming language with arithmetic operators, array handling etc., SED is essentially batch application of regular expressions.
Given the platform independence of regular expressions, SED is my cup of tea. But as Jeff states the case, Awk would be an excellent tool for a data extraction task -- back in the dark ages of DOS, I used Awk years before learning SED to strip the colors from AutoCAD DXF files.
Brandon
-----Original Message-----
From: BLDG-SIM at gard.com on behalf of Jeff Haberl
Sent: Sat 11/3/2007 7:07 PM
To: BLDG-SIM at gard.com
Cc:
Subject: [BLDG-SIM] eQuest: macro for extracting data from a sim file
Jessica.
We use AWK, which can be obtained from Gnu software for a modest donation (I.e. GAWK). Its incredibly powerful, and has a long history from its origin at Bell labs as a unix toolkit. There are several good books on AWK, including one by its creators: Aho, Weinberger and Kernigan.
This work well on the FORTRAN-formatted output from DOE-2.
Jeff
BB 8=! 8=) :=) 8=) ;=) 8=) 8=( 8=) :=') 8=) 8=) 8=? BB
Jeff S. Haberl, Ph.D., P.E.............................jhaberl at esl.tamu.edu
Professor......................................................Office Ph: 979-845-6507
Department of Architecture.......................Lab Ph: 979-845-6065
Energy Systems Laboratory.......................FAX: 979-862-2457
Texas A&M University..............................77843-3581
College Station, Texas, USA.......................URL: www-esl.tamu.edu
BB 8=/ 8=) :=) 8=) ;=) 8=) 8=() 8=) 8=? 8=) 8=) 8= BB
----- Original Message -----
From: BLDG-SIM at gard.com <BLDG-SIM at gard.com>
To: BLDG-SIM at gard.com <BLDG-SIM at gard.com>
Sent: Fri Nov 02 16:35:03 2007
Subject: [BLDG-SIM] eQuest: macro for extracting data from a sim file
I need to extract data from a sim file. I have over 1600 runs to make and need only one piece of data from the SIM file. Has anyone put together a macro like this before? Examples...
Thanks, Jessica
Jessica E. McCready
Energy Engineer
KEMA Services Inc.
492 Ninth Street, Suite 220
Oakland, CA 94607
T 510-891-0446
F 510-891-0440
jessica.mccready at kema.com
Please visit our website www.kema.com <file://www.kema.com>
==================
You received this e-mail because you are subscribed
to the BLDG-SIM at GARD.COM mailing list. To unsubscribe
from this mailing list send a blank message to
BLDG-SIM-UNSUBSCRIBE at GARD.COM
===========================
You received this e-mail because you are subscribed
to the BLDG-SIM at GARD.COM mailing list. To unsubscribe
from this mailing list send a blank message to
BLDG-SIM-UNSUBSCRIBE at GARD.COM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/bldg-sim-onebuilding.org/attachments/20071105/c0f96946/attachment-0002.htm>
More information about the Bldg-sim
mailing list