API/Reference
AstroLib.POLELATLONG
AstroLib.observatories
AstroLib.planets
AstroTime.TimeScales.TAI
AstroTime.TimeScales.TCB
AstroTime.TimeScales.TCG
AstroTime.TimeScales.TDB
AstroTime.TimeScales.TT
AstroTime.TimeScales.UT1
AstroImages.AstroImage
AstroImages.Comment
AstroImages.History
AstroImages.Percent
AstroImages.WCSGrid
AstroImages.Zscale
AstroLib.Observatory
AstroLib.Planet
AstroTime.AstroDates.Date
AstroTime.AstroDates.DateTime
AstroTime.AstroDates.Time
AstroTime.Epochs.Epoch
AstroTime.Epochs.Epoch
AstroTime.Epochs.Epoch
AstroTime.Epochs.Epoch
AstroTime.Epochs.Epoch
AstroTime.Epochs.Epoch
AstroTime.Epochs.Epoch
AstroTime.Epochs.TAIEpoch
AstroTime.Epochs.TAIEpoch
AstroTime.Epochs.TAIEpoch
AstroTime.Epochs.TCBEpoch
AstroTime.Epochs.TCBEpoch
AstroTime.Epochs.TCBEpoch
AstroTime.Epochs.TCGEpoch
AstroTime.Epochs.TCGEpoch
AstroTime.Epochs.TCGEpoch
AstroTime.Epochs.TDBEpoch
AstroTime.Epochs.TDBEpoch
AstroTime.Epochs.TDBEpoch
AstroTime.Epochs.TTEpoch
AstroTime.Epochs.TTEpoch
AstroTime.Epochs.TTEpoch
AstroTime.Epochs.UT1Epoch
AstroTime.Epochs.UT1Epoch
AstroTime.Epochs.UT1Epoch
AstroTime.Periods.AstroPeriod
AstroTime.Periods.TimeUnit
AstroTime.TimeScales.BarycentricCoordinateTime
AstroTime.TimeScales.BarycentricDynamicalTime
AstroTime.TimeScales.GeocentricCoordinateTime
AstroTime.TimeScales.InternationalAtomicTime
AstroTime.TimeScales.TerrestrialTime
AstroTime.TimeScales.TimeScale
AstroTime.TimeScales.UniversalTime
BoxLeastSquares.BLSPeriodogram
DimensionalData.Dimensions.Dim
DimensionalData.Dimensions.LookupArrays.At
DimensionalData.Dimensions.LookupArrays.Near
DimensionalData.Dimensions.X
DimensionalData.Dimensions.Y
DimensionalData.Dimensions.Z
EarthOrientation.EOParams
FITSIO.FITS
FITSIO.FITSHeader
Photometry.Aperture.AbstractAperture
Photometry.Aperture.CircularAnnulus
Photometry.Aperture.CircularAperture
Photometry.Aperture.EllipticalAnnulus
Photometry.Aperture.EllipticalAperture
Photometry.Aperture.RectangularAnnulus
Photometry.Aperture.RectangularAperture
Photometry.Aperture.Subpixel
Photometry.Background.BackgroundInterpolator
Photometry.Background.BiweightLocationBackground
Photometry.Background.BiweightScaleRMS
Photometry.Background.IDWInterpolator
Photometry.Background.LocationEstimator
Photometry.Background.MADStdRMS
Photometry.Background.MMMBackground
Photometry.Background.RMSEstimator
Photometry.Background.SourceExtractorBackground
Photometry.Background.StdRMS
Photometry.Background.ZoomInterpolator
Photometry.Detection.PeakMesh
Photometry.Detection.SourceFinder
SkyCoords.AbstractSkyCoords
SkyCoords.EclipticCoords
SkyCoords.FK5Coords
SkyCoords.GalCoords
SkyCoords.ICRSCoords
WCS.WCSTransform
AstroImages.asinhstretch
AstroImages.composecolors
AstroImages.copyheader
AstroImages.header
AstroImages.implot
AstroImages.imview
AstroImages.logstretch
AstroImages.powerdiststretch
AstroImages.powstretch
AstroImages.shareheader
AstroImages.sinhstretch
AstroImages.sqrtstretch
AstroImages.squarestretch
AstroImages.wcs
AstroLib.adstring
AstroLib.airtovac
AstroLib.aitoff
AstroLib.altaz2hadec
AstroLib.baryvel
AstroLib.bprecess
AstroLib.calz_unred
AstroLib.co_aberration
AstroLib.co_nutate
AstroLib.co_refract
AstroLib.co_refract_forward
AstroLib.ct2lst
AstroLib.daycnv
AstroLib.deredd
AstroLib.eci2geo
AstroLib.eq2hor
AstroLib.eqpole
AstroLib.euler
AstroLib.flux2mag
AstroLib.gal_uvw
AstroLib.gcirc
AstroLib.geo2eci
AstroLib.geo2geodetic
AstroLib.geo2mag
AstroLib.geodetic2geo
AstroLib.get_date
AstroLib.get_juldate
AstroLib.hadec2altaz
AstroLib.helio
AstroLib.helio_jd
AstroLib.helio_rv
AstroLib.hor2eq
AstroLib.imf
AstroLib.ismeuv
AstroLib.jdcnv
AstroLib.jprecess
AstroLib.juldate
AstroLib.kepler_solver
AstroLib.lsf_rotate
AstroLib.mag2flux
AstroLib.mag2geo
AstroLib.mean_obliquity
AstroLib.month_cnv
AstroLib.moonpos
AstroLib.mphase
AstroLib.nutate
AstroLib.ordinal
AstroLib.paczynski
AstroLib.planck_freq
AstroLib.planck_wave
AstroLib.planet_coords
AstroLib.polrec
AstroLib.posang
AstroLib.precess
AstroLib.precess_cd
AstroLib.precess_xyz
AstroLib.premat
AstroLib.rad2sec
AstroLib.radec
AstroLib.recpol
AstroLib.rhotheta
AstroLib.sec2rad
AstroLib.sixty
AstroLib.sphdist
AstroLib.sunpos
AstroLib.ten
AstroLib.tic_one
AstroLib.ticpos
AstroLib.tics
AstroLib.true_obliquity
AstroLib.trueanom
AstroLib.uvbybeta
AstroLib.vactoair
AstroLib.xyz
AstroLib.ydn2md
AstroLib.ymd2dn
AstroLib.zenpos
AstroTime.AstroDates.fractionofday
AstroTime.AstroDates.fractionofsecond
AstroTime.AstroDates.j2000
AstroTime.AstroDates.julian
AstroTime.AstroDates.julian_twopart
AstroTime.AstroDates.subsecond
AstroTime.Epochs.from_utc
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.getoffset
AstroTime.Epochs.julian_period
AstroTime.Epochs.modified_julian
AstroTime.Epochs.timescale
AstroTime.Epochs.to_utc
AstroTime.Periods.unit
AstroTime.Periods.value
AstroTime.update
Base.:-
Base.close
Base.deleteat!
Base.eltype
Base.haskey
Base.keys
Base.length
Base.length
Base.length
Base.ndims
Base.read
Base.read
Base.read!
Base.size
Base.values
Base.write
Base.write
Base.write
Base.write
BoxLeastSquares.BLS
BoxLeastSquares.autoperiod
BoxLeastSquares.model
BoxLeastSquares.model
BoxLeastSquares.params
BoxLeastSquares.periods
BoxLeastSquares.power
CFITSIO.bitpix_from_type
CFITSIO.cfitsio_typecode
CFITSIO.fits_clobber_file
CFITSIO.fits_close_file
CFITSIO.fits_copy_image_section
CFITSIO.fits_create_ascii_tbl
CFITSIO.fits_create_binary_tbl
CFITSIO.fits_create_diskfile
CFITSIO.fits_create_file
CFITSIO.fits_create_img
CFITSIO.fits_delete_file
CFITSIO.fits_delete_hdu
CFITSIO.fits_delete_key
CFITSIO.fits_delete_record
CFITSIO.fits_delete_rows
CFITSIO.fits_file_mode
CFITSIO.fits_file_name
CFITSIO.fits_get_coltype
CFITSIO.fits_get_hdrspace
CFITSIO.fits_get_img_size
CFITSIO.fits_get_num_hdus
CFITSIO.fits_hdr2str
CFITSIO.fits_insert_img
CFITSIO.fits_insert_rows
CFITSIO.fits_movabs_hdu
CFITSIO.fits_movnam_hdu
CFITSIO.fits_movrel_hdu
CFITSIO.fits_open_data
CFITSIO.fits_open_diskfile
CFITSIO.fits_open_file
CFITSIO.fits_open_image
CFITSIO.fits_open_table
CFITSIO.fits_read_col
CFITSIO.fits_read_keyn
CFITSIO.fits_read_keyword
CFITSIO.fits_read_pix
CFITSIO.fits_read_pixnull
CFITSIO.fits_read_record
CFITSIO.fits_read_subset
CFITSIO.fits_resize_img
CFITSIO.fits_write_col
CFITSIO.fits_write_key
CFITSIO.fits_write_null_img
CFITSIO.fits_write_pix
CFITSIO.fits_write_pixnull
CFITSIO.fits_write_record
CFITSIO.fits_write_subset
CFITSIO.libcfitsio_version
CFITSIO.type_from_bitpix
Cosmology.age
Cosmology.angular_diameter_dist
Cosmology.comoving_radial_dist
Cosmology.comoving_volume
Cosmology.comoving_volume_element
Cosmology.cosmology
Cosmology.distmod
Cosmology.lookback_time
Cosmology.luminosity_dist
Dates.day
Dates.dayofyear
Dates.hour
Dates.microsecond
Dates.millisecond
Dates.minute
Dates.month
Dates.nanosecond
Dates.now
Dates.second
Dates.second
Dates.year
Dates.yearmonthday
DimensionalData.Dimensions.dims
DimensionalData.Dimensions.refdims
EarthOrientation.getdate
EarthOrientation.getdx
EarthOrientation.getdx_err
EarthOrientation.getdy
EarthOrientation.getdy_err
EarthOrientation.getdψ
EarthOrientation.getdψ_err
EarthOrientation.getdϵ
EarthOrientation.getdϵ_err
EarthOrientation.getlod
EarthOrientation.getlod_err
EarthOrientation.getxp
EarthOrientation.getxp_err
EarthOrientation.getyp
EarthOrientation.getyp_err
EarthOrientation.getΔUT1
EarthOrientation.getΔUT1_TAI
EarthOrientation.getΔUT1_err
EarthOrientation.polarmotion
EarthOrientation.precession_nutation00
EarthOrientation.precession_nutation80
EarthOrientation.update
FITSIO.colnames
FITSIO.copy_section
FITSIO.default_header
FITSIO.fitsread
FITSIO.fitswrite
FITSIO.get_comment
FITSIO.read_header
FITSIO.read_key
FITSIO.set_comment!
FITSIO.write_key
FileIO.load
FileIO.save
LACosmic.lacosmic
LombScargle.M
LombScargle.autofrequency
LombScargle.bootstrap
LombScargle.fap
LombScargle.fap
LombScargle.fapinv
LombScargle.fapinv
LombScargle.findmaxfreq
LombScargle.findmaxperiod
LombScargle.findmaxpower
LombScargle.freq
LombScargle.freqpower
LombScargle.lombscargle
LombScargle.lombscargle
LombScargle.model
LombScargle.period
LombScargle.periodpower
LombScargle.plan
LombScargle.power
LombScargle.prob
LombScargle.probinv
Photometry.Aperture.photometry
Photometry.Background.estimate_background
Photometry.Background.sigma_clip
Photometry.Background.sigma_clip!
Photometry.Detection.extract_sources
SAOImageDS9.accesspoint
SAOImageDS9.bitpix_of
SAOImageDS9.bitpix_to_type
SAOImageDS9.byte_order
SAOImageDS9.connect
SAOImageDS9.draw
SAOImageDS9.get
SAOImageDS9.set
SkyCoords.offset
SkyCoords.position_angle
SkyCoords.separation
WCS.from_header
WCS.obsfix
WCS.pix_to_world
WCS.pix_to_world
WCS.pix_to_world!
WCS.to_header
WCS.world_to_pix
WCS.world_to_pix
WCS.world_to_pix!
AstroTime.@timescale
BoxLeastSquares.BLSPeriodogram
— TypeBLSPeriodogram
A convenient wrapper for outputs from BLS
.
Methods
Attributes
t
- input time gridy
- input datayerr
- input data uncertaintyperiods
- the input periodsduration_in
- the input durationsobjective
- the objective that was maximizedpower
- the power calculated at each periodduration
- the best duration at each periodt0
- the best transit time at each perioddepth
- the best transit depth at each periodsnr
- the signal-to-noise ratio at each periodloglike
- the log-likeilhood at each period
Plotting
Plotting recipes are provided for BLSPeriodogram
which automatically plots the period and the power
BoxLeastSquares.BLS
— FunctionBLS(t, y, [yerr];
duration, periods=autoperiod(t, duration, kwargs...),
objective=:likelihood, oversample=10, kwargs...)
Compute the box-least-squares periodogram.
Parameters
t
- the time for each observation. Units are irrelevant, except that they must be consistent for all temporal parameters (e.g.,duration
).Unitful.jl
units work seamlessly without needing to convert.y
- the flux value for each observationyerr
, optional - the uncertainty for each observation, if not provided, will default to onesduration
- The duration or durations to consider. Same units ast
periods
, optional - The period grid to computer the BLS power over. If not provided,autoperiod
will be called along with any extra keyword arguments (likeminimum_period
)objective
, optional - Choose between maximizing the likeilhood (:likeilhood
, default) or the signal-to-noise ratio (:snr
).oversample
, optional - The number of bins per duration that should be used. Larger values ofoversample
will lead to a finer grid.
The returned values are wrapped into a convenience type BoxLeastSquares.BLSPeriodogram
BoxLeastSquares.autoperiod
— Methodautoperiod(t, duration;
minimum_n_transit=3, frequency_factor=1.0,
[minimum_period, maximum_period])
Automatically determine a period grid from the given times and duration(s). Periods are selected such that at least minimum_n_trasnit
transits occur. The default minimum period is twice the maximum duration. The default maximum period is (maximum(t) - minimum(t)) / (minimum_n_transit - 1)
. The frequency factor changes the granularity in frequency space- a smaller frequency factor will create a finer period grid.
BoxLeastSquares.model
— FunctionBoxLeastSquares.model(t, y, [yerr]; period, duration, t0)
Evaluate the transit model on the given time grid. If yerr
is not provided, it will default to 1. The following transit parameters must be set:
period
orbital period in the same units ast
duration
the transit duration in the same units ast
t0
the transit time (middle of transit) in the same units ast
If you are using Unitful.jl
, the unit conversions will be made automatically.
BoxLeastSquares.model
— MethodBoxLeastSquares.model(::BLSPeriodogram; kwargs...)
Create a transit model using the data and best-fitting parameters from the given BLS periodogram. Any keyword parameters can be overriden.
BoxLeastSquares.params
— MethodBoxLeastSquares.params(::BLSPeriodogram)
Return the transit parameters for the best fitting period. Returns period, duration, t0, and power as well as the index of the max-power period.
BoxLeastSquares.periods
— MethodBoxLeastSquares.periods(::BLSPeriodogram)
Return the period grid for the periodogram
BoxLeastSquares.power
— MethodBoxLeastSquares.power(::BLSPeriodogram)
Return the power calculated for each period for the periodogram