Loading README.md +31 −5 Original line number Original line Diff line number Diff line Tools to handle ARTECS contents Authors: Michele Maris (1), Marco Molinaro (1) (1) INAF/Trieste Astronomical Observatory First Issue: 2018 Nov 1 Python3 library to handle contents of ARTECS: Archive of terrestrial-type climate simulations http://wwwuser.oats.inaf.it/exobio/climates/ through TAP and PYVO services. Dependencies: numpy, scipy, pandas, pyvo Dependencies: numpy, scipy, pandas, pyvo Example of session with TAP: To install pyvo: >sudo pip install pyvo Example of session with TAP: selection of a list of cases >import pyvo as vo >import pyvo as vo >tap_service = vo.dal.TAPService("http://archives.ia2.inaf.it/vo/tap/exo") >tap_service = vo.dal.TAPService("http://archives.ia2.inaf.it/vo/tap/exo") >tap_results = tap_service.search("SELECT top 1 exp_id, url FROM exo.EXO") >tap_results = tap_service.search("SELECT top 1 exp_id, url FROM exo.EXO") >print(tap_results) >print(tap_results) >len(tap_results) >len(tap_results) >tap_results.getrecord(0) >tap_results.getrecord(0) To install pyvo: >sudo pip install pyvo Example of session using Artecs.tap Example of session with TAP: download of a fits map of temperatures >import artecs >import artecs >atap=artecs.exop_pubblic_tap() >atap=artecs.exop_pubblic_tap() >atap.EXPLAIN() >atap.EXPLAIN() >atap.keys() >atap.keys() >tab=atap.search('(0.7 <= SMA) and (SMA <=3.)') >tab=atap.search('(0.7 <= SMA) and (SMA <=3.)') >tab.FO_CONST.unique() >tab.FO_CONST.unique() >tab.to_csv('/tmp/pippo.csv',sep=' ') >tab.to_csv('/tmp/pippo.csv',sep=' ') >MAP=atap.get_map(tab.URL[0]) >MAP=atap.get_map(tab.URL[0]) Loading
README.md +31 −5 Original line number Original line Diff line number Diff line Tools to handle ARTECS contents Authors: Michele Maris (1), Marco Molinaro (1) (1) INAF/Trieste Astronomical Observatory First Issue: 2018 Nov 1 Python3 library to handle contents of ARTECS: Archive of terrestrial-type climate simulations http://wwwuser.oats.inaf.it/exobio/climates/ through TAP and PYVO services. Dependencies: numpy, scipy, pandas, pyvo Dependencies: numpy, scipy, pandas, pyvo Example of session with TAP: To install pyvo: >sudo pip install pyvo Example of session with TAP: selection of a list of cases >import pyvo as vo >import pyvo as vo >tap_service = vo.dal.TAPService("http://archives.ia2.inaf.it/vo/tap/exo") >tap_service = vo.dal.TAPService("http://archives.ia2.inaf.it/vo/tap/exo") >tap_results = tap_service.search("SELECT top 1 exp_id, url FROM exo.EXO") >tap_results = tap_service.search("SELECT top 1 exp_id, url FROM exo.EXO") >print(tap_results) >print(tap_results) >len(tap_results) >len(tap_results) >tap_results.getrecord(0) >tap_results.getrecord(0) To install pyvo: >sudo pip install pyvo Example of session using Artecs.tap Example of session with TAP: download of a fits map of temperatures >import artecs >import artecs >atap=artecs.exop_pubblic_tap() >atap=artecs.exop_pubblic_tap() >atap.EXPLAIN() >atap.EXPLAIN() >atap.keys() >atap.keys() >tab=atap.search('(0.7 <= SMA) and (SMA <=3.)') >tab=atap.search('(0.7 <= SMA) and (SMA <=3.)') >tab.FO_CONST.unique() >tab.FO_CONST.unique() >tab.to_csv('/tmp/pippo.csv',sep=' ') >tab.to_csv('/tmp/pippo.csv',sep=' ') >MAP=atap.get_map(tab.URL[0]) >MAP=atap.get_map(tab.URL[0])