Module: Bowshock::ExoPlanet
- Included in:
- Bowshock
- Defined in:
- lib/bowshock/exoplanet.rb
Class Method Summary collapse
- .allConfirmedPlanetsAndCols ⇒ Object
- .allMicrolensingPlanetsWithTimeSeries ⇒ Object
- .allPlanetaryCandidatesSmallerThan2ReWithEquilibriumTemperaturesBetween180and303K ⇒ Object
- .confirmedPlanetsInKeplerField ⇒ Object
- .confirmedPlanetsInMissionStarList ⇒ Object
- .confirmedPlanetsThatTransitHostStars ⇒ Object
- .currentNonConfirmedPlanetCandidates ⇒ Object
- .getSingleKOI(kepoi_name) ⇒ Object
- .k2TargetsFromCapaign9 ⇒ Object
- .starsKnownToHostExoPlanets ⇒ Object
Class Method Details
.allConfirmedPlanetsAndCols ⇒ Object
3 4 5 6 |
# 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 ⇒ Object
51 52 53 54 |
# 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 ⇒ Object
57 58 59 60 |
# 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 ⇒ Object
9 10 11 12 |
# 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 ⇒ Object
39 40 41 42 |
# 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 ⇒ Object
21 22 23 24 |
# 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 ⇒ Object
27 28 29 30 |
# 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) ⇒ Object
45 46 47 48 |
# 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 ⇒ Object
33 34 35 36 |
# 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 ⇒ Object
15 16 17 18 |
# 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 |