module Bowshock::ExoPlanet
Public Class Methods
allConfirmedPlanetsAndCols()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 3 def allConfirmedPlanetsAndCols() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&format=json" Helpers.getJson(uri, 'GET') end
allMicrolensingPlanetsWithTimeSeries()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 51 def allMicrolensingPlanetsWithTimeSeries() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&format=json&where=pl_discmethod like 'Microlensing' and st_nts > 0" Helpers.getJson(uri, 'GET') end
allPlanetaryCandidatesSmallerThan2ReWithEquilibriumTemperaturesBetween180and303K()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 57 def allPlanetaryCandidatesSmallerThan2ReWithEquilibriumTemperaturesBetween180and303K() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?table=cumulative&format=json&where=koi_prad<2 and koi_teq>180 and koi_teq<303 and koi_disposition like 'CANDIDATE'" Helpers.getJson(uri, 'GET') end
confirmedPlanetsInKeplerField()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 9 def confirmedPlanetsInKeplerField() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&format=json&where=pl_kepflag=1" Helpers.getJson(uri, 'GET') end
confirmedPlanetsInMissionStarList()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 39 def confirmedPlanetsInMissionStarList() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=missionstars&format=json&where=st_ppnum>0" Helpers.getJson(uri, 'GET') end
confirmedPlanetsThatTransitHostStars()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 21 def confirmedPlanetsThatTransitHostStars() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&format=json&where=pl_tranflag=1" Helpers.getJson(uri, 'GET') end
currentNonConfirmedPlanetCandidates()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 27 def currentNonConfirmedPlanetCandidates() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=cumulative&format=json&where=koi_disposition like 'CANDIDATE'" Helpers.getJson(uri, 'GET') end
getSingleKOI(kepoi_name)
click to toggle source
# File lib/bowshock/exoplanet.rb, line 45 def getSingleKOI(kepoi_name) uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=koi&format=json&where=kepoi_name='#{kepoi_name}'" Helpers.getJson(uri, 'GET') end
k2TargetsFromCapaign9()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 33 def k2TargetsFromCapaign9() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=k2targets&format=json&where=k2_campaign=9" Helpers.getJson(uri, 'GET') end
starsKnownToHostExoPlanets()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 15 def starsKnownToHostExoPlanets() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&select=distinct pl_hostname&order=pl_hostname&format=json" Helpers.getJson(uri, 'GET') end
Private Instance Methods
allConfirmedPlanetsAndCols()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 3 def allConfirmedPlanetsAndCols() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&format=json" Helpers.getJson(uri, 'GET') end
allMicrolensingPlanetsWithTimeSeries()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 51 def allMicrolensingPlanetsWithTimeSeries() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&format=json&where=pl_discmethod like 'Microlensing' and st_nts > 0" Helpers.getJson(uri, 'GET') end
allPlanetaryCandidatesSmallerThan2ReWithEquilibriumTemperaturesBetween180and303K()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 57 def allPlanetaryCandidatesSmallerThan2ReWithEquilibriumTemperaturesBetween180and303K() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?table=cumulative&format=json&where=koi_prad<2 and koi_teq>180 and koi_teq<303 and koi_disposition like 'CANDIDATE'" Helpers.getJson(uri, 'GET') end
confirmedPlanetsInKeplerField()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 9 def confirmedPlanetsInKeplerField() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&format=json&where=pl_kepflag=1" Helpers.getJson(uri, 'GET') end
confirmedPlanetsInMissionStarList()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 39 def confirmedPlanetsInMissionStarList() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=missionstars&format=json&where=st_ppnum>0" Helpers.getJson(uri, 'GET') end
confirmedPlanetsThatTransitHostStars()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 21 def confirmedPlanetsThatTransitHostStars() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&format=json&where=pl_tranflag=1" Helpers.getJson(uri, 'GET') end
currentNonConfirmedPlanetCandidates()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 27 def currentNonConfirmedPlanetCandidates() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=cumulative&format=json&where=koi_disposition like 'CANDIDATE'" Helpers.getJson(uri, 'GET') end
getSingleKOI(kepoi_name)
click to toggle source
# File lib/bowshock/exoplanet.rb, line 45 def getSingleKOI(kepoi_name) uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=koi&format=json&where=kepoi_name='#{kepoi_name}'" Helpers.getJson(uri, 'GET') end
k2TargetsFromCapaign9()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 33 def k2TargetsFromCapaign9() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=k2targets&format=json&where=k2_campaign=9" Helpers.getJson(uri, 'GET') end
starsKnownToHostExoPlanets()
click to toggle source
# File lib/bowshock/exoplanet.rb, line 15 def starsKnownToHostExoPlanets() uri = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?&table=exoplanets&select=distinct pl_hostname&order=pl_hostname&format=json" Helpers.getJson(uri, 'GET') end