Hello, yt-users, I am using yt.FITSProjection to write the field projection to a FITS file. As stated in the documentation, it always makes projections of the width of domain size. But I need to make the FITS projection plot with defined width or arbitrary box size. Is there any way to do so? I tried with Geometry Data objects as it contains the data set as a whole but problem is that it doesn't have the coordinates attribute. Is there any way to take out the coordinate info also, or create a small dataset of ENZO simulation (cube of small size). Thanks, -Prateek
Hi Prateek, It is not the case that FITSProjection can only make projections of the entire domain width. If the documentation says that, then it is in error. You can supply a “width” parameter, e.g. width=(500.,”kpc”). Please try that and let us know if it works. Best, John Z Sent from my iPhone
On Jul 20, 2018, at 7:07 AM, Prateek Gupta
wrote: Hello, yt-users,
I am using yt.FITSProjection to write the field projection to a FITS file. As stated in the documentation, it always makes projections of the width of domain size. But I need to make the FITS projection plot with defined width or arbitrary box size. Is there any way to do so?
I tried with Geometry Data objects as it contains the data set as a whole but problem is that it doesn't have the coordinates attribute. Is there any way to take out the coordinate info also, or create a small dataset of ENZO simulation (cube of small size).
Thanks, -Prateek _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
Thanks, John,
How stupid I am, just because of documentation, I didn't even try width
once although I knew it and instead of it, I tried everything. I wasted so
much time on it.
Thank you so much.
I think a little correction is required on this following page or maybe I
took it differently (please have a look).
http://yt-project.org/doc/visualizing/writing_fits_images.html
Documentation::: "which took the same parameters as ProjectionPlot except
the width, because FITSProjection and FITSSlice always make slices and
projections of the width of the domain size, at the finest resolution
available in the simulation, in a unit determined to be appropriate for the
physical size of the dataset."
and if allowed please let me know how I can modify the yt-documentation
page?
Many Thanks to you,
-Prateek
On Fri, Jul 20, 2018 at 5:42 PM, John ZuHone
Hi Prateek,
It is not the case that FITSProjection can only make projections of the entire domain width. If the documentation says that, then it is in error. You can supply a “width” parameter, e.g. width=(500.,”kpc”).
Please try that and let us know if it works.
Best,
John Z
Sent from my iPhone
On Jul 20, 2018, at 7:07 AM, Prateek Gupta
wrote: Hello, yt-users,
I am using yt.FITSProjection to write the field projection to a FITS file. As stated in the documentation, it always makes projections of the width of domain size. But I need to make the FITS projection plot with defined width or arbitrary box size. Is there any way to do so?
I tried with Geometry Data objects as it contains the data set as a whole but problem is that it doesn't have the coordinates attribute. Is there any way to take out the coordinate info also, or create a small dataset of ENZO simulation (cube of small size).
Thanks, -Prateek _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
On Fri, Jul 20, 2018 at 9:51 AM, Prateek Gupta
Thanks, John,
How stupid I am, just because of documentation, I didn't even try width once although I knew it and instead of it, I tried everything. I wasted so much time on it. Thank you so much.
I think a little correction is required on this following page or maybe I took it differently (please have a look). http://yt-project.org/doc/visualizing/writing_fits_images.html Documentation::: "which took the same parameters as ProjectionPlot except the width, because FITSProjection and FITSSlice always make slices and projections of the width of the domain size, at the finest resolution available in the simulation, in a unit determined to be appropriate for the physical size of the dataset."
and if allowed please let me know how I can modify the yt-documentation page?
Thanks for offering to contribute :) You can make a pull request to the main yt repo, the documentation lives in the doc/ folder at the root of the repo. That particular piece of documentation is contained in a jupyter notebook: https://github.com/yt-project/yt/blob/master/doc/source/visualizing/FITSImag... Just edit the notebook in jupyter, save it, then commit that, and make a pull request.
Many Thanks to you, -Prateek
On Fri, Jul 20, 2018 at 5:42 PM, John ZuHone
wrote: Hi Prateek,
It is not the case that FITSProjection can only make projections of the entire domain width. If the documentation says that, then it is in error. You can supply a “width” parameter, e.g. width=(500.,”kpc”).
Please try that and let us know if it works.
Best,
John Z
Sent from my iPhone
On Jul 20, 2018, at 7:07 AM, Prateek Gupta
wrote: Hello, yt-users,
I am using yt.FITSProjection to write the field projection to a FITS file. As stated in the documentation, it always makes projections of the width of domain size. But I need to make the FITS projection plot with defined width or arbitrary box size. Is there any way to do so?
I tried with Geometry Data objects as it contains the data set as a whole but problem is that it doesn't have the coordinates attribute. Is there any way to take out the coordinate info also, or create a small dataset of ENZO simulation (cube of small size).
Thanks, -Prateek _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
Hi Prateek, Not stupid at all—you are correct that the documentation is very out of date (at least on this point) and needs updating. The FITS image documentation comes from a Jupyter notebook and can be edited as such. Please submit a pull request to our GitHub repo! You can find some documentation on contributing to yt here: http://yt-project.org/doc/developing/developing.html#sharing-changes Let us know if you have any other questions. Best, John Z Sent from my iPhone
On Jul 20, 2018, at 10:51 AM, Prateek Gupta
wrote: Thanks, John,
How stupid I am, just because of documentation, I didn't even try width once although I knew it and instead of it, I tried everything. I wasted so much time on it. Thank you so much.
I think a little correction is required on this following page or maybe I took it differently (please have a look). http://yt-project.org/doc/visualizing/writing_fits_images.html Documentation::: "which took the same parameters as ProjectionPlot except the width, because FITSProjection and FITSSlice always make slices and projections of the width of the domain size, at the finest resolution available in the simulation, in a unit determined to be appropriate for the physical size of the dataset."
and if allowed please let me know how I can modify the yt-documentation page?
Many Thanks to you, -Prateek
On Fri, Jul 20, 2018 at 5:42 PM, John ZuHone
wrote: Hi Prateek, It is not the case that FITSProjection can only make projections of the entire domain width. If the documentation says that, then it is in error. You can supply a “width” parameter, e.g. width=(500.,”kpc”).
Please try that and let us know if it works.
Best,
John Z
Sent from my iPhone
On Jul 20, 2018, at 7:07 AM, Prateek Gupta
wrote: Hello, yt-users,
I am using yt.FITSProjection to write the field projection to a FITS file. As stated in the documentation, it always makes projections of the width of domain size. But I need to make the FITS projection plot with defined width or arbitrary box size. Is there any way to do so?
I tried with Geometry Data objects as it contains the data set as a whole but problem is that it doesn't have the coordinates attribute. Is there any way to take out the coordinate info also, or create a small dataset of ENZO simulation (cube of small size).
Thanks, -Prateek _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
Dear Nathan and John Z,
I think I made the changes and also made a pull request.
Please check once. It's my first pull request.
Many thanks,
-Prateek
On Fri, Jul 20, 2018 at 8:27 PM, John ZuHone
Hi Prateek,
Not stupid at all—you are correct that the documentation is very out of date (at least on this point) and needs updating.
The FITS image documentation comes from a Jupyter notebook and can be edited as such. Please submit a pull request to our GitHub repo!
You can find some documentation on contributing to yt here:
http://yt-project.org/doc/developing/developing.html#sharing-changes
Let us know if you have any other questions.
Best,
John Z
Sent from my iPhone
On Jul 20, 2018, at 10:51 AM, Prateek Gupta
wrote: Thanks, John,
How stupid I am, just because of documentation, I didn't even try width once although I knew it and instead of it, I tried everything. I wasted so much time on it. Thank you so much.
I think a little correction is required on this following page or maybe I took it differently (please have a look). http://yt-project.org/doc/visualizing/writing_fits_images.html Documentation::: "which took the same parameters as ProjectionPlot except the width, because FITSProjection and FITSSlice always make slices and projections of the width of the domain size, at the finest resolution available in the simulation, in a unit determined to be appropriate for the physical size of the dataset."
and if allowed please let me know how I can modify the yt-documentation page?
Many Thanks to you, -Prateek
On Fri, Jul 20, 2018 at 5:42 PM, John ZuHone
wrote: Hi Prateek,
It is not the case that FITSProjection can only make projections of the entire domain width. If the documentation says that, then it is in error. You can supply a “width” parameter, e.g. width=(500.,”kpc”).
Please try that and let us know if it works.
Best,
John Z
Sent from my iPhone
On Jul 20, 2018, at 7:07 AM, Prateek Gupta
wrote: Hello, yt-users,
I am using yt.FITSProjection to write the field projection to a FITS file. As stated in the documentation, it always makes projections of the width of domain size. But I need to make the FITS projection plot with defined width or arbitrary box size. Is there any way to do so?
I tried with Geometry Data objects as it contains the data set as a whole but problem is that it doesn't have the coordinates attribute. Is there any way to take out the coordinate info also, or create a small dataset of ENZO simulation (cube of small size).
Thanks, -Prateek _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
participants (3)
-
John ZuHone
-
Nathan Goldbaum
-
Prateek Gupta