[FLASH-USERS] Variable output format
Sylvia Plöckinger
sylvia.ploeckinger at univie.ac.at
Tue Jan 15 12:11:22 EST 2013
Hi Trae,
for very simple line plots I usually use the loaddata routine in IDL,
which is located in the tools/fidlr3.0 directory
In case you use IDL, the syntax would be something like:
t = loaddata(<filename>, 'temp')
or if you want to have x and y coordinates:
t = loaddata(<filename>, 'temp', xcoords = x, ycoords = y)
t is an array with the values for the variable temp (or any other), x and y give the coordinate informations and:
plot, x, t[*,4]
should do a simple line plot.
Greets,
Sylvia
Am 15.01.2013 um 17:47 schrieb Henry (Trae) Winter:
> Thanks,
>
> I am currently using Visit which works well. I thought that it might be simpler to make line plots by getting at the data directly. It looks like I was incorrect.
>
> -Trae
>
>
> On Jan 15, 2013, at 11:27 AM, Anthony Scopatz wrote:
>
>> Hello Henry,
>>
>> If you simple, sane access to FLASH data, I recommend using yt (http://yt-project.org/). VisIt (https://wci.llnl.gov/codes/visit/) also works too. The shape of the array corresponds to the setup of the blocks.
>>
>> Be Well
>> Anthony
>>
>>
>> On Tue, Jan 15, 2013 at 10:23 AM, Henry (Trae) Winter <hwinter at cfa.harvard.edu> wrote:
>> I am trying to plot the output from the NeiTest problem. I want to plot the fraction of the ion as a function of X. I opened the hdf5 file and see the variables I need but I am confused by their shape. The ion variables, as well as velocity and temperature have a shape of (5,1,8,8). Does anyone know what these dimensions correspond to and/or how to map the variables to position?
>>
>> Thanks,
>> -Trae
>>
>> -------------------------------------------------------------------------------------
>> Dr. Henry (Trae) Winter III
>> Astrophysicist Tel: 617-495-7400
>> Center for Astrophysics Fax: 617-496-7577
>> 60 Garden Street, MS 58 Cell: 617-755-7967
>> Cambridge, MA 02138 hwinter at cfa.harvard.edu
>> -------------------------------------------------------------------------------------
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> Anthony Scopatz
>> Post-doctoral Scholar
>> The FLASH Center for Computational Science
>> Dept. of Astronomy and Astrophysics
>> The University of Chicago
>> cell: (512) U2-PU239
>> office: (773) 834-2705
>> fax:(773) 834-3230
>> http://flash.uchicago.edu
>
>
> -------------------------------------------------------------------------------------
> Dr. Henry (Trae) Winter III
> Astrophysicist Tel: 617-495-7400
> Center for Astrophysics Fax: 617-496-7577
> 60 Garden Street, MS 58 Cell: 617-755-7967
> Cambridge, MA 02138 hwinter at cfa.harvard.edu
> -------------------------------------------------------------------------------------
>
>
>
>
>
----------------------------------------------------------------
Mag. Sylvia Ploeckinger, Bakk.
Institute for Astrophysics
University of Vienna
Tuerkenschanzstrasse 17
A-1180 Vienna
Tel: +43 1 4277 518 96
e-mail: sylvia.ploeckinger at univie.ac.at
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20130115/71ef1b8d/attachment-0001.htm>
More information about the flash-users
mailing list