<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class="">
<br class=""><div><blockquote type="cite" class=""><div class="">On May 11, 2016, at 2:04 PM, Sushilkumar <<a href="mailto:sushil.sush19us@gmail.com" class="">sushil.sush19us@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Dear Suoqing Ji:<br class=""><br class=""></div>I could not find the script you attached neither in the email text nor in the google drive<br class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, May 11, 2016 at 2:12 PM,  <span dir="ltr" class=""><<a href="mailto:yt-users-request@lists.spacepope.org" target="_blank" class="">yt-users-request@lists.spacepope.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send yt-users mailing list submissions to<br class="">
        <a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
<br class="">
To subscribe or unsubscribe via the World Wide Web, visit<br class="">
        <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
or, via email, send a message with subject or body 'help' to<br class="">
        <a href="mailto:yt-users-request@lists.spacepope.org" target="_blank" class="">yt-users-request@lists.spacepope.org</a><br class="">
<br class="">
You can reach the person managing the list at<br class="">
        <a href="mailto:yt-users-owner@lists.spacepope.org" target="_blank" class="">yt-users-owner@lists.spacepope.org</a><br class="">
<br class="">
When replying, please edit your Subject line so it is more specific<br class="">
than "Re: Contents of yt-users digest..."<br class="">
<br class="">
<br class="">
Today's Topics:<br class="">
<br class="">
   1. Re: Camera/Off Axis Optioons (Suoqing Ji)<br class="">
   2. LightRay class (Fei Li)<br class="">
   3. Re: LightRay class (Cameron Hummels)<br class="">
<br class="">
<br class="">
----------------------------------------------------------------------<br class="">
<br class="">
Message: 1<br class="">
Date: Wed, 11 May 2016 11:25:53 -0700<br class="">
From: Suoqing Ji <<a href="mailto:suoqing@physics.ucsb.edu" target="_blank" class="">suoqing@physics.ucsb.edu</a>><br class="">
To: Discussion of the yt analysis package<br class="">
        <<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a>><br class="">
Subject: Re: [yt-users] Camera/Off Axis Optioons<br class="">
Message-ID: <<a href="mailto:3BCF6B56-E116-4C42-AED8-13E541829F86@physics.ucsb.edu" target="_blank" class="">3BCF6B56-E116-4C42-AED8-13E541829F86@physics.ucsb.edu</a>><br class="">
Content-Type: text/plain; charset="utf-8"<br class="">
<br class="">
Hi Sushil,<br class="">
<br class="">
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:<br class="">
<br class="">
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;<br class="">
<br class="">
2. The data for stream plot should not be normalized;<br class="">
<br class="">
Here I attached the script, and you should be able to produce the figure without problem.<br class="">
<br class="">
Best wishes,<br class="">
--<br class="">
Suoqing JI<br class="">
Ph.D Candidate<br class="">
Department of Physics<br class="">
University of California, Santa Barbara<br class="">
<a href="http://web.physics.ucsb.edu/~suoqing" rel="noreferrer" target="_blank" class="">http://web.physics.ucsb.edu/~suoqing</a><br class="">
<br class="">
<br class="">
> On May 11, 2016, at 9:01 AM, Sushilkumar <<a href="mailto:sushil.sush19us@gmail.com" target="_blank" class="">sushil.sush19us@gmail.com</a>> wrote:<br class="">
><br class="">
> Dear Suoqing JI:<br class="">
><br class="">
> 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".<br class="">
><br class="">
> For same data if I use "slc.annoate_streamline" gives approximately proper results (UniformGridData_Slice_y_field_x_t000.png) but without the offaxis<br class="">
><br class="">
> Any suggestions.<br class="">
><br class="">
> Thanks in advance<br class="">
><br class="">
> <a href="https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc" rel="noreferrer" target="_blank" class="">https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc</a> <<a href="https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc" rel="noreferrer" target="_blank" class="">https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc</a>><br class="">
> --<br class="">
> SK2<br class="">
><br class="">
> "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."<br class="">
><br class="">
> _______________________________________________<br class="">
> yt-users mailing list<br class="">
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
<br class="">
-------------- next part --------------<br class="">
An HTML attachment was scrubbed...<br class="">
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0002.htm" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0002.htm</a>><br class="">
-------------- next part --------------<br class="">
A non-text attachment was scrubbed...<br class="">
Name: annotation.py<br class="">
Type: text/x-python-script<br class="">
Size: 1548 bytes<br class="">
Desc: not available<br class="">
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0001.bin" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0001.bin</a>><br class="">
-------------- next part --------------<br class="">
An HTML attachment was scrubbed...<br class="">
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0003.htm" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0003.htm</a>><br class="">
<br class="">
------------------------------<br class="">
<br class="">
Message: 2<br class="">
Date: Wed, 11 May 2016 19:06:49 +0000<br class="">
From: Fei Li <<a href="mailto:lif.li@mail.utoronto.ca" target="_blank" class="">lif.li@mail.utoronto.ca</a>><br class="">
To: "<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a>" <<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a>><br class="">
Subject: [yt-users] LightRay class<br class="">
Message-ID:<br class="">
        <<a href="mailto:CY1PR03MB2378B7748FFAB0F47A379797BF720@CY1PR03MB2378.namprd03.prod.outlook.com" target="_blank" class="">CY1PR03MB2378B7748FFAB0F47A379797BF720@CY1PR03MB2378.namprd03.prod.outlook.com</a>><br class="">
<br class="">
Content-Type: text/plain; charset="iso-8859-1"<br class="">
<br class="">
Hello yt users,<br class="">
<br class="">
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.<br class="">
<br class="">
Here is my script:<br class="">
<br class="">
$ python<br class="">
Python 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:08:32)<br class="">
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2<br class="">
Type "help", "copyright", "credits" or "license" for more information.<br class="">
Anaconda is brought to you by Continuum Analytics.<br class="">
Please check out: <a href="http://continuum.io/thanks" rel="noreferrer" target="_blank" class="">http://continuum.io/thanks</a> and <a href="https://anaconda.org/" rel="noreferrer" target="_blank" class="">https://anaconda.org</a><br class="">
>>> import yt<br class="">
>>> import trident<br class="">
>>> fn='/cita/h/home-2/fli/FIRE/grid_190_256.hdf5'<br class="">
>>> light_ray=trident.LightRay(fn,simulation_type='Gadget')<br class="">
Traceback (most recent call last):<br class="">
  File "<stdin>", line 1, in <module><br class="">
  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__<br class="">
    find_outputs=find_outputs)<br class="">
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/cosmology_splice.py", line 34, in __init__<br class="">
    find_outputs=find_outputs)<br class="">
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/convenience.py", line 153, in simulation<br class="">
    find_outputs=find_outputs)<br class="">
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py", line 75, in __init__<br class="">
    find_outputs=find_outputs)<br class="">
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/data_objects/time_series.py", line 414, in __init__<br class="">
    self._parse_parameter_file()<br class="">
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py", line 289, in _parse_parameter_file<br class="">
    param, vals = (i.strip() for i in line.split(None, 1))<br class="">
ValueError: need more than 1 value to unpack<br class="">
<br class="">
Thanks for your help,<br class="">
<br class="">
Fei Li<br class="">
<br class="">
-------------- next part --------------<br class="">
An HTML attachment was scrubbed...<br class="">
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/1147bf52/attachment-0001.htm" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/1147bf52/attachment-0001.htm</a>><br class="">
<br class="">
------------------------------<br class="">
<br class="">
Message: 3<br class="">
Date: Wed, 11 May 2016 12:12:08 -0700<br class="">
From: Cameron Hummels <<a href="mailto:chummels@gmail.com" target="_blank" class="">chummels@gmail.com</a>><br class="">
To: Discussion of the yt analysis package<br class="">
        <<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a>><br class="">
Subject: Re: [yt-users] LightRay class<br class="">
Message-ID:<br class="">
        <CACyTu7FeqQUkhdE034q182uvPYm=<a href="mailto:50p9J2qP509x%2BxQBuUYQZw@mail.gmail.com" target="_blank" class="">50p9J2qP509x+xQBuUYQZw@mail.gmail.com</a>><br class="">
Content-Type: text/plain; charset="utf-8"<br class="">
<br class="">
Hi Fei Li,<br class="">
<br class="">
Since you're primarily trying to use Trident's functionality which wraps<br class="">
around the LightRay class, you should probably direct questions of this<br class="">
nature to the Trident mailing list.  I'll start a discussion there on this<br class="">
topic now and cc you.<br class="">
<br class="">
<a href="mailto:trident-project-users@googlegroups.com" target="_blank" class="">trident-project-users@googlegroups.com</a><br class="">
<br class="">
Cameron<br class="">
<br class="">
On Wed, May 11, 2016 at 12:06 PM, Fei Li <<a href="mailto:lif.li@mail.utoronto.ca" target="_blank" class="">lif.li@mail.utoronto.ca</a>> wrote:<br class="">
<br class="">
> Hello yt users,<br class="">
><br class="">
> I tried to use the LightRay class to generate a light ray for one of my<br class="">
> gridded simulation snapshots. The simulation is from the FIRE project which<br class="">
> used a heavily modified version of Gadget-3 called GIZMO written by Phil<br class="">
> Hopkins. And the error I got is: ValueError: need more than 1 value to<br class="">
> unpack.<br class="">
><br class="">
> Here is my script:<br class="">
><br class="">
> $ python<br class="">
> Python 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:08:32)<br class="">
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2<br class="">
> Type "help", "copyright", "credits" or "license" for more information.<br class="">
> Anaconda is brought to you by Continuum Analytics.<br class="">
> Please check out: <a href="http://continuum.io/thanks" rel="noreferrer" target="_blank" class="">http://continuum.io/thanks</a> and <a href="https://anaconda.org/" rel="noreferrer" target="_blank" class="">https://anaconda.org</a><br class="">
> >>> import yt<br class="">
> >>> import trident<br class="">
> >>> fn='/cita/h/home-2/fli/FIRE/grid_190_256.hdf5'<br class="">
> >>> light_ray=trident.LightRay(fn,simulation_type='Gadget')<br class="">
> Traceback (most recent call last):<br class="">
>   File "<stdin>", line 1, in <module><br class="">
>   File<br class="">
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py",<br class="">
> line 152, in __init__<br class="">
>     find_outputs=find_outputs)<br class="">
>   File<br class="">
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/cosmology_splice.py",<br class="">
> line 34, in __init__<br class="">
>     find_outputs=find_outputs)<br class="">
>   File<br class="">
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/convenience.py",<br class="">
> line 153, in simulation<br class="">
>     find_outputs=find_outputs)<br class="">
>   File<br class="">
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py",<br class="">
> line 75, in __init__<br class="">
>     find_outputs=find_outputs)<br class="">
>   File<br class="">
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/data_objects/time_series.py",<br class="">
> line 414, in __init__<br class="">
>     self._parse_parameter_file()<br class="">
>   File<br class="">
> "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py",<br class="">
> line 289, in _parse_parameter_file<br class="">
>     param, vals = (i.strip() for i in line.split(None, 1))<br class="">
> ValueError: need more than 1 value to unpack<br class="">
><br class="">
> Thanks for your help,<br class="">
><br class="">
> Fei Li<br class="">
><br class="">
><br class="">
><br class="">
> _______________________________________________<br class="">
> yt-users mailing list<br class="">
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
><br class="">
><br class="">
<br class="">
<br class="">
--<br class="">
Cameron Hummels<br class="">
NSF Postdoctoral Fellow<br class="">
Department of Astronomy<br class="">
California Institute of Technology<br class="">
<a href="http://chummels.org/" rel="noreferrer" target="_blank" class="">http://chummels.org</a><br class="">
-------------- next part --------------<br class="">
An HTML attachment was scrubbed...<br class="">
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/e3cc121e/attachment.htm" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/e3cc121e/attachment.htm</a>><br class="">
<br class="">
------------------------------<br class="">
<br class="">
Subject: Digest Footer<br class="">
<br class="">
_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
<br class="">
<br class="">
------------------------------<br class="">
<br class="">
End of yt-users Digest, Vol 99, Issue 29<br class="">
****************************************<br class="">
</blockquote></div><br class=""><br clear="all" class=""><br class="">-- <br class=""><div class=""><span style="border-collapse:collapse" class=""><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px" class=""><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse" class=""><b class=""><i class="">SK<sup class="">2</sup></i></b></span></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px" class=""><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse" class=""><b class=""><i class=""><sup class=""><br class=""></sup></i></b></span></div><div class=""><span style="color:rgb(80,0,80);font-family:arial,sans-serif;border-collapse:collapse" class=""><b class=""><sup class="">"</sup></b></span><font face="arial, sans-serif" color="#500050" class=""><b class="">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.</b></font><b style="color:rgb(80,0,80);font-family:arial,sans-serif" class=""><sup class="">"</sup></b></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px" class=""><br class=""></div></span></div>
</div></div></div>
_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br class=""></div></blockquote></div><br class=""></div></body></html>