wcsaxes | wcsaxes has been merged into astropy | Data Visualization library

 by   astrofrog Python Version: Current License: No License

kandi X-RAY | wcsaxes Summary

kandi X-RAY | wcsaxes Summary

wcsaxes is a Python library typically used in Analytics, Data Visualization applications. wcsaxes has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.

wcsaxes has been merged into astropy!
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              wcsaxes has a low active ecosystem.
              It has 22 star(s) with 21 fork(s). There are 10 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 25 open issues and 69 have been closed. On average issues are closed in 248 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of wcsaxes is current.

            kandi-Quality Quality

              wcsaxes has 0 bugs and 0 code smells.

            kandi-Security Security

              wcsaxes has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              wcsaxes code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              wcsaxes does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              wcsaxes releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are available. Examples and code snippets are not available.
              wcsaxes saves you 1800 person hours of effort in developing the same functionality from scratch.
              It has 3979 lines of code, 312 functions and 36 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed wcsaxes and discovered the below as its top functions. This is intended to give you an instant insight into wcsaxes implemented functionality, and help decide if they suit your requirements.
            • Draw the text
            • Sort the world
            • Returns a list of axes
            • Simplify the axis labels
            • Draw the plot
            • Get the minimum padding for an axis
            • Return a list of axes
            • Run the astropy helper
            • Run this package
            • Run test suite
            • Get a test runner
            • Download the package index
            • Parse command - line arguments
            • Download a file from the given URL
            • Draw the ticker
            • Download a file insecure
            • Update the patch path
            • Sets the ticks
            • Set world transform
            • Set the data
            • Parse command line options
            • Attempt to import an astropy - helper package
            • Runs the tool
            • Try to download setuptools
            • Parse configuration file
            • Try to import an astropy astropy archive
            • Rotate a polygon around the specified coordinates
            Get all kandi verified functions for this library.

            wcsaxes Key Features

            No Key Features are available at this moment for wcsaxes.

            wcsaxes Examples and Code Snippets

            No Code Snippets are available at this moment for wcsaxes.

            Community Discussions

            QUESTION

            How to plot Gaia astrometry data to TESS images using Python?
            Asked 2019-May-13 at 13:06

            Long story short: I want to plot Gaia astrometry data to TESS imagery in Python. How is it possible? See below for elaborated version.

            I have 64x64 pixel TESS imagery of a star with Gaia ID 4687500098271761792. Page 8 of the TESS Observatory Guide says 1 pixel is ~21 arcsec. Using the Gaia Archive, I search for this star (below top features, click Search.) and submit a query to see the stars within 1000 arcsec, roughly the radius we need. The name I use for the search is Gaia DR2 4687500098271761792, as shown below:

            Submit Query, and I get a list of 500 stars with RA and DEC coordinates. Select CSV and Download results, I get the list of stars around 4687500098271761792. This resulting file also can be found here. This is the input from Gaia we want to use.

            From the TESS, we have 4687500098271761792_med.fits, an image file. We plot it using:

            ...

            ANSWER

            Answered 2019-Jan-10 at 16:06

            First I have to say, great question! Very detailed and reproducible. I went through your question and tried to redo the exercise starting from your git repo and downloading the catalogue from the GAIA archive.

            EDIT

            Programmatically your code is fine (see OLD PART below for a slightly different approach). The problem with the missing points is that one only gets 500 data points when downloading the csv file from the GAIA archive. Therefore it looks as if all points from the query are crammed into a weird shape. However if you restrict the radius of the search to a smaller value you can see that there are points that lie within the TESS image:

            please compare to the version shown below in the OLD PART. The code is the same as below only the downloaded csv file is for a smaller radius. Therefore it seems that you just downloaded a part of all available data from the GAIA archive when exporting to csv. The way to circumvent this is to do the search as you did. Then, on the result page click on Show query in ADQL form on the bottom and in the query you get displayed in SQL format change:

            Source https://stackoverflow.com/questions/54116787

            QUESTION

            How to plot a star from TESScut to the right place on the sky using Python (and not with a ~10 degree error)?
            Asked 2019-Apr-03 at 18:04

            I would like to plot TESS measurements of Beta Dor, using data from TESScut. In the Gaia DR2 archive I look up RA and DEC values of Beta Dor, I get:

            ...

            ANSWER

            Answered 2019-Apr-03 at 18:04

            This issue stems from a subtlety in the way matplotlib handles WCS projections.

            WCSAxes, which creates the WCS projection for maplotlib plots does not take into account SIP distortions in the WCS (because it uses wcs.wcs_world2pix rather than wcs.all_world2pix).

            Often this doesn’t matter that much, however there are two factors that can make it matter a lot when displaying TESScut cutouts. The first is that the TPFs that TESScut produces come with the original WCS information from the full-frame image adjusted for the position of the cutout. This means that unlike the WCS information in TESS pipeline TPFs, the WCS information in TESScut TPFS includes a full complement of SIP distortions, which are being ignored by matplotlib. The second factor in how accurate the displayed coordinates will be is where on the TESS CCD the source falls. Because the TESS field of view is large, at the edges of a full-frame image the difference made by ignoring the SIP distortions can be on the order of 15 pixels.

            This particular source is very much on the edge of that FFI so the SIP distortions will make quite a large difference:

            There are two options for handling this problem:

            1. Don't use the matplotlib projection option directly, and instead move everything into pixel space, manually calling wcs.all_world2pix or wcs.allpix2world as required.

            2. Create a new WCS for the cutout that does not include SIP distortions (which will be fine because the cutout is small enough to not really need them). Here is a Jupyter notebook that describes one way to make this new WCS for the cutout: https://github.com/ceb8/tessworkshop_wcs_hack/blob/master/tesscut_wcs_hack.ipynb.

            Source https://stackoverflow.com/questions/55422310

            QUESTION

            Problems with FITS header
            Asked 2017-Sep-27 at 21:00

            I've asked this on astronomy.se as well.

            I'm working with some NEOWISE images that seem to have incomplete header tags. I've been advised by the SAO (because I'm using DS9 to view them) that I have

            "a partial PC matrix defined, yet it does not conform to the FITS WCS standard. With a combo of CDELT and PC keywords, the CDELT keywords hold the scaling factor, the PC keywords, the rotation matrix, which should be normalized. If you want the rotation matrix to also contain the scale factor, use CD keywords".

            Here's one of the headers I need to fix:

            ...

            ANSWER

            Answered 2017-Sep-27 at 21:00

            Following the error message, if the PCi_j format is used to describe the rotation matrix, the values should be normalised to 1, and any scaling factor encoded separately in the CDELT values. If one wants to include the scaling factor in the rotation matrix, the CDi_j format should be used, without any CDELT values. In the draft v4.0 FITS specification, the relevant section in the FITS standard is on p.29 around eqs. 9-11: https://fits.gsfc.nasa.gov/standard40/fits_standard40draft1.pdf

            Two possible solutions exist. First, the scaling can be transferred to the CDELT values like so:

            Source https://stackoverflow.com/questions/46395495

            QUESTION

            Copying header in astropy from one FITS file to a newly created FITS file
            Asked 2017-Sep-04 at 21:26

            I have a program that processes an existing FITS file (xbulge-w1.fits), and saves the processed image to a new FITS (w1_resampled.fits). I want to copy the header from the original to the new, so that they're in the same coordinates (i.e. galactic).
            I'm trying to do it with the following code:

            ...

            ANSWER

            Answered 2017-Sep-04 at 21:26

            Oh, I see. I was overcomplicating it. Here's all I needed to do:

            Source https://stackoverflow.com/questions/46028846

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install wcsaxes

            [![Build Status](https://travis-ci.org/astrofrog/wcsaxes.svg?branch=master)](https://travis-ci.org/astrofrog/wcsaxes) [![Coverage Status](https://coveralls.io/repos/astrofrog/wcsaxes/badge.svg?branch=master)](https://coveralls.io/r/astrofrog/wcsaxes?branch=master) [![Documentation Status](https://readthedocs.org/projects/wcsaxes/badge/?version=latest)](https://wcsaxes.readthedocs.io/en/latest/) [![asv](http://img.shields.io/badge/benchmarked%20by-asv-green.svg?style=flat)](http://astrofrog.github.io/wcsaxes-benchmarks/).

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/astrofrog/wcsaxes.git

          • CLI

            gh repo clone astrofrog/wcsaxes

          • sshUrl

            git@github.com:astrofrog/wcsaxes.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link