From simon at sconseil.fr Fri May 5 17:48:46 2023 From: simon at sconseil.fr (Simon Conseil) Date: Fri, 05 May 2023 23:48:46 +0200 Subject: [AstroPy] astropy v5.3rc1 ready for testing Message-ID: Hi everyone, The first release candidate (RC) of the core astropy package for the v5.3 release is now available and ready for testing! If you are interested in trying it out, you can install this release candidate by doing: pip install astropy --pre or pip install astropy==5.3rc1 You can find the documentation corresponding to this release at: https://docs.astropy.org/en/v5.3rc1/ including the full list of changes for this release: https://docs.astropy.org/en/v5.3rc1/changelog.html as well as a 'What's new in v5.3?' page: https://docs.astropy.org/en/v5.3rc1/whatsnew/5.3.html We would appreciate if you could try out this RC and report back any success or failure via the following wiki page: https://github.com/astropy/astropy/wiki/v5.3-RC-testing For example, you can try running the test suite as mentioned on the wiki page. In addition, if you maintain any packages that use astropy, please check that your package(s) works well with this RC and let us know if there are any issues or whether everything works fine. There is a section to list packages that work/don't work at the bottom of the wiki page. Please also open an issue in the astropy core package issue tracker for any issues you encounter (and open separate issues for each problem you run into). If you use conda, be sure to either remove the existing conda astropy package or make a new environment before installing the RC. Note that there are no conda packages for the RC. Thanks! Simon (release manager for v5.3) From ziriuz84 at gmail.com Wed May 24 00:51:07 2023 From: ziriuz84 at gmail.com (Sirio Negri) Date: Wed, 24 May 2023 06:51:07 +0200 Subject: [AstroPy] RecursionError on coordinates transformations Message-ID: Hi all! I have this function that simply takes a json, makes some transformation with Astropy and puts the result in a list of dictionaries. https://pastebin.com/qAM6GSaQ I derived the code from another project of mine where print a QTable, but here I need an list of dictionaries to provide a json via FastAPI. When I make the request it returns "Internal Server Error" with a "RecursionError: maximum recursion depth exceeded in comparison" in uvicorn. Apparently it's when I try to print alt parameter from coord_altaz, but in the other application (simple cli software) it functions flawlessly. Does anyone knows how to fix it? It's driving me crazy ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell.valentine at gmail.com Wed May 24 08:41:09 2023 From: russell.valentine at gmail.com (Russell Valentine) Date: Wed, 24 May 2023 07:41:09 -0500 Subject: [AstroPy] RA/Dec to Alt/Az In-Reply-To: References: Message-ID: Last time I wrote a function to do this if I wanted it adjusted for atmospheric refraction I needed to include pressure in the coordinate. I usually estimate this using elevation. The algorithm isn't totally stable especially at lower altitudes, so keep that in mind if you ever need to go back from AltAz to RADec. See notes section on this page: https://docs.astropy.org/en/stable/api/astropy.coordinates.AltAz.html height = earth_location.height.to_value(u.m) # https://www.engineeringtoolbox.com/air-altitude-pressure-d_462.html return 101325.0 * ((1.0 - 2.2557e-5 * height) ** 5.25588) * usi.Pa On 4/22/23 15:53, Richard Moffat wrote: > > We can consider this question closed unless anyone else has anything > else to add. > From simon at sconseil.fr Mon May 29 09:12:34 2023 From: simon at sconseil.fr (Simon Conseil) Date: Mon, 29 May 2023 15:12:34 +0200 Subject: [AstroPy] ANN: astropy 5.3 released Message-ID: <66ea19f9-059c-7a7b-307a-002c556a7840@sconseil.fr> Dear colleagues, We are very happy to announce the v5.3 release of astropy, a core Python package for Astronomy: https://www.astropy.org The astropy core package is a community-driven Python package intended to contain much of the core functionality and common tools needed for astronomy and astrophysics. It is part of the Astropy Project, which aims to foster an ecosystem of interoperable astronomy packages for Python. New and improved major functionality in this release includes: - New flat astropy.cosmology classes - New union operators for Table - Efficient data access for compressed FITS files - Added support for NOCOMPRESS for compressed FITS files - New fraction option for representing units as strings - Change in order in unit string representations - Support for collapse operations on arbitrary axes in nddata - Refresh cached observatory site registry for EarthLocation methods - New LombScargleMultiband class for multiband datasets In addition, hundreds of smaller improvements and fixes have been made. An overview of the changes is provided at: https://docs.astropy.org/en/stable/whatsnew/5.3.html Instructions for installing astropy are provided on our website, and extensive documentation can be found at: https://docs.astropy.org If you usually use pip/vanilla Python, you can do: pip install astropy --upgrade If you make use of the Anaconda Python Distribution, soon you will be able update to Astropy v5.3 with: conda update astropy Or if you cannot wait for Anaconda to update their default version, you can use the conda-forge channel: conda update -c conda-forge astropy Please report any issues, or request new features via our GitHub repository: https://github.com/astropy/astropy/issues Over 400 people have contributed code to the core astropy package so far, and you can find out more about the team here: https://www.astropy.org/team.html If you use astropy directly for your work, or as a dependency to another package, please remember to acknowledge it by citing the appropriate Astropy paper. For the most up-to-date suggestions, see the acknowledgement page, but as of this release the recommendation is: This research made use of Astropy, a community-developed core Python package for Astronomy (Astropy Collaboration, 2018). We hope that you enjoy using astropy as much as we enjoyed developing it! Simon Conseil v5.3 Release Coordinator on behalf of The Astropy Project