lightkurve | friendly package for Kepler & TESS time series analysis | Time Series Database library
kandi X-RAY | lightkurve Summary
kandi X-RAY | lightkurve Summary
A friendly package for Kepler & TESS time series analysis in Python.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lightkurve
lightkurve Key Features
lightkurve Examples and Code Snippets
Community Discussions
Trending Discussions on lightkurve
QUESTION
I am using lightkurve 2.0.2 library with Python 3.8.5 and astropy 4.2 for processing exoplanet transits. However when I want to bin light curve to fixed number of points, all values in light_curve.flux
except first two are nan. What I am doing wrong?
ANSWER
Answered 2021-Mar-18 at 19:42In your case, binning is done based on the time data of the fold
variable. Let's have a look at the data:
QUESTION
I know what i want to do but I'm not shure how to make this question.
In my code I'm using lightkurve package, wich has a class (lightkurve.lightcurve.TessLightCurve) that has a method (plot) that plots the content of a variable. The "plot" method uses matplotlib.
In this way, I'm able to plot two indeppendent figures like the followling:
...ANSWER
Answered 2020-Oct-26 at 21:26Looks like the function lightkurve.lightcurve.TessLightCurve.plot()
takes an argument ax=
to instruct which subplot to use.
QUESTION
I upgraded pip
using the command pip3 install --upgrade pip
; then, the following was printed in the terminal window:
ANSWER
Answered 2020-Sep-25 at 07:23The output you show from:
QUESTION
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:04This 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:
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.
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.
QUESTION
I am trying to detect stars/astronomical objects on a picture. This is the picture where I can do it well, as outlined below:
Following the advice given on this site I have this code:
...ANSWER
Answered 2018-Aug-27 at 12:21Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lightkurve
You can use lightkurve like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page