Not knowing anything about the format from that code, but if it is not too
complex but more than what the general array importer can handle, there is
an easier approach than writing a module. In this case, you could write an
import filter (either a script or executable, which is invoked from Import
with a ! in front of the file name). Import will expect to receive the
data via stdin organized in either the "general" or "dx" format. Such a
filter may be relatively easy to write. You could add some flexibility
with input arguments, which could be constructed within DX from user input
or derived from other data.
[EMAIL PROTECTED]@opendx.watson.ibm.com on 04/13/2003 11:52:25 PM
Please respond to [email protected]
Sent by: [EMAIL PROTECTED]
To: [email protected]
cc: [EMAIL PROTECTED]
Subject: [opendx-users] newb - anyone imported data from cosmo sim
"gadget"
I have been reading through all the list archives to see if anyone has
travelled this road, before I embark on "reinventing the wheel".
I have data from cosmological simulations I have done with a public code
version of "GADGET".
This program produces output in snapshot files in a binary format, with
particle positional, velocity and mass data, plus more info.
This is an astro-physics code which uses SPH and tree code to evolve from
initial conditions for various scenarios for cosmological evolution of
various particle types (eg: stars, gas, dark matter, etc).
I have tried using the data import tool (data prompter) to describe the
data
layout, without success. I need to have more refined data layouts ? or
definitions to extract the data correctly for visualisation.
Has anyone created a filter or module for gadget data import ?
Help greatly appreciated if available.
If not, I guess I will have to start trying to code own import....
Steve Ross
Information Technology Systems Engineer
C.A.D.E.T.
60 George St., P.O. Box 209, Caloundra 4551.
Ph: (07) 54366000
Fx: (07) 54366051
Email: [EMAIL PROTECTED]