|
From: Alexandre B. <abo...@st...> - 2010-01-27 18:08:49
|
Hi Dave. Try this script : ---------------------------------------- import sgems grid = "myGrid" prop = "myProperty" filename = "myfilename.dat" fid = open(filename,"w") x = sgems.get_property(grid,"_X_") y = sgems.get_property(grid,"_Y_") z = sgems.get_property(grid,"_Z_") p = sgems.get_property(grid,prop) for i,j,k,v in zip(x,y,z,p) : fid.write(str(i)+" "+str(j)+" "+str(k)+" "+str(v)+"\n") fid.close() ----------------------- Regards, Alex 2010/1/20 Bean, David <Dav...@am...> > Hi SGeMS Users: > > > > I’ve asked this before but did not get an answer. > > Does someone have a Python script or know of a way to export a SGSIM > simulation as an ASCII file in X,Y,Value format so that I can import it into > other software? > > > > Thanks > > Dave > > > > *David M. Bean, PG, CHG*** > > Principal Hydrogeologist > > AMEC Geomatrix, Inc. > > 1281 East Alluvial Ave., Suite 101 > > Fresno, California 93720 > > (o) 559-264-2535** > > (d) 559-892-2936 > > (c) 559-307-2553** > > (f) 559-264-7431** > > *dav...@am...* <dav...@am...> > > *http://www.amec.com*** > > * * > > The materials transmitted by this electronic mail are confidential, are for > the use of the intended recipient(s), only, and may be subject to applicable > privileges, including consultant-client, attorney-client, and > attorney-work-product privileges. If you have received this communication > in error, please immediately notify the sender; also, please remove this > message and any attachments from your hard drive, diskette, and any other > storage device; any dissemination, distribution, or copying of this > communication is strictly prohibited. Thank you for your cooperation. > > > > ------------------------------ > The information contained in this e-mail is intended only for the > individual or entity to whom it is addressed. > Its contents (including any attachments) may contain confidential and/or > privileged information. > If you are not an intended recipient you must not use, disclose, > disseminate, copy or print its contents. > If you receive this e-mail in error, please notify the sender by reply > e-mail and delete and destroy the message. > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Sgems-users mailing list > Sge...@li... > https://lists.sourceforge.net/lists/listinfo/sgems-users > > -- Alexandre Boucher Acting Assistant Professor Dept. of Environmental Earth System Science, Stanford University http://geostat.stanford.edu http://sgems.sourceforge.net |