[yt-users] Camera/Off Axis Optioons

Suoqing Ji suoqing at physics.ucsb.edu
Wed May 11 11:25:53 PDT 2016


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.html>
-------------- 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-0002.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/0396e7c0/attachment-0001.html>


More information about the yt-users mailing list