From leo.p.singer at nasa.gov Thu Mar 1 21:48:52 2018 From: leo.p.singer at nasa.gov (Singer, Leo P. (GSFC-6610)) Date: Thu, 1 Mar 2018 21:48:52 -0500 Subject: [AstroPy] Making a GPL-v2+ Astropy affiliated package Message-ID: <4626E445-598D-4D3C-8259-59F3E2F542A9@nasa.gov> Hi, I am starting the process of moving a large body of my own code [1], which is licensed under GPL-2+, to an Astropy affiliated package. I would like to keep the existing licensing. However, the Astropy affiliated package templated is all BSD licensed. Some files in my project (like setup.py and conftest.py) are largely unmodified from the template. Is this compatible with licensing my own project as a whole as GPL-2+? Is it sufficient to add my own LICENSE.md file, change the "Licensed under a 3-clause BSD style license" comment at the top of setup.py, and change the license entry in setup.cfg? Thanks, Leo ---- Dr. Leo P. Singer NASA Goddard Space Flight Center Astroparticle Physics Laboratory Code 661, 8800 Greenbelt Rd. Greenbelt, MD 20771, U.S.A. [1] https://git.ligo.org/leo-singer/ligo.skymap From astropy at liska.ath.cx Fri Mar 2 02:35:55 2018 From: astropy at liska.ath.cx (Ole Streicher) Date: Fri, 02 Mar 2018 08:35:55 +0100 Subject: [AstroPy] Making a GPL-v2+ Astropy affiliated package References: <4626E445-598D-4D3C-8259-59F3E2F542A9@nasa.gov> Message-ID: <87bmg7q690.fsf@liska.ath.cx> Hi Leo, from a legal POV it is OK to re-use BSD licensed code in a GPL project, like you do. You just need to keep the original license file and copyright notice along with the files. You should (IMO) however *not* remove the license notice from setup.py. I would recommend to adjust that to "This file is taken from the astropy affiliated package template, which is licensed under a 3-clause BSD style license -- see LICENSE-affiliated.txt" or similar. That would document the origin of the file, and you can still use it in a package that is GPL licensed as a whole. It may be however useful to re-think your own license. I think GPL is fine. However, since astropy is BSD (and will stay so), it will be impossible to take over any of your code into astropy itself (or into one of the affiliated packages that stay BSD as well). You still can use GPL packages (healpy and such) while having your own code under a BSD license. I would recommend to be as liberal as possible. Best regards Ole "Singer, Leo P. (GSFC-6610)" writes: > Hi, > > I am starting the process of moving a large body of my own code [1], > which is licensed under GPL-2+, to an Astropy affiliated package. I > would like to keep the existing licensing. > > However, the Astropy affiliated package templated is all BSD > licensed. Some files in my project (like setup.py and conftest.py) are > largely unmodified from the template. Is this compatible with > licensing my own project as a whole as GPL-2+? Is it sufficient to add > my own LICENSE.md file, change the "Licensed under a 3-clause BSD > style license" comment at the top of setup.py, and change the license > entry in setup.cfg? > > Thanks, > Leo > > ---- > Dr. Leo P. Singer > NASA Goddard Space Flight Center > Astroparticle Physics Laboratory > Code 661, 8800 Greenbelt Rd. > Greenbelt, MD 20771, U.S.A. > > > [1] https://git.ligo.org/leo-singer/ligo.skymap > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy From martinberoiz at gmail.com Fri Mar 2 16:20:14 2018 From: martinberoiz at gmail.com (Martin Beroiz) Date: Fri, 2 Mar 2018 15:20:14 -0600 Subject: [AstroPy] Making a GPL-v2+ Astropy affiliated package In-Reply-To: <87bmg7q690.fsf@liska.ath.cx> References: <4626E445-598D-4D3C-8259-59F3E2F542A9@nasa.gov> <87bmg7q690.fsf@liska.ath.cx> Message-ID: Hello, I also have a python module [1] that I would like to put into consideration for affiliation with astropy. How do you start that process? Who should I contact? Thanks, Martin. [1]?https://github.com/toros-astro/astroalign/ On Mar 2, 2018, 1:44 AM -0600, Ole Streicher , wrote: > Hi Leo, > > from a legal POV it is OK to re-use BSD licensed code in a GPL project, > like you do. You just need to keep the original license file and > copyright notice along with the files. You should (IMO) however *not* > remove the license notice from setup.py. I would recommend to adjust > that to "This file is taken from the astropy affiliated package > template, which is licensed under a 3-clause BSD style license -- see > LICENSE-affiliated.txt" or similar. That would document the origin of > the file, and you can still use it in a package that is GPL licensed as > a whole. > > It may be however useful to re-think your own license. I think GPL is > fine. However, since astropy is BSD (and will stay so), it will be > impossible to take over any of your code into astropy itself (or into > one of the affiliated packages that stay BSD as well). You still can use > GPL packages (healpy and such) while having your own code under a BSD > license. I would recommend to be as liberal as possible. > > Best regards > > Ole > > "Singer, Leo P. (GSFC-6610)" writes: > > Hi, > > > > I am starting the process of moving a large body of my own code [1], > > which is licensed under GPL-2+, to an Astropy affiliated package. I > > would like to keep the existing licensing. > > > > However, the Astropy affiliated package templated is all BSD > > licensed. Some files in my project (like setup.py and conftest.py) are > > largely unmodified from the template. Is this compatible with > > licensing my own project as a whole as GPL-2+? Is it sufficient to add > > my own LICENSE.md file, change the "Licensed under a 3-clause BSD > > style license" comment at the top of setup.py, and change the license > > entry in setup.cfg? > > > > Thanks, > > Leo > > > > ---- > > Dr. Leo P. Singer > > NASA Goddard Space Flight Center > > Astroparticle Physics Laboratory > > Code 661, 8800 Greenbelt Rd. > > Greenbelt, MD 20771, U.S.A. > > > > > > [1] https://git.ligo.org/leo-singer/ligo.skymap > > > > _______________________________________________ > > AstroPy mailing list > > AstroPy at python.org > > https://mail.python.org/mailman/listinfo/astropy > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy -------------- next part -------------- An HTML attachment was scrubbed... URL: From aldcroft at head.cfa.harvard.edu Mon Mar 5 06:44:57 2018 From: aldcroft at head.cfa.harvard.edu (Aldcroft, Thomas) Date: Mon, 5 Mar 2018 06:44:57 -0500 Subject: [AstroPy] Making a GPL-v2+ Astropy affiliated package In-Reply-To: References: <4626E445-598D-4D3C-8259-59F3E2F542A9@nasa.gov> <87bmg7q690.fsf@liska.ath.cx> Message-ID: On Fri, Mar 2, 2018 at 4:20 PM, Martin Beroiz wrote: > Hello, > > I also have a python module [1] that I would like to put into > consideration for affiliation with astropy. > How do you start that process? Who should I contact? > Hi Martin, Please read the material at: http://www.astropy.org/affiliated/ In particular the section on "Becoming an Affiliated Package" should get you started. Regards, Tom > > Thanks, > Martin. > > [1] https://github.com/toros-astro/astroalign/ > > > On Mar 2, 2018, 1:44 AM -0600, Ole Streicher , > wrote: > > Hi Leo, > > from a legal POV it is OK to re-use BSD licensed code in a GPL project, > like you do. You just need to keep the original license file and > copyright notice along with the files. You should (IMO) however *not* > remove the license notice from setup.py. I would recommend to adjust > that to "This file is taken from the astropy affiliated package > template, which is licensed under a 3-clause BSD style license -- see > LICENSE-affiliated.txt" or similar. That would document the origin of > the file, and you can still use it in a package that is GPL licensed as > a whole. > > It may be however useful to re-think your own license. I think GPL is > fine. However, since astropy is BSD (and will stay so), it will be > impossible to take over any of your code into astropy itself (or into > one of the affiliated packages that stay BSD as well). You still can use > GPL packages (healpy and such) while having your own code under a BSD > license. I would recommend to be as liberal as possible. > > Best regards > > Ole > > "Singer, Leo P. (GSFC-6610)" writes: > > Hi, > > I am starting the process of moving a large body of my own code [1], > which is licensed under GPL-2+, to an Astropy affiliated package. I > would like to keep the existing licensing. > > However, the Astropy affiliated package templated is all BSD > licensed. Some files in my project (like setup.py and conftest.py) are > largely unmodified from the template. Is this compatible with > licensing my own project as a whole as GPL-2+? Is it sufficient to add > my own LICENSE.md file, change the "Licensed under a 3-clause BSD > style license" comment at the top of setup.py, and change the license > entry in setup.cfg? > > Thanks, > Leo > > ---- > Dr. Leo P. Singer > NASA Goddard Space Flight Center > Astroparticle Physics Laboratory > Code 661, 8800 Greenbelt Rd. > Greenbelt, MD 20771, U.S.A. > > > [1] https://git.ligo.org/leo-singer/ligo.skymap > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivvv68 at gmail.com Tue Mar 13 17:27:27 2018 From: ivvv68 at gmail.com (Ivan Valtchanov) Date: Tue, 13 Mar 2018 21:27:27 +0000 Subject: [AstroPy] Saving Cutout2D image to FITS Message-ID: Hi all, I've been trying to use astropy.nddata Cutout2D to crop a large image. I don't see how to save the cutout result to a FITS file. cutout.writeto('image.fits') does not work and in the API I cannot find a method in the Cutout2D class that saves the result to a FITS file. is there a way to do it? Thanks, Ivan Valtchanov -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.boch at astro.unistra.fr Tue Mar 13 17:37:09 2018 From: thomas.boch at astro.unistra.fr (Thomas Boch) Date: Tue, 13 Mar 2018 22:37:09 +0100 Subject: [AstroPy] Saving Cutout2D image to FITS In-Reply-To: References: Message-ID: <3e0f660b-ddef-64a9-84bc-8648300e2bf0@astro.unistra.fr> Hi Ivan, the Cutout2D object has attributes /data/ and /wcs/ which can be used to create an astropy.io.fits.PrimaryHDU instance that can then be written to a file. Cheers, Thomas Le 13/03/2018 ? 22:27, Ivan Valtchanov a ?crit?: > Hi all, > > I've been trying to useastropy.nddata Cutout2D to crop a large image. > I don't see how to save the cutout result to a FITS file. > cutout.writeto('image.fits') does not work and in the API I cannot > find a method in the Cutout2D class that saves the result to a FITS file. > > is there a way to do it? > > Thanks, > Ivan Valtchanov > > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivvv68 at gmail.com Tue Mar 13 18:56:46 2018 From: ivvv68 at gmail.com (Ivan Valtchanov) Date: Tue, 13 Mar 2018 22:56:46 +0000 Subject: [AstroPy] Saving Cutout2D image to FITS In-Reply-To: <3e0f660b-ddef-64a9-84bc-8648300e2bf0@astro.unistra.fr> References: <3e0f660b-ddef-64a9-84bc-8648300e2bf0@astro.unistra.fr> Message-ID: The following attempt to save a Cutout2D object to a FITS file: ######## from astropy.io import fits from astropy import wcs from astropy.nddata import Cutout2D f = fits.open('fitfile.fits') w = wcs.WCS(f['image'].header) # position = (168,155) shape = (20, 20) cutout = Cutout2D(f['image'].data, position, shape, wcs=w) # # block 2 # hdu = fits.PrimaryHDU() hdu.data = cutout.data hdu.header = f['image'].header hdu.header.update(cutout.wcs.to_header()) hdu.writeto('test_cutout.fits') ######### fails with the following exception: VerifyError: Verification reported errors: HDU 0: 'SIMPLE' card does not exist. Note: astropy.io.fits uses zero-based indexing. While this one is OK: # # block 2 # hdu = fits.PrimaryHDU() hdu2 = fits.ImageHDU(cutout.data) hdu2.header = f['image'].header hdu2.header.update(cutout.wcs.to_header()) hdul = fits.HDUList([hdu,hdu2]) hdul.writeto('test_cutout.fits') ######## Problem solved but it is probably a good idea to have a utility method to save directly a cutout object to a FITS... Thanks, Ivan On Tue, 13 Mar 2018 at 16:38 Thomas Boch wrote: > Hi Ivan, > > the Cutout2D object has attributes *data* and *wcs* which can be used to > create an astropy.io.fits.PrimaryHDU instance that can then be written to a > file. > > Cheers, > > Thomas > > > Le 13/03/2018 ? 22:27, Ivan Valtchanov a ?crit : > > Hi all, > > I've been trying to use astropy.nddata Cutout2D to crop a large image. I > don't see how to save the cutout result to a FITS file. > cutout.writeto('image.fits') does not work and in the API I cannot find a > method in the Cutout2D class that saves the result to a FITS file. > > is there a way to do it? > > Thanks, > Ivan Valtchanov > > > _______________________________________________ > AstroPy mailing listAstroPy at python.orghttps://mail.python.org/mailman/listinfo/astropy > > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsipocz at gmail.com Wed Mar 14 12:46:13 2018 From: bsipocz at gmail.com (Brigitta Sipocz) Date: Wed, 14 Mar 2018 16:46:13 +0000 Subject: [AstroPy] ANN: astropy bugfix releases v3.0.1 and v2.0.5 (LTS) Message-ID: Dear all, Bugfix releases have been made for both the stable (v3.0.1) and LTS (v2.0.5) edition of astropy. They are available either on PyPI or on the usual conda channels. These releases contain the fix for a security vulnerability in the cfitsio library that was identified recently. The full list of fixes can be found in the changelog: https://github.com/astropy/astropy/blob/v3.0.1/CHANGES.rst Thank you for everyone who contributed for these releases! Cheers, Brigitta -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon at sconseil.fr Wed Mar 14 18:08:16 2018 From: simon at sconseil.fr (Simon Conseil) Date: Wed, 14 Mar 2018 23:08:16 +0100 Subject: [AstroPy] Saving Cutout2D image to FITS In-Reply-To: References: <3e0f660b-ddef-64a9-84bc-8648300e2bf0@astro.unistra.fr> Message-ID: <8634d5d7-7e16-1d93-85ae-51fce3b6caf7@sconseil.fr> Hi, Le 13/03/2018 ? 23:56, Ivan Valtchanov a ?crit?: > The following attempt to save a Cutout2D object to a FITS file: > > ######## > from astropy.io import fits > from astropy import wcs > from astropy.nddata import Cutout2D > > f = fits.open('fitfile.fits') > w = wcs.WCS(f['image'].header) > # > position = (168,155) > shape = (20, 20) > cutout = Cutout2D(f['image'].data, position, shape, wcs=w) > # > # block 2 > # > hdu = fits.PrimaryHDU() > hdu.data = cutout.data > hdu.header = f['image'].header > hdu.header.update(cutout.wcs.to_header()) > hdu.writeto('test_cutout.fits') > ######### > > fails with the following exception: > > VerifyError: > Verification reported errors: > HDU 0: > ??? 'SIMPLE' card does not exist. > Note: astropy.io.fits uses zero-based indexing. > Because you are overwriting the header and losing some useful keywords, when doing "hdu.header = f['image'].header". Here is a revised version which works: hdu = fits.PrimaryHDU(data=cutout.data, header=f['image'].header) hdu.header.update(cutout.wcs.to_header()) hdu.writeto('test_cutout.fits') Simon > While this one is OK: > # > # block 2 > # > hdu = fits.PrimaryHDU() > hdu2 = fits.ImageHDU(cutout.data) > hdu2.header = f['image'].header > hdu2.header.update(cutout.wcs.to_header()) > hdul = fits.HDUList([hdu,hdu2]) > hdul.writeto('test_cutout.fits') > ######## > > Problem solved but it is probably a good idea to have a utility method > to save directly a cutout object to a FITS... > > Thanks, > Ivan > > > On Tue, 13 Mar 2018 at 16:38 Thomas Boch > wrote: > > Hi Ivan, > > the Cutout2D object has attributes /data/ and /wcs/ which can be > used to create an astropy.io.fits.PrimaryHDU instance that can > then be written to a file. > > Cheers, > > Thomas > > > Le 13/03/2018 ? 22:27, Ivan Valtchanov a ?crit?: >> Hi all, >> >> I've been trying to useastropy.nddata Cutout2D to crop a large >> image. I don't see how to save the cutout result to a FITS file. >> cutout.writeto('image.fits') does not work and in the API I >> cannot find a method in the Cutout2D class that saves the result >> to a FITS file. >> >> is there a way to do it? >> >> Thanks, >> Ivan Valtchanov >> >> >> _______________________________________________ >> AstroPy mailing list >> AstroPy at python.org >> https://mail.python.org/mailman/listinfo/astropy > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy -------------- next part -------------- An HTML attachment was scrubbed... URL: From npross at roe.ac.uk Sun Mar 18 14:38:58 2018 From: npross at roe.ac.uk (Nicholas Ross) Date: Sun, 18 Mar 2018 18:38:58 +0000 Subject: [AstroPy] Current best replacement for splot In-Reply-To: References: Message-ID: Dear All, A colleague has suggested I use splot for investigating some optical spectra. However, I don?t have IRAF installed, and would be much keener to use a Python tool here. I know PyRAF exists, but the examples there seem extremely minimal. Aside from writing one?s own Python/AstroPy reader code, what is the current best replacement for splot and looking at e.g. optical spectra FITS data?? Yours, Nic From pweilbacher at aip.de Sun Mar 18 18:08:01 2018 From: pweilbacher at aip.de (Peter Weilbacher) Date: Sun, 18 Mar 2018 23:08:01 +0100 (CET) Subject: [AstroPy] Current best replacement for splot In-Reply-To: References: Message-ID: Hi Nic, this is tough. splot for many people is still the #1 reason to install IRAF. I think SpecViz (http://specviz.readthedocs.io/en/v0.4.4/index.html) is meant as a Python replacement. Judging from the docs, its interface seems to be a lot more complicated (nothing easier than pressing k-k to measure a line with splot), although probably more powerful in the long run. When I tried it a few weeks ago, I didn't even manage to load one of my FITS spectra. Maybe you have more luck... Peter. On Sun, 18 Mar 2018, Nicholas Ross wrote: > Dear All, > > A colleague has suggested I use splot for investigating some optical spectra. > However, I don?t have IRAF installed, and would be much keener to use a > Python tool here. > > I know PyRAF exists, but the examples there seem extremely minimal. > Aside from writing one?s own Python/AstroPy reader code, what is the > current best replacement for splot and looking at e.g. optical spectra > FITS data?? > > Yours, > Nic -- Dr. Peter M. Weilbacher http://www.aip.de/People/PWeilbacher Phone +49 331 74 99-667 encryption key ID 7D6B4AA0 ------------------------------------------------------------------------ Leibniz-Institut f?r Astrophysik Potsdam (AIP) An der Sternwarte 16, D-14482 Potsdam Vorstand: Prof. Dr. Matthias Steinmetz, Matthias Winker Stiftung b?rgerlichen Rechts, Stiftungsverz. Brandenburg: 26 742-00/7026 From adam.g.ginsburg at gmail.com Sun Mar 18 18:22:10 2018 From: adam.g.ginsburg at gmail.com (Adam Ginsburg) Date: Sun, 18 Mar 2018 22:22:10 +0000 Subject: [AstroPy] Current best replacement for splot In-Reply-To: References: Message-ID: Hi Nic, pyspeckit (pyspeckit.readthedocs.io) is a reasonable replacement. Its UI was inspired by splot, though it has a different set of keybindings. This page: http://pyspeckit.readthedocs.io/en/latest/interactive.html shows an interactive example that's similar to splot. Longer term, the astropy project includes development on several spectroscopy-related tools including visualization, but these tools are still in an early stage of development. On Sun, Mar 18, 2018 at 10:08 PM, Peter Weilbacher wrote: > Hi Nic, > > this is tough. splot for many people is still the #1 reason to install > IRAF. > > I think SpecViz (http://specviz.readthedocs.io/en/v0.4.4/index.html) is > meant as a Python replacement. Judging from the docs, its interface > seems to be a lot more complicated (nothing easier than pressing k-k to > measure a line with splot), although probably more powerful in the long > run. > When I tried it a few weeks ago, I didn't even manage to load one of my > FITS spectra. Maybe you have more luck... > > Peter. > > On Sun, 18 Mar 2018, Nicholas Ross wrote: > > > Dear All, > > > > A colleague has suggested I use splot for investigating some optical > spectra. > > However, I don?t have IRAF installed, and would be much keener to use a > > Python tool here. > > > > I know PyRAF exists, but the examples there seem extremely minimal. > > Aside from writing one?s own Python/AstroPy reader code, what is the > > current best replacement for splot and looking at e.g. optical spectra > > FITS data?? > > > > Yours, > > Nic > > -- > Dr. Peter M. Weilbacher http://www.aip.de/People/PWeilbacher > Phone +49 331 74 99-667 encryption key ID 7D6B4AA0 > ------------------------------------------------------------------------ > Leibniz-Institut f?r Astrophysik Potsdam (AIP) > An der Sternwarte 16, D-14482 Potsdam > > Vorstand: Prof. Dr. Matthias Steinmetz, Matthias Winker > Stiftung b?rgerlichen Rechts, Stiftungsverz. Brandenburg: 26 742-00/7026 > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > -- Adam Ginsburg Jansky fellow, National Radio Astronomy Observatory http://www.adamgginsburg.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From xavier at ucolick.org Sun Mar 18 18:26:25 2018 From: xavier at ucolick.org (J. Xavier Prochaska) Date: Sun, 18 Mar 2018 15:26:25 -0700 Subject: [AstroPy] Current best replacement for splot In-Reply-To: References: Message-ID: I'm also rather happy with our GUI in linetools: http://linetools.readthedocs.io/en/latest/ See here for details: http://linetools.readthedocs.io/en/latest/xspecgui.html Cheers, X On Sun, Mar 18, 2018 at 3:22 PM, Adam Ginsburg wrote: > Hi Nic, > pyspeckit (pyspeckit.readthedocs.io) is a reasonable replacement. > Its UI was inspired by splot, though it has a different set of > keybindings. This page: > http://pyspeckit.readthedocs.io/en/latest/interactive.html > shows an interactive example that's similar to splot. > > Longer term, the astropy project includes development on several > spectroscopy-related tools including visualization, but these tools are > still in an early stage of development. > > On Sun, Mar 18, 2018 at 10:08 PM, Peter Weilbacher > wrote: > >> Hi Nic, >> >> this is tough. splot for many people is still the #1 reason to install >> IRAF. >> >> I think SpecViz (http://specviz.readthedocs.io/en/v0.4.4/index.html) is >> meant as a Python replacement. Judging from the docs, its interface >> seems to be a lot more complicated (nothing easier than pressing k-k to >> measure a line with splot), although probably more powerful in the long >> run. >> When I tried it a few weeks ago, I didn't even manage to load one of my >> FITS spectra. Maybe you have more luck... >> >> Peter. >> >> On Sun, 18 Mar 2018, Nicholas Ross wrote: >> >> > Dear All, >> > >> > A colleague has suggested I use splot for investigating some optical >> spectra. >> > However, I don?t have IRAF installed, and would be much keener to use a >> > Python tool here. >> > >> > I know PyRAF exists, but the examples there seem extremely minimal. >> > Aside from writing one?s own Python/AstroPy reader code, what is the >> > current best replacement for splot and looking at e.g. optical spectra >> > FITS data?? >> > >> > Yours, >> > Nic >> >> -- >> Dr. Peter M. Weilbacher http://www.aip.de/People/PWeilbacher >> Phone +49 331 74 99-667 encryption key ID 7D6B4AA0 >> ------------------------------------------------------------------------ >> Leibniz-Institut f?r Astrophysik Potsdam (AIP) >> An der Sternwarte 16, D-14482 Potsdam >> >> Vorstand: Prof. Dr. Matthias Steinmetz, Matthias Winker >> Stiftung b?rgerlichen Rechts, Stiftungsverz. Brandenburg: 26 742-00/7026 >> _______________________________________________ >> AstroPy mailing list >> AstroPy at python.org >> https://mail.python.org/mailman/listinfo/astropy >> > > > > -- > Adam Ginsburg > Jansky fellow, National Radio Astronomy Observatory > http://www.adamgginsburg.com/ > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > -- -- ---------------------------------------------- J. Xavier Prochaska UCO/Lick Observatory 1156 High St. UC Santa Cruz Santa Cruz, CA 95064 Affiliate of IPMU Affiliate of LBNL http://www.ucolick.org/~xavier/ http://imps.ucolick.org/ http://k1dm3.ucolick.org/ https://github.com/linetools/linetools https://github.com/pyigm/pyigm https://github.com/specdb/specdb 831-459-2135 (Direct) 831-459-2991 (UCO/Lick Main) 831-459-5244 (Fax) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashill at astro.ubc.ca Fri Mar 23 19:58:05 2018 From: ashill at astro.ubc.ca (Hill, Alex) Date: Fri, 23 Mar 2018 23:58:05 +0000 Subject: [AstroPy] FITS cube with Faraday depth axis Message-ID: Hi all, I?m working with Faraday depth FITS cubes, where CTYPE3 = ?RM? and CUNIT3 = ?rad/m2'. (CTYPE1=?GLON-CAR? and CTYPE2=?GLAT-CAR?.) I would like to treat the Faraday depth cube like a spectral cube, for example calculating moments. I?m trying to load the cube using SpectralCube.read. It fails to read because the RM axis is not recognized as a spectral axis. Instead, the coordinate type for the RM axis is None: w.get_axis_types() output: [{'coordinate_type': 'celestial', 'group': 0, 'number': 0, 'scale': 'non-linear celestial'}, {'coordinate_type': 'celestial', 'group': 0, 'number': 1, 'scale': 'non-linear celestial'}, {'coordinate_type': None, 'group': 0, 'number': 0, 'scale': 'linear'}] I can hack it to work by loading the FITS header and changing the RM axis to a velocity axis: hdr['CTYPE3'] = 'VELO-LSR' hdr['CUNIT3'] = 'm/s' w = wcs.WCS(hdr) and then pass the data and hacked header to SpectralCube. However, is there a way to cleanly recognize a Faraday depth axis as a spectral axis? It looks to me like this would be somewhere in the WCS class, but I can?t find where in the code VELO-LSR, for example, gets recognized as a spectral axis. Cheers, Alex --------- Alex Hill University of British Columbia and Space Science Institute email: ashill at astro.ubc.ca Based at Dominion Radio Astrophysical Observatory, National Research Council Canada Mailing: PO Box 248, Penticton, BC V2A 6K3, Canada Physical: 717 White Lake Road, Kaleden, BC V0H 1K0, Canada phone: +1 250-497-2356 From adam.g.ginsburg at gmail.com Fri Mar 23 20:09:22 2018 From: adam.g.ginsburg at gmail.com (Adam Ginsburg) Date: Fri, 23 Mar 2018 18:09:22 -0600 Subject: [AstroPy] FITS cube with Faraday depth axis In-Reply-To: References: Message-ID: Hi Alex, The axis type recognition happens in the underlying wcslib library. Is there a standard for the RM axis in the FITS standard? If so, we should implement it, and you should raise an issue on spectral-cube for us to do that (https://github.com/radio-astro-tools/spectral-cube/). If not, though, I think the hack approach you've taken is the best we can do. We could also add your hack to spectral-cube and force it to interpret an 'RM' axis as some sort of spectral type, but I'm not sure how to handle units and we would have to disable spectral axis conversion. In any case, I suggest taking this off the astropy general list to an Issue on spectral-cube. We can probably figure out how to solve this problem. On Fri, Mar 23, 2018 at 5:58 PM, Hill, Alex wrote: > Hi all, > > I?m working with Faraday depth FITS cubes, where CTYPE3 = ?RM? and CUNIT3 > = ?rad/m2'. (CTYPE1=?GLON-CAR? and CTYPE2=?GLAT-CAR?.) > > I would like to treat the Faraday depth cube like a spectral cube, for > example calculating moments. > > I?m trying to load the cube using SpectralCube.read. It fails to read > because the RM axis is not recognized as a spectral axis. Instead, the > coordinate type for the RM axis is None: > w.get_axis_types() > output: > [{'coordinate_type': 'celestial', > 'group': 0, > 'number': 0, > 'scale': 'non-linear celestial'}, > {'coordinate_type': 'celestial', > 'group': 0, > 'number': 1, > 'scale': 'non-linear celestial'}, > {'coordinate_type': None, 'group': 0, 'number': 0, 'scale': 'linear'}] > > I can hack it to work by loading the FITS header and changing the RM axis > to a velocity axis: > hdr['CTYPE3'] = 'VELO-LSR' > hdr['CUNIT3'] = 'm/s' > w = wcs.WCS(hdr) > and then pass the data and hacked header to SpectralCube. > > However, is there a way to cleanly recognize a Faraday depth axis as a > spectral axis? > > It looks to me like this would be somewhere in the WCS class, but I can?t > find where in the code VELO-LSR, for example, gets recognized as a spectral > axis. > > Cheers, > Alex > > --------- > Alex Hill > University of British Columbia and Space Science Institute > email: ashill at astro.ubc.ca > > Based at > Dominion Radio Astrophysical Observatory, National Research Council Canada > Mailing: PO Box 248, Penticton, BC V2A 6K3, Canada > Physical: 717 White Lake Road, Kaleden, BC V0H 1K0, Canada > > phone: +1 250-497-2356 > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > -- Adam Ginsburg Jansky fellow, National Radio Astronomy Observatory http://www.adamgginsburg.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashill at astro.ubc.ca Fri Mar 23 23:48:08 2018 From: ashill at astro.ubc.ca (Hill, Alex) Date: Sat, 24 Mar 2018 03:48:08 +0000 Subject: [AstroPy] FITS cube with Faraday depth axis In-Reply-To: References: Message-ID: <53A39FBE-C318-4640-AB9A-5FC2AF10A40C@astro.ubc.ca> Thanks, Adam. I do not see a standard for RM in the FITS standard definition. I?ll dig some more into generalizing my hack and suggest something on github if I get somewhere. Cheers, Alex --------- Alex Hill University of British Columbia and Space Science Institute email: ashill at astro.ubc.ca Based at Dominion Radio Astrophysical Observatory, National Research Council Canada Mailing: PO Box 248, Penticton, BC V2A 6K3, Canada Physical: 717 White Lake Road, Kaleden, BC V0H 1K0, Canada phone: +1 250-497-2356 > On Mar 23, 2018, at 17:09, Adam Ginsburg wrote: > > Hi Alex, > The axis type recognition happens in the underlying wcslib library. Is there a standard for the RM axis in the FITS standard? If so, we should implement it, and you should raise an issue on spectral-cube for us to do that (https://github.com/radio-astro-tools/spectral-cube/). > If not, though, I think the hack approach you've taken is the best we can do. We could also add your hack to spectral-cube and force it to interpret an 'RM' axis as some sort of spectral type, but I'm not sure how to handle units and we would have to disable spectral axis conversion. > > In any case, I suggest taking this off the astropy general list to an Issue on spectral-cube. We can probably figure out how to solve this problem. > > On Fri, Mar 23, 2018 at 5:58 PM, Hill, Alex wrote: > Hi all, > > I?m working with Faraday depth FITS cubes, where CTYPE3 = ?RM? and CUNIT3 = ?rad/m2'. (CTYPE1=?GLON-CAR? and CTYPE2=?GLAT-CAR?.) > > I would like to treat the Faraday depth cube like a spectral cube, for example calculating moments. > > I?m trying to load the cube using SpectralCube.read. It fails to read because the RM axis is not recognized as a spectral axis. Instead, the coordinate type for the RM axis is None: > w.get_axis_types() > output: > [{'coordinate_type': 'celestial', > 'group': 0, > 'number': 0, > 'scale': 'non-linear celestial'}, > {'coordinate_type': 'celestial', > 'group': 0, > 'number': 1, > 'scale': 'non-linear celestial'}, > {'coordinate_type': None, 'group': 0, 'number': 0, 'scale': 'linear'}] > > I can hack it to work by loading the FITS header and changing the RM axis to a velocity axis: > hdr['CTYPE3'] = 'VELO-LSR' > hdr['CUNIT3'] = 'm/s' > w = wcs.WCS(hdr) > and then pass the data and hacked header to SpectralCube. > > However, is there a way to cleanly recognize a Faraday depth axis as a spectral axis? > > It looks to me like this would be somewhere in the WCS class, but I can?t find where in the code VELO-LSR, for example, gets recognized as a spectral axis. > > Cheers, > Alex > > --------- > Alex Hill > University of British Columbia and Space Science Institute > email: ashill at astro.ubc.ca > > Based at > Dominion Radio Astrophysical Observatory, National Research Council Canada > Mailing: PO Box 248, Penticton, BC V2A 6K3, Canada > Physical: 717 White Lake Road, Kaleden, BC V0H 1K0, Canada > > phone: +1 250-497-2356 > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > > > -- > Adam Ginsburg > Jansky fellow, National Radio Astronomy Observatory > http://www.adamgginsburg.com/ > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy From kennethadammiller at gmail.com Wed Mar 28 10:01:42 2018 From: kennethadammiller at gmail.com (Kenneth Adam Miller) Date: Wed, 28 Mar 2018 10:01:42 -0400 Subject: [AstroPy] Project Examples Message-ID: Hello, I'm a PhD student at Purdue university, and I'm working on some private endeavors on my own. I would like to describe them at length to someone who might be interested in cooperating or helping. I want to automate the process of creating human-usable galaxy and astronomy pictures from raw telescope data. I need some python examples that allow me to: 1. Pull disparate wavelength data from a remote server so that the coordinates and time are coherent 2. Process the result into an image of an arbitrary size and precision 3. Designate the wavelength interval mappings Is there anyone that would be willing to talk to me on the phone shortly? I want to communicate my project goals in the hopes that perhaps there are some existing software libraries that can be shared or explained at length or a mailing list. I've crawled the webpages for information, although some of what I've asked might be there, I think the contact would always be helpful in the least. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kellecruz at gmail.com Wed Mar 28 10:25:10 2018 From: kellecruz at gmail.com (Kelle Cruz) Date: Wed, 28 Mar 2018 14:25:10 +0000 Subject: [AstroPy] Project Examples In-Reply-To: References: Message-ID: Hi Kenneth, This tutorial covers some of the topics you mentioned: http://astropy-tutorials.readthedocs.io/en/latest/rst-tutorials/FITS-images.html I?m a bit confused about what you mean by ?wavelength interval mappings?. Are you talking about spectroscopic data are combining multiple images into a color image? If it?s the latter, here?s the RGB example: http://docs.astropy.org/en/stable/visualization/lupton_rgb.html Hope this helps, Kelle On Wed, Mar 28, 2018 at 10:02 AM Kenneth Adam Miller < kennethadammiller at gmail.com> wrote: > Hello, > > > I'm a PhD student at Purdue university, and I'm working on some private > endeavors on my own. I would like to describe them at length to someone who > might be interested in cooperating or helping. > > I want to automate the process of creating human-usable galaxy and > astronomy pictures from raw telescope data. I need some python examples > that allow me to: > > > 1. Pull disparate wavelength data from a remote server so that the > coordinates and time are coherent > 2. Process the result into an image of an arbitrary size and precision > 3. Designate the wavelength interval mappings > > > > Is there anyone that would be willing to talk to me on the phone shortly? > I want to communicate my project goals in the hopes that perhaps there are > some existing software libraries that can be shared or explained at length > or a mailing list. I've crawled the webpages for information, although some > of what I've asked might be there, I think the contact would always be > helpful in the least. > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > -- kelle (via iOS) -------------- next part -------------- An HTML attachment was scrubbed... URL: From kennethadammiller at gmail.com Wed Mar 28 13:24:56 2018 From: kennethadammiller at gmail.com (Kenneth Adam Miller) Date: Wed, 28 Mar 2018 13:24:56 -0400 Subject: [AstroPy] Project Examples In-Reply-To: References: Message-ID: Thank you so much!! Yes, I am combining multiple images into a color image, like what you see of the famous photos that are so beautiful. How can I pull as much fits images as possible of various spectroscopic data that are of a common space? And how can I change the targeted space? On Wed, Mar 28, 2018 at 10:25 AM, Kelle Cruz wrote: > Hi Kenneth, > > This tutorial covers some of the topics you mentioned: > http://astropy-tutorials.readthedocs.io/en/latest/rst- > tutorials/FITS-images.html > > I?m a bit confused about what you mean by ?wavelength interval mappings?. > Are you talking about spectroscopic data are combining multiple images into > a color image? If it?s the latter, here?s the RGB example: > > http://docs.astropy.org/en/stable/visualization/lupton_rgb.html > > Hope this helps, > Kelle > > On Wed, Mar 28, 2018 at 10:02 AM Kenneth Adam Miller < > kennethadammiller at gmail.com> wrote: > >> Hello, >> >> >> I'm a PhD student at Purdue university, and I'm working on some private >> endeavors on my own. I would like to describe them at length to someone who >> might be interested in cooperating or helping. >> >> I want to automate the process of creating human-usable galaxy and >> astronomy pictures from raw telescope data. I need some python examples >> that allow me to: >> >> >> 1. Pull disparate wavelength data from a remote server so that the >> coordinates and time are coherent >> 2. Process the result into an image of an arbitrary size and >> precision >> 3. Designate the wavelength interval mappings >> >> >> >> Is there anyone that would be willing to talk to me on the phone shortly? >> I want to communicate my project goals in the hopes that perhaps there are >> some existing software libraries that can be shared or explained at length >> or a mailing list. I've crawled the webpages for information, although some >> of what I've asked might be there, I think the contact would always be >> helpful in the least. >> >> _______________________________________________ >> AstroPy mailing list >> AstroPy at python.org >> https://mail.python.org/mailman/listinfo/astropy >> > -- > kelle (via iOS) > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From npkuin at gmail.com Wed Mar 28 15:08:14 2018 From: npkuin at gmail.com (Paul Kuin) Date: Wed, 28 Mar 2018 20:08:14 +0100 Subject: [AstroPy] Project Examples In-Reply-To: References: Message-ID: <34CEC73B-47E3-4E28-94DF-06CB120AE967@gmail.com> checkout ds9 to combine 3 images into an rgb image there are data archives, like MAST, at ESO, etc. it would make sense to start with data taken with one instrument, then expand to other areas. cheers, - Paul > On 28 Mar 2018, at 18:24, Kenneth Adam Miller wrote: > > Thank you so much!! > > Yes, I am combining multiple images into a color image, like what you see of the famous photos that are so beautiful. > > How can I pull as much fits images as possible of various spectroscopic data that are of a common space? And how can I change the targeted space? > > On Wed, Mar 28, 2018 at 10:25 AM, Kelle Cruz wrote: > Hi Kenneth, > > This tutorial covers some of the topics you mentioned: > http://astropy-tutorials.readthedocs.io/en/latest/rst-tutorials/FITS-images.html > > I?m a bit confused about what you mean by ?wavelength interval mappings?. Are you talking about spectroscopic data are combining multiple images into a color image? If it?s the latter, here?s the RGB example: > > http://docs.astropy.org/en/stable/visualization/lupton_rgb.html > > Hope this helps, > Kelle > > On Wed, Mar 28, 2018 at 10:02 AM Kenneth Adam Miller wrote: > Hello, > > > I'm a PhD student at Purdue university, and I'm working on some private endeavors on my own. I would like to describe them at length to someone who might be interested in cooperating or helping. > > I want to automate the process of creating human-usable galaxy and astronomy pictures from raw telescope data. I need some python examples that allow me to: > > ? Pull disparate wavelength data from a remote server so that the coordinates and time are coherent > ? Process the result into an image of an arbitrary size and precision > ? Designate the wavelength interval mappings > > > Is there anyone that would be willing to talk to me on the phone shortly? I want to communicate my project goals in the hopes that perhaps there are some existing software libraries that can be shared or explained at length or a mailing list. I've crawled the webpages for information, although some of what I've asked might be there, I think the contact would always be helpful in the least. > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > -- > kelle (via iOS) > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy From kennethadammiller at gmail.com Wed Mar 28 16:00:15 2018 From: kennethadammiller at gmail.com (Kenneth Adam Miller) Date: Wed, 28 Mar 2018 16:00:15 -0400 Subject: [AstroPy] Project Examples In-Reply-To: <388b9f9a-bc7b-ad4a-b888-162aefb8912b@summaventures.com> References: <34CEC73B-47E3-4E28-94DF-06CB120AE967@gmail.com> <388b9f9a-bc7b-ad4a-b888-162aefb8912b@summaventures.com> Message-ID: Thanks! I think I just want to define a deformation for the wavelength information for a given instrument into the human visible band, and just map discrete intervals from other instruments into the human visible band. Then I'll make lots of pictures starting out at a given interval with a growing delta. ds9 is: http://ds9.si.edu/site/Home.html ?? Thanks for the tips! On Wed, Mar 28, 2018 at 3:53 PM, Peter Dzwig wrote: > Kenneth, > > those are great examples. I wrote some code a few years back to do much > the same > sort of thing and I ended up getting tied up in knots. Having examples like > those would probably have helped me at the time. > > As for merging data: it can be done but as many here would probably point > out, > it isn't always as straightforward as you think. I am just trying to do > exactly > that at present but must say I haven't haven't always been successful, > especially for fainter objects. > > Good luck with your projects, > > Peter Dzwig > > On 28/03/2018 20:08, Paul Kuin wrote: > > checkout ds9 to combine 3 images into an rgb image > > > > there are data archives, like MAST, at ESO, etc. > > it would make sense to start with data taken with one instrument, then > expand to other areas. > > > > cheers, - Paul > > > >> On 28 Mar 2018, at 18:24, Kenneth Adam Miller < > kennethadammiller at gmail.com> wrote: > >> > >> Thank you so much!! > >> > >> Yes, I am combining multiple images into a color image, like what you > see of the famous photos that are so beautiful. > >> > >> How can I pull as much fits images as possible of various spectroscopic > data that are of a common space? And how can I change the targeted space? > >> > >> On Wed, Mar 28, 2018 at 10:25 AM, Kelle Cruz > wrote: > >> Hi Kenneth, > >> > >> This tutorial covers some of the topics you mentioned: > >> http://astropy-tutorials.readthedocs.io/en/latest/rst- > tutorials/FITS-images.html > >> > >> I?m a bit confused about what you mean by ?wavelength interval > mappings?. Are you talking about spectroscopic data are combining multiple > images into a color image? If it?s the latter, here?s the RGB example: > >> > >> http://docs.astropy.org/en/stable/visualization/lupton_rgb.html > >> > >> Hope this helps, > >> Kelle > >> > >> On Wed, Mar 28, 2018 at 10:02 AM Kenneth Adam Miller < > kennethadammiller at gmail.com> wrote: > >> Hello, > >> > >> > >> I'm a PhD student at Purdue university, and I'm working on some private > endeavors on my own. I would like to describe them at length to someone who > might be interested in cooperating or helping. > >> > >> I want to automate the process of creating human-usable galaxy and > astronomy pictures from raw telescope data. I need some python examples > that allow me to: > >> > >> ? Pull disparate wavelength data from a remote server so that the > coordinates and time are coherent > >> ? Process the result into an image of an arbitrary size and > precision > >> ? Designate the wavelength interval mappings > >> > >> > >> Is there anyone that would be willing to talk to me on the phone > shortly? I want to communicate my project goals in the hopes that perhaps > there are some existing software libraries that can be shared or explained > at length or a mailing list. I've crawled the webpages for information, > although some of what I've asked might be there, I think the contact would > always be helpful in the least. > >> > >> _______________________________________________ > >> AstroPy mailing list > >> AstroPy at python.org > >> https://mail.python.org/mailman/listinfo/astropy > >> -- > >> kelle (via iOS) > >> > >> _______________________________________________ > >> AstroPy mailing list > >> AstroPy at python.org > >> https://mail.python.org/mailman/listinfo/astropy > >> > >> > >> _______________________________________________ > >> AstroPy mailing list > >> AstroPy at python.org > >> https://mail.python.org/mailman/listinfo/astropy > > > > _______________________________________________ > > AstroPy mailing list > > AstroPy at python.org > > https://mail.python.org/mailman/listinfo/astropy > > > > -- > > =========================================================== > Dr Peter Dzwig > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pdzwig at summaventures.com Wed Mar 28 15:53:44 2018 From: pdzwig at summaventures.com (Peter Dzwig) Date: Wed, 28 Mar 2018 20:53:44 +0100 Subject: [AstroPy] Project Examples In-Reply-To: <34CEC73B-47E3-4E28-94DF-06CB120AE967@gmail.com> References: <34CEC73B-47E3-4E28-94DF-06CB120AE967@gmail.com> Message-ID: <388b9f9a-bc7b-ad4a-b888-162aefb8912b@summaventures.com> Kenneth, those are great examples. I wrote some code a few years back to do much the same sort of thing and I ended up getting tied up in knots. Having examples like those would probably have helped me at the time. As for merging data: it can be done but as many here would probably point out, it isn't always as straightforward as you think. I am just trying to do exactly that at present but must say I haven't haven't always been successful, especially for fainter objects. Good luck with your projects, Peter Dzwig On 28/03/2018 20:08, Paul Kuin wrote: > checkout ds9 to combine 3 images into an rgb image > > there are data archives, like MAST, at ESO, etc. > it would make sense to start with data taken with one instrument, then expand to other areas. > > cheers, - Paul > >> On 28 Mar 2018, at 18:24, Kenneth Adam Miller wrote: >> >> Thank you so much!! >> >> Yes, I am combining multiple images into a color image, like what you see of the famous photos that are so beautiful. >> >> How can I pull as much fits images as possible of various spectroscopic data that are of a common space? And how can I change the targeted space? >> >> On Wed, Mar 28, 2018 at 10:25 AM, Kelle Cruz wrote: >> Hi Kenneth, >> >> This tutorial covers some of the topics you mentioned: >> http://astropy-tutorials.readthedocs.io/en/latest/rst-tutorials/FITS-images.html >> >> I?m a bit confused about what you mean by ?wavelength interval mappings?. Are you talking about spectroscopic data are combining multiple images into a color image? If it?s the latter, here?s the RGB example: >> >> http://docs.astropy.org/en/stable/visualization/lupton_rgb.html >> >> Hope this helps, >> Kelle >> >> On Wed, Mar 28, 2018 at 10:02 AM Kenneth Adam Miller wrote: >> Hello, >> >> >> I'm a PhD student at Purdue university, and I'm working on some private endeavors on my own. I would like to describe them at length to someone who might be interested in cooperating or helping. >> >> I want to automate the process of creating human-usable galaxy and astronomy pictures from raw telescope data. I need some python examples that allow me to: >> >> ? Pull disparate wavelength data from a remote server so that the coordinates and time are coherent >> ? Process the result into an image of an arbitrary size and precision >> ? Designate the wavelength interval mappings >> >> >> Is there anyone that would be willing to talk to me on the phone shortly? I want to communicate my project goals in the hopes that perhaps there are some existing software libraries that can be shared or explained at length or a mailing list. I've crawled the webpages for information, although some of what I've asked might be there, I think the contact would always be helpful in the least. >> >> _______________________________________________ >> AstroPy mailing list >> AstroPy at python.org >> https://mail.python.org/mailman/listinfo/astropy >> -- >> kelle (via iOS) >> >> _______________________________________________ >> AstroPy mailing list >> AstroPy at python.org >> https://mail.python.org/mailman/listinfo/astropy >> >> >> _______________________________________________ >> AstroPy mailing list >> AstroPy at python.org >> https://mail.python.org/mailman/listinfo/astropy > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > -- =========================================================== Dr Peter Dzwig From npkuin at gmail.com Thu Mar 29 05:50:41 2018 From: npkuin at gmail.com (Paul Kuin) Date: Thu, 29 Mar 2018 10:50:41 +0100 Subject: [AstroPy] Project Examples In-Reply-To: References: <34CEC73B-47E3-4E28-94DF-06CB120AE967@gmail.com> <388b9f9a-bc7b-ad4a-b888-162aefb8912b@summaventures.com> Message-ID: yes, it looks it has that as its new URL look here for the original site: https://www.cfa.harvard.edu/resources/software.html There is also a python implementation (distributed in astroconda); and of course if you need to know more about fits: fits.gsfc.nasa.gov On Wed, Mar 28, 2018 at 9:00 PM, Kenneth Adam Miller < kennethadammiller at gmail.com> wrote: > Thanks! > > I think I just want to define a deformation for the wavelength information > for a given instrument into the human visible band, and just map discrete > intervals from other instruments into the human visible band. Then I'll > make lots of pictures starting out at a given interval with a growing delta. > > ds9 is: > http://ds9.si.edu/site/Home.html > ?? > > Thanks for the tips! > > On Wed, Mar 28, 2018 at 3:53 PM, Peter Dzwig > wrote: > >> Kenneth, >> >> those are great examples. I wrote some code a few years back to do much >> the same >> sort of thing and I ended up getting tied up in knots. Having examples >> like >> those would probably have helped me at the time. >> >> As for merging data: it can be done but as many here would probably point >> out, >> it isn't always as straightforward as you think. I am just trying to do >> exactly >> that at present but must say I haven't haven't always been successful, >> especially for fainter objects. >> >> Good luck with your projects, >> >> Peter Dzwig >> >> On 28/03/2018 20:08, Paul Kuin wrote: >> > checkout ds9 to combine 3 images into an rgb image >> > >> > there are data archives, like MAST, at ESO, etc. >> > it would make sense to start with data taken with one instrument, then >> expand to other areas. >> > >> > cheers, - Paul >> > >> >> On 28 Mar 2018, at 18:24, Kenneth Adam Miller < >> kennethadammiller at gmail.com> wrote: >> >> >> >> Thank you so much!! >> >> >> >> Yes, I am combining multiple images into a color image, like what you >> see of the famous photos that are so beautiful. >> >> >> >> How can I pull as much fits images as possible of various >> spectroscopic data that are of a common space? And how can I change the >> targeted space? >> >> >> >> On Wed, Mar 28, 2018 at 10:25 AM, Kelle Cruz >> wrote: >> >> Hi Kenneth, >> >> >> >> This tutorial covers some of the topics you mentioned: >> >> http://astropy-tutorials.readthedocs.io/en/latest/rst-tutori >> als/FITS-images.html >> >> >> >> I?m a bit confused about what you mean by ?wavelength interval >> mappings?. Are you talking about spectroscopic data are combining multiple >> images into a color image? If it?s the latter, here?s the RGB example: >> >> >> >> http://docs.astropy.org/en/stable/visualization/lupton_rgb.html >> >> >> >> Hope this helps, >> >> Kelle >> >> >> >> On Wed, Mar 28, 2018 at 10:02 AM Kenneth Adam Miller < >> kennethadammiller at gmail.com> wrote: >> >> Hello, >> >> >> >> >> >> I'm a PhD student at Purdue university, and I'm working on some >> private endeavors on my own. I would like to describe them at length to >> someone who might be interested in cooperating or helping. >> >> >> >> I want to automate the process of creating human-usable galaxy and >> astronomy pictures from raw telescope data. I need some python examples >> that allow me to: >> >> >> >> ? Pull disparate wavelength data from a remote server so that the >> coordinates and time are coherent >> >> ? Process the result into an image of an arbitrary size and >> precision >> >> ? Designate the wavelength interval mappings >> >> >> >> >> >> Is there anyone that would be willing to talk to me on the phone >> shortly? I want to communicate my project goals in the hopes that perhaps >> there are some existing software libraries that can be shared or explained >> at length or a mailing list. I've crawled the webpages for information, >> although some of what I've asked might be there, I think the contact would >> always be helpful in the least. >> >> >> >> _______________________________________________ >> >> AstroPy mailing list >> >> AstroPy at python.org >> >> https://mail.python.org/mailman/listinfo/astropy >> >> -- >> >> kelle (via iOS) >> >> >> >> _______________________________________________ >> >> AstroPy mailing list >> >> AstroPy at python.org >> >> https://mail.python.org/mailman/listinfo/astropy >> >> >> >> >> >> _______________________________________________ >> >> AstroPy mailing list >> >> AstroPy at python.org >> >> https://mail.python.org/mailman/listinfo/astropy >> > >> > _______________________________________________ >> > AstroPy mailing list >> > AstroPy at python.org >> > https://mail.python.org/mailman/listinfo/astropy >> > >> >> -- >> >> =========================================================== >> Dr Peter Dzwig >> >> > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > -- * * * * * * * * http://www.mssl.ucl.ac.uk/~npmk/ * * * * Dr. N.P.M. Kuin (n.kuin at ucl.ac.uk) phone +44-(0)1483 (prefix) -204111 (work) mobile +44(0)7908715953 skype ID: npkuin Mullard Space Science Laboratory ? University College London ? Holmbury St Mary ? Dorking ? Surrey RH5 6NT? U.K. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dburke.gw at gmail.com Thu Mar 29 07:13:54 2018 From: dburke.gw at gmail.com (Doug Burke) Date: Thu, 29 Mar 2018 11:13:54 +0000 Subject: [AstroPy] Project Examples In-Reply-To: References: <34CEC73B-47E3-4E28-94DF-06CB120AE967@gmail.com> <388b9f9a-bc7b-ad4a-b888-162aefb8912b@summaventures.com> Message-ID: We also have examples at http://chandra.harvard.edu/photo/openFITS/ - which stretch the definition of "true coio(u)r" a bit but may help you. Doug On Thu, Mar 29, 2018 at 5:51 AM Paul Kuin wrote: > yes, it looks it has that as its new URL > > look here for the original site: > https://www.cfa.harvard.edu/resources/software.html > > There is also a python implementation (distributed in astroconda); > > and of course if you need to know more about fits: fits.gsfc.nasa.gov > > > > On Wed, Mar 28, 2018 at 9:00 PM, Kenneth Adam Miller < > kennethadammiller at gmail.com> wrote: > >> Thanks! >> >> I think I just want to define a deformation for the wavelength >> information for a given instrument into the human visible band, and just >> map discrete intervals from other instruments into the human visible band. >> Then I'll make lots of pictures starting out at a given interval with a >> growing delta. >> >> ds9 is: >> http://ds9.si.edu/site/Home.html >> ?? >> >> Thanks for the tips! >> >> On Wed, Mar 28, 2018 at 3:53 PM, Peter Dzwig >> wrote: >> >>> Kenneth, >>> >>> those are great examples. I wrote some code a few years back to do much >>> the same >>> sort of thing and I ended up getting tied up in knots. Having examples >>> like >>> those would probably have helped me at the time. >>> >>> As for merging data: it can be done but as many here would probably >>> point out, >>> it isn't always as straightforward as you think. I am just trying to do >>> exactly >>> that at present but must say I haven't haven't always been successful, >>> especially for fainter objects. >>> >>> Good luck with your projects, >>> >>> Peter Dzwig >>> >>> On 28/03/2018 20:08, Paul Kuin wrote: >>> > checkout ds9 to combine 3 images into an rgb image >>> > >>> > there are data archives, like MAST, at ESO, etc. >>> > it would make sense to start with data taken with one instrument, then >>> expand to other areas. >>> > >>> > cheers, - Paul >>> > >>> >> On 28 Mar 2018, at 18:24, Kenneth Adam Miller < >>> kennethadammiller at gmail.com> wrote: >>> >> >>> >> Thank you so much!! >>> >> >>> >> Yes, I am combining multiple images into a color image, like what you >>> see of the famous photos that are so beautiful. >>> >> >>> >> How can I pull as much fits images as possible of various >>> spectroscopic data that are of a common space? And how can I change the >>> targeted space? >>> >> >>> >> On Wed, Mar 28, 2018 at 10:25 AM, Kelle Cruz >>> wrote: >>> >> Hi Kenneth, >>> >> >>> >> This tutorial covers some of the topics you mentioned: >>> >> >>> http://astropy-tutorials.readthedocs.io/en/latest/rst-tutorials/FITS-images.html >>> >> >>> >> I?m a bit confused about what you mean by ?wavelength interval >>> mappings?. Are you talking about spectroscopic data are combining multiple >>> images into a color image? If it?s the latter, here?s the RGB example: >>> >> >>> >> http://docs.astropy.org/en/stable/visualization/lupton_rgb.html >>> >> >>> >> Hope this helps, >>> >> Kelle >>> >> >>> >> On Wed, Mar 28, 2018 at 10:02 AM Kenneth Adam Miller < >>> kennethadammiller at gmail.com> wrote: >>> >> Hello, >>> >> >>> >> >>> >> I'm a PhD student at Purdue university, and I'm working on some >>> private endeavors on my own. I would like to describe them at length to >>> someone who might be interested in cooperating or helping. >>> >> >>> >> I want to automate the process of creating human-usable galaxy and >>> astronomy pictures from raw telescope data. I need some python examples >>> that allow me to: >>> >> >>> >> ? Pull disparate wavelength data from a remote server so that >>> the coordinates and time are coherent >>> >> ? Process the result into an image of an arbitrary size and >>> precision >>> >> ? Designate the wavelength interval mappings >>> >> >>> >> >>> >> Is there anyone that would be willing to talk to me on the phone >>> shortly? I want to communicate my project goals in the hopes that perhaps >>> there are some existing software libraries that can be shared or explained >>> at length or a mailing list. I've crawled the webpages for information, >>> although some of what I've asked might be there, I think the contact would >>> always be helpful in the least. >>> >> >>> >> _______________________________________________ >>> >> AstroPy mailing list >>> >> AstroPy at python.org >>> >> https://mail.python.org/mailman/listinfo/astropy >>> >> -- >>> >> kelle (via iOS) >>> >> >>> >> _______________________________________________ >>> >> AstroPy mailing list >>> >> AstroPy at python.org >>> >> https://mail.python.org/mailman/listinfo/astropy >>> >> >>> >> >>> >> _______________________________________________ >>> >> AstroPy mailing list >>> >> AstroPy at python.org >>> >> https://mail.python.org/mailman/listinfo/astropy >>> > >>> > _______________________________________________ >>> > AstroPy mailing list >>> > AstroPy at python.org >>> > https://mail.python.org/mailman/listinfo/astropy >>> > >>> >>> -- >>> >>> =========================================================== >>> Dr Peter Dzwig >>> >>> >> >> _______________________________________________ >> AstroPy mailing list >> AstroPy at python.org >> https://mail.python.org/mailman/listinfo/astropy >> >> > > > -- > > * * * * * * * * http://www.mssl.ucl.ac.uk/~npmk/ * * * * > Dr. N.P.M. Kuin (n.kuin at ucl.ac.uk) > phone +44-(0)1483 (prefix) -204111 (work) > mobile +44(0)7908715953 <+44%207908%20715953> skype ID: npkuin > Mullard Space Science Laboratory ? University College London ? > Holmbury St Mary ? Dorking ? Surrey RH5 6NT? U.K. > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kennethadammiller at gmail.com Thu Mar 29 09:29:31 2018 From: kennethadammiller at gmail.com (Kenneth Adam Miller) Date: Thu, 29 Mar 2018 09:29:31 -0400 Subject: [AstroPy] Project Examples In-Reply-To: References: <34CEC73B-47E3-4E28-94DF-06CB120AE967@gmail.com> <388b9f9a-bc7b-ad4a-b888-162aefb8912b@summaventures.com> Message-ID: Thanks! Thanks! On Thu, Mar 29, 2018 at 7:13 AM, Doug Burke wrote: > > We also have examples at http://chandra.harvard.edu/photo/openFITS/ - > which stretch the definition of "true coio(u)r" a bit but may help you. > > Doug > > On Thu, Mar 29, 2018 at 5:51 AM Paul Kuin wrote: > >> yes, it looks it has that as its new URL >> >> look here for the original site: https://www.cfa.harvard. >> edu/resources/software.html >> >> There is also a python implementation (distributed in astroconda); >> >> and of course if you need to know more about fits: fits.gsfc.nasa.gov >> >> >> >> On Wed, Mar 28, 2018 at 9:00 PM, Kenneth Adam Miller < >> kennethadammiller at gmail.com> wrote: >> >>> Thanks! >>> >>> I think I just want to define a deformation for the wavelength >>> information for a given instrument into the human visible band, and just >>> map discrete intervals from other instruments into the human visible band. >>> Then I'll make lots of pictures starting out at a given interval with a >>> growing delta. >>> >>> ds9 is: >>> http://ds9.si.edu/site/Home.html >>> ?? >>> >>> Thanks for the tips! >>> >>> On Wed, Mar 28, 2018 at 3:53 PM, Peter Dzwig >>> wrote: >>> >>>> Kenneth, >>>> >>>> those are great examples. I wrote some code a few years back to do much >>>> the same >>>> sort of thing and I ended up getting tied up in knots. Having examples >>>> like >>>> those would probably have helped me at the time. >>>> >>>> As for merging data: it can be done but as many here would probably >>>> point out, >>>> it isn't always as straightforward as you think. I am just trying to do >>>> exactly >>>> that at present but must say I haven't haven't always been successful, >>>> especially for fainter objects. >>>> >>>> Good luck with your projects, >>>> >>>> Peter Dzwig >>>> >>>> On 28/03/2018 20:08, Paul Kuin wrote: >>>> > checkout ds9 to combine 3 images into an rgb image >>>> > >>>> > there are data archives, like MAST, at ESO, etc. >>>> > it would make sense to start with data taken with one instrument, >>>> then expand to other areas. >>>> > >>>> > cheers, - Paul >>>> > >>>> >> On 28 Mar 2018, at 18:24, Kenneth Adam Miller < >>>> kennethadammiller at gmail.com> wrote: >>>> >> >>>> >> Thank you so much!! >>>> >> >>>> >> Yes, I am combining multiple images into a color image, like what >>>> you see of the famous photos that are so beautiful. >>>> >> >>>> >> How can I pull as much fits images as possible of various >>>> spectroscopic data that are of a common space? And how can I change the >>>> targeted space? >>>> >> >>>> >> On Wed, Mar 28, 2018 at 10:25 AM, Kelle Cruz >>>> wrote: >>>> >> Hi Kenneth, >>>> >> >>>> >> This tutorial covers some of the topics you mentioned: >>>> >> http://astropy-tutorials.readthedocs.io/en/latest/rst- >>>> tutorials/FITS-images.html >>>> >> >>>> >> I?m a bit confused about what you mean by ?wavelength interval >>>> mappings?. Are you talking about spectroscopic data are combining multiple >>>> images into a color image? If it?s the latter, here?s the RGB example: >>>> >> >>>> >> http://docs.astropy.org/en/stable/visualization/lupton_rgb.html >>>> >> >>>> >> Hope this helps, >>>> >> Kelle >>>> >> >>>> >> On Wed, Mar 28, 2018 at 10:02 AM Kenneth Adam Miller < >>>> kennethadammiller at gmail.com> wrote: >>>> >> Hello, >>>> >> >>>> >> >>>> >> I'm a PhD student at Purdue university, and I'm working on some >>>> private endeavors on my own. I would like to describe them at length to >>>> someone who might be interested in cooperating or helping. >>>> >> >>>> >> I want to automate the process of creating human-usable galaxy and >>>> astronomy pictures from raw telescope data. I need some python examples >>>> that allow me to: >>>> >> >>>> >> ? Pull disparate wavelength data from a remote server so that >>>> the coordinates and time are coherent >>>> >> ? Process the result into an image of an arbitrary size and >>>> precision >>>> >> ? Designate the wavelength interval mappings >>>> >> >>>> >> >>>> >> Is there anyone that would be willing to talk to me on the phone >>>> shortly? I want to communicate my project goals in the hopes that perhaps >>>> there are some existing software libraries that can be shared or explained >>>> at length or a mailing list. I've crawled the webpages for information, >>>> although some of what I've asked might be there, I think the contact would >>>> always be helpful in the least. >>>> >> >>>> >> _______________________________________________ >>>> >> AstroPy mailing list >>>> >> AstroPy at python.org >>>> >> https://mail.python.org/mailman/listinfo/astropy >>>> >> -- >>>> >> kelle (via iOS) >>>> >> >>>> >> _______________________________________________ >>>> >> AstroPy mailing list >>>> >> AstroPy at python.org >>>> >> https://mail.python.org/mailman/listinfo/astropy >>>> >> >>>> >> >>>> >> _______________________________________________ >>>> >> AstroPy mailing list >>>> >> AstroPy at python.org >>>> >> https://mail.python.org/mailman/listinfo/astropy >>>> > >>>> > _______________________________________________ >>>> > AstroPy mailing list >>>> > AstroPy at python.org >>>> > https://mail.python.org/mailman/listinfo/astropy >>>> > >>>> >>>> -- >>>> >>>> =========================================================== >>>> Dr Peter Dzwig >>>> >>>> >>> >>> _______________________________________________ >>> AstroPy mailing list >>> AstroPy at python.org >>> https://mail.python.org/mailman/listinfo/astropy >>> >>> >> >> >> -- >> >> * * * * * * * * http://www.mssl.ucl.ac.uk/~npmk/ * * * * >> Dr. N.P.M. Kuin (n.kuin at ucl.ac.uk) >> phone +44-(0)1483 (prefix) -204111 (work) >> mobile +44(0)7908715953 <+44%207908%20715953> skype ID: npkuin >> Mullard Space Science Laboratory ? University College London ? >> Holmbury St Mary ? Dorking ? Surrey RH5 6NT? U.K. >> _______________________________________________ >> AstroPy mailing list >> AstroPy at python.org >> https://mail.python.org/mailman/listinfo/astropy >> > > _______________________________________________ > AstroPy mailing list > AstroPy at python.org > https://mail.python.org/mailman/listinfo/astropy > > -------------- next part -------------- An HTML attachment was scrubbed... URL: