[yt-users] Camera/Off Axis Options

Sushilkumar sushil.sush19us at gmail.com
Wed May 11 14:04:04 PDT 2016


Dear Suoqing Ji:

I could not find the script you attached neither in the email text nor in
the google drive

On Wed, May 11, 2016 at 2:12 PM, <yt-users-request at lists.spacepope.org>
wrote:

> Send yt-users mailing list submissions to
>         yt-users at lists.spacepope.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> or, via email, send a message with subject or body 'help' to
>         yt-users-request at lists.spacepope.org
>
> You can reach the person managing the list at
>         yt-users-owner at lists.spacepope.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of yt-users digest..."
>
>
> Today's Topics:
>
>    1. Re: Camera/Off Axis Optioons (Suoqing Ji)
>    2. LightRay class (Fei Li)
>    3. Re: LightRay class (Cameron Hummels)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 11 May 2016 11:25:53 -0700
> From: Suoqing Ji <suoqing at physics.ucsb.edu>
> To: Discussion of the yt analysis package
>         <yt-users at lists.spacepope.org>
> Subject: Re: [yt-users] Camera/Off Axis Optioons
> Message-ID: <3BCF6B56-E116-4C42-AED8-13E541829F86 at physics.ucsb.edu>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Sushil,
>
> I do not know which file in your google drive is the one you used to make
> the plot, but I found some potential problems in a similar script
> yt_frb_offaxis.py:
>
> 1. When you load the data, with data = dict(?), the key values should be
> ?velocity_x/y/z? instead of ?cutting_plane_velocity_x/y/z?, since the later
> can be derived from the velocity field you provided;
>
> 2. The data for stream plot should not be normalized;
>
> Here I attached the script, and you should be able to produce the figure
> without problem.
>
> Best wishes,
> --
> Suoqing JI
> Ph.D Candidate
> Department of Physics
> University of California, Santa Barbara
> http://web.physics.ucsb.edu/~suoqing
>
>
> > On May 11, 2016, at 9:01 AM, Sushilkumar <sushil.sush19us at gmail.com>
> wrote:
> >
> > Dear Suoqing JI:
> >
> > I tried with both factor=1 and deleting the ::factor (yt_frb_offaxis.py)
> but the same issue still persist (L(1,0,0) N(0,1,1).png). The only
> difference being that without the "factor" it takes longer time to compute
> than for a "factor=20".
> >
> > For same data if I use "slc.annoate_streamline" gives approximately
> proper results (UniformGridData_Slice_y_field_x_t000.png) but without the
> offaxis
> >
> > Any suggestions.
> >
> > Thanks in advance
> >
> > https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc <
> https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc>
> > --
> > SK2
> >
> > "Claiming that something can move faster than light is a good
> conversation-stopper in physics. People edge away from you in cocktail
> parties; friends never return phone calls. You just don?t mess with Albert
> Einstein."
> >
> > _______________________________________________
> > yt-users mailing list
> > yt-users at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0002.htm
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: annotation.py
> Type: text/x-python-script
> Size: 1548 bytes
> Desc: not available
> URL: <
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0001.bin
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0003.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 11 May 2016 19:06:49 +0000
> From: Fei Li <lif.li at mail.utoronto.ca>
> To: "yt-users at lists.spacepope.org" <yt-users at lists.spacepope.org>
> Subject: [yt-users] LightRay class
> Message-ID:
>         <
> CY1PR03MB2378B7748FFAB0F47A379797BF720 at CY1PR03MB2378.namprd03.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello yt users,
>
> I tried to use the LightRay class to generate a light ray for one of my
> gridded simulation snapshots. The simulation is from the FIRE project which
> used a heavily modified version of Gadget-3 called GIZMO written by Phil
> Hopkins. And the error I got is: ValueError: need more than 1 value to
> unpack.
>
> Here is my script:
>
> $ python
> Python 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:08:32)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> Anaconda is brought to you by Continuum Analytics.
> Please check out: http://continuum.io/thanks and https://anaconda.org
> >>> import yt
> >>> import trident
> >>> fn='/cita/h/home-2/fli/FIRE/grid_190_256.hdf5'
> >>> light_ray=trident.LightRay(fn,simulation_type='Gadget')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py",
> line 152, in __init__
>     find_outputs=find_outputs)
>   File
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/cosmology_splice.py",
> line 34, in __init__
>     find_outputs=find_outputs)
>   File
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/convenience.py",
> line 153, in simulation
>     find_outputs=find_outputs)
>   File
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py",
> line 75, in __init__
>     find_outputs=find_outputs)
>   File
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/data_objects/time_series.py",
> line 414, in __init__
>     self._parse_parameter_file()
>   File
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py",
> line 289, in _parse_parameter_file
>     param, vals = (i.strip() for i in line.split(None, 1))
> ValueError: need more than 1 value to unpack
>
> Thanks for your help,
>
> Fei Li
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/1147bf52/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 11 May 2016 12:12:08 -0700
> From: Cameron Hummels <chummels at gmail.com>
> To: Discussion of the yt analysis package
>         <yt-users at lists.spacepope.org>
> Subject: Re: [yt-users] LightRay class
> Message-ID:
>         <CACyTu7FeqQUkhdE034q182uvPYm=
> 50p9J2qP509x+xQBuUYQZw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Fei Li,
>
> Since you're primarily trying to use Trident's functionality which wraps
> around the LightRay class, you should probably direct questions of this
> nature to the Trident mailing list.  I'll start a discussion there on this
> topic now and cc you.
>
> trident-project-users at googlegroups.com
>
> Cameron
>
> On Wed, May 11, 2016 at 12:06 PM, Fei Li <lif.li at mail.utoronto.ca> wrote:
>
> > Hello yt users,
> >
> > I tried to use the LightRay class to generate a light ray for one of my
> > gridded simulation snapshots. The simulation is from the FIRE project
> which
> > used a heavily modified version of Gadget-3 called GIZMO written by Phil
> > Hopkins. And the error I got is: ValueError: need more than 1 value to
> > unpack.
> >
> > Here is my script:
> >
> > $ python
> > Python 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015,
> 18:08:32)
> > [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > Anaconda is brought to you by Continuum Analytics.
> > Please check out: http://continuum.io/thanks and https://anaconda.org
> > >>> import yt
> > >>> import trident
> > >>> fn='/cita/h/home-2/fli/FIRE/grid_190_256.hdf5'
> > >>> light_ray=trident.LightRay(fn,simulation_type='Gadget')
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >   File
> >
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py",
> > line 152, in __init__
> >     find_outputs=find_outputs)
> >   File
> >
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/cosmology_splice.py",
> > line 34, in __init__
> >     find_outputs=find_outputs)
> >   File
> > "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/convenience.py",
> > line 153, in simulation
> >     find_outputs=find_outputs)
> >   File
> >
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py",
> > line 75, in __init__
> >     find_outputs=find_outputs)
> >   File
> >
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/data_objects/time_series.py",
> > line 414, in __init__
> >     self._parse_parameter_file()
> >   File
> >
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py",
> > line 289, in _parse_parameter_file
> >     param, vals = (i.strip() for i in line.split(None, 1))
> > ValueError: need more than 1 value to unpack
> >
> > Thanks for your help,
> >
> > Fei Li
> >
> >
> >
> > _______________________________________________
> > yt-users mailing list
> > yt-users at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >
> >
>
>
> --
> Cameron Hummels
> NSF Postdoctoral Fellow
> Department of Astronomy
> California Institute of Technology
> http://chummels.org
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/e3cc121e/attachment.htm
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
> ------------------------------
>
> End of yt-users Digest, Vol 99, Issue 29
> ****************************************
>



-- 
*SK2*

*"**Claiming that something can move faster than light is a good
conversation-stopper in physics. People edge away from you in cocktail
parties; friends never return phone calls. You just don’t mess with Albert
Einstein.**"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/e7f4585f/attachment.html>


More information about the yt-users mailing list