<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi John,<br>
    <br>
    Thanks for hinting me to ds.ortho_ray. This is what I meant :-)<br>
    <br>
    Btw, For a different anaylsis I would need to understand how the
    yt.box command works. Does it contain all the cells which have their
    center between the left and right boundaries or only cells which
    have both their center and edges between the specified left and
    right boundaries?<br>
    <br>
    Cheers,<br>
    Markus<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 2016-05-25 18:44, John Zuhone wrote:<br>
    </div>
    <blockquote
      cite="mid:20FEE9CC-A31A-4B87-BCEB-D3619FF8D618@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Hi Markus,
      <div class=""><br class="">
      </div>
      <div class="">ds.ortho_ray should work?</div>
      <div class=""><br class="">
      </div>
      <div class=""><a moz-do-not-send="true"
href="http://yt-project.org/docs/dev/reference/api/generated/yt.data_objects.selection_data_containers.YTOrthoRay.html#yt.data_objects.selection_data_containers.YTOrthoRay"
          class="">http://yt-project.org/docs/dev/reference/api/generated/yt.data_objects.selection_data_containers.YTOrthoRay.html#yt.data_objects.selection_data_containers.YTOrthoRay</a></div>
      <div class=""><br class="">
      </div>
      <div class="">But as a warning see:</div>
      <div class=""><br class="">
      </div>
      <div class=""><a moz-do-not-send="true"
href="http://yt-project.org/docs/dev/faq/index.html#why-are-the-values-in-my-ray-object-out-of-order"
          class="">http://yt-project.org/docs/dev/faq/index.html#why-are-the-values-in-my-ray-object-out-of-order</a></div>
      <div class=""><br class="">
      </div>
      <div class="">but that shouldn’t matter for photon_simulator, I
        don’t think. </div>
      <div class=""><br class="">
      </div>
      <div class="">BTW, since you use this module a lot, I should
        probably point out here that there will be no further
        development of photon_simulator in yt as it is now being
        transitioned into a new package, pyXSIM:</div>
      <div class=""><br class="">
      </div>
      <div class=""><a moz-do-not-send="true"
          href="http://bitbucket.org/jzuhone/pyxsim" class="">http://bitbucket.org/jzuhone/pyxsim</a></div>
      <div class=""><br class="">
      </div>
      <div class="">which is stable now but doesn’t have adequate
        documentation for me to have an official release. It will be the
        same software as the yt version with some minor adjustments. If
        you want to try it, mail me off-list and I can tell you how to
        install it and how to re-write your script to work with it. </div>
      <div class=""><br class="">
      </div>
      <div class="">The version currently in yt will stay there for the
        time being, so no need to worry, but I will not be updating it
        unless there are bug reports. </div>
      <div class=""><br class="">
      </div>
      <div class="">Best,</div>
      <div class=""><br class="">
      </div>
      <div class="">John</div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">On May 25, 2016, at 12:39 PM, Markus Haider
              <<a moz-do-not-send="true"
                href="mailto:markus.haider@uibk.ac.at" class="">markus.haider@uibk.ac.at</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div class="">Hi John,<br class="">
                <br class="">
                Thanks for your fast reply. So generally we are trying
                to make a mock spectrum of a galaxy cluster around the
                iron line. I enclosed the script I use, but maybe it is
                not of a big help as I just started doing this. You are
                probably right that I should youse ds.region. What I
                wanted to do is selecting a line of sight which is only
                one cell wide (native resolution of the simulation) but
                e.g. 1 Mpc deep.<br class="">
                <br class="">
                Cheers,<br class="">
                Markus<br class="">
                <br class="">
                On 2016-05-25 18:28, John Zuhone wrote:<br class="">
                <blockquote type="cite" class="">Hi Markus,<br class="">
                  <br class="">
                  Can you send a script so I can figure out what you are
                  trying to do exactly?<br class="">
                  <br class="">
                  You probably need ds.region, but if you send a script
                  I will know for sure.<br class="">
                  <br class="">
                  John Z<br class="">
                  <br class="">
                  Sent from my iPod<br class="">
                  <br class="">
                  <blockquote type="cite" class="">On May 25, 2016, at
                    12:23 PM, Markus Haider <<a
                      moz-do-not-send="true"
                      href="mailto:markus.haider@uibk.ac.at" class="">markus.haider@uibk.ac.at</a>>
                    wrote:<br class="">
                    <br class="">
                    Hi,<br class="">
                    <br class="">
                    I wanted to use the photon simulator for mock x-ray
                    observations on single cells and line of sights
                    using single cells. For this I wanted to select the
                    cells using covering_grid, but then I get the
                    following error:<br class="">
                    <br class="">
                    photon_simulator.py is doing<br class="">
                    delta_min, delta_max =
                    data_source.quantities.extrema("d%s"%ax)<br class="">
                    and the result is<br class="">
                    YTDataSelectorNotImplemented: Data selector
                    'covering_grid' not implemented.<br class="">
                    <br class="">
                    But maybe covering_grid is not the right thing for
                    what I had in mind, how would you select the cells
                    to pass as data_source to the photon simulator?<br
                      class="">
                    <br class="">
                    Cheers,<br class="">
                    Markus<br class="">
                    _______________________________________________<br
                      class="">
                    yt-users mailing list<br class="">
                    <a moz-do-not-send="true"
                      href="mailto:yt-users@lists.spacepope.org"
                      class="">yt-users@lists.spacepope.org</a><br
                      class="">
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br
                      class="">
                  </blockquote>
                  _______________________________________________<br
                    class="">
                  yt-users mailing list<br class="">
                  <a moz-do-not-send="true"
                    href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br
                    class="">
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br
                    class="">
                </blockquote>
                <br class="">
                <span id="cid:D5A99035-15A3-458F-A6C3-1EDCECCD7E38"><create_mc_photons_region.py></span>_______________________________________________<br
                  class="">
                yt-users mailing list<br class="">
                <a moz-do-not-send="true"
                  href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br
                  class="">
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br
                  class="">
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
yt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>