Is there a way to interpolate GADGET images?
Hey everyone,
If you look at this GADGET notebook [1] and specifically the very
last image of the disk galaxy you will see that the final image is
very blocky. And though that makes sense, is there way to interpolate
to get a smooth image?
IE... is there a way to say I want an 800x600 pixel images where
the pixels smoothly interpolate over this particle data so there is no
blockiness?
[1] http://yt-project.org/docs/dev/cookbook/gadget_notebook.html
--
------------------------------------------------------------------------
Joseph Smidt
Hi Joseph, It's not an exact answer to what you're looking for but one thing you can do to help is force an over refining in the octree building (i.e. each 'False' in the octree will still have 8 child cells instead of being the terminal point in the refinement). So, based on the above notebook, you could load doing something like:
ds = yt.load(fname,unit_base=unit_base,bounding_box = bbox, over_refine_factor = 1)
and you can increase over_refine_factor accordingly beyond 1 of course too.
(The default is 0). Note though that it can get very taxing on the memory
to go even beyond over_refine_factor=2.
-d
On Mon, Apr 13, 2015 at 1:27 PM, Joseph Smidt
Hey everyone,
If you look at this GADGET notebook [1] and specifically the very last image of the disk galaxy you will see that the final image is very blocky. And though that makes sense, is there way to interpolate to get a smooth image?
IE... is there a way to say I want an 800x600 pixel images where the pixels smoothly interpolate over this particle data so there is no blockiness?
[1] http://yt-project.org/docs/dev/cookbook/gadget_notebook.html
-- ------------------------------------------------------------------------ Joseph Smidt
Theoretical Division P.O. Box 1663, Mail Stop B283 Los Alamos, NM 87545 Office: 505-665-9752 Fax: 505-667-1931 _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hey, that over_refine_factor=2 suggestion works pretty well. Thanks.
On Mon, Apr 13, 2015 at 11:27 AM, Joseph Smidt
Hey everyone,
If you look at this GADGET notebook [1] and specifically the very last image of the disk galaxy you will see that the final image is very blocky. And though that makes sense, is there way to interpolate to get a smooth image?
IE... is there a way to say I want an 800x600 pixel images where the pixels smoothly interpolate over this particle data so there is no blockiness?
[1] http://yt-project.org/docs/dev/cookbook/gadget_notebook.html
-- ------------------------------------------------------------------------ Joseph Smidt
Theoretical Division P.O. Box 1663, Mail Stop B283 Los Alamos, NM 87545 Office: 505-665-9752 Fax: 505-667-1931
--
------------------------------------------------------------------------
Joseph Smidt
PS. It works so good that if anyone owns that Gadget analysis
notebook I think it could be very helpful to add how to imporve the
image resolution quality like this.
On Mon, Apr 13, 2015 at 1:47 PM, Joseph Smidt
Hey, that over_refine_factor=2 suggestion works pretty well. Thanks.
On Mon, Apr 13, 2015 at 11:27 AM, Joseph Smidt
wrote: Hey everyone,
If you look at this GADGET notebook [1] and specifically the very last image of the disk galaxy you will see that the final image is very blocky. And though that makes sense, is there way to interpolate to get a smooth image?
IE... is there a way to say I want an 800x600 pixel images where the pixels smoothly interpolate over this particle data so there is no blockiness?
[1] http://yt-project.org/docs/dev/cookbook/gadget_notebook.html
-- ------------------------------------------------------------------------ Joseph Smidt
Theoretical Division P.O. Box 1663, Mail Stop B283 Los Alamos, NM 87545 Office: 505-665-9752 Fax: 505-667-1931
-- ------------------------------------------------------------------------ Joseph Smidt
Theoretical Division P.O. Box 1663, Mail Stop B283 Los Alamos, NM 87545 Office: 505-665-9752 Fax: 505-667-1931
--
------------------------------------------------------------------------
Joseph Smidt
Hi Joseph,
We all own the notebook! You can find the notebook (in your equivalent of):
/Users/desika/yt-x86_64/src/yt-hg/doc/source/cookbook
I think it's called yt_gadget_analysis.ipynb
and I think there's docs on how to contribute to the docs here:
http://yt-project.org/docs/dev/developing/index.html
and
http://yt-project.org/docs/dev/developing/building_the_docs.html#how-to-writ...
cheers,
desika
On Mon, Apr 13, 2015 at 3:50 PM, Joseph Smidt
PS. It works so good that if anyone owns that Gadget analysis notebook I think it could be very helpful to add how to imporve the image resolution quality like this.
On Mon, Apr 13, 2015 at 1:47 PM, Joseph Smidt
wrote: Hey, that over_refine_factor=2 suggestion works pretty well. Thanks.
On Mon, Apr 13, 2015 at 11:27 AM, Joseph Smidt
wrote: Hey everyone,
If you look at this GADGET notebook [1] and specifically the very last image of the disk galaxy you will see that the final image is very blocky. And though that makes sense, is there way to interpolate to get a smooth image?
IE... is there a way to say I want an 800x600 pixel images where the pixels smoothly interpolate over this particle data so there is no blockiness?
[1] http://yt-project.org/docs/dev/cookbook/gadget_notebook.html
-- ------------------------------------------------------------------------ Joseph Smidt
Theoretical Division P.O. Box 1663, Mail Stop B283 Los Alamos, NM 87545 Office: 505-665-9752 Fax: 505-667-1931
-- ------------------------------------------------------------------------ Joseph Smidt
Theoretical Division P.O. Box 1663, Mail Stop B283 Los Alamos, NM 87545 Office: 505-665-9752 Fax: 505-667-1931
-- ------------------------------------------------------------------------ Joseph Smidt
Theoretical Division P.O. Box 1663, Mail Stop B283 Los Alamos, NM 87545 Office: 505-665-9752 Fax: 505-667-1931 _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Desika Narayanan
-
Joseph Smidt