Skip to content

Commit 83e30ed

Browse files
committed
Merge branch 'astroquery_integration' of https://gitlab.esa.int/SSA-NEO/neocc_python_interface into main
2 parents 501e1dd + d5bd04b commit 83e30ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+112425
-0
lines changed

astroquery/esa/neocc/__init__.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
"""
2+
3+
@author: C. Álvaro Arroyo
4+
5+
6+
European Space Agency (ESA)
7+
8+
Created on 16 Jun. 2021
9+
Last update 02 Nov. 2021
10+
11+
"""
12+
import os
13+
from astropy import config as _config
14+
15+
class Conf(_config.ConfigNamespace):
16+
"""
17+
Configuration parameters for 'ESANEOCC'
18+
"""
19+
BASE_URL = 'https://' + os.getenv('NEOCC_PORTAL_IP',
20+
default='neo.ssa.esa.int')
21+
22+
API_URL = _config.ConfigItem(BASE_URL +
23+
'/PSDB-portlet/download?file=')
24+
25+
EPHEM_URL = _config.ConfigItem(BASE_URL +
26+
'/PSDB-portlet/ephemerides?des=')
27+
28+
SUMMARY_URL = _config.ConfigItem(BASE_URL +
29+
'/search-for-asteroids?sum=1&des=')
30+
31+
TIMEOUT = 60
32+
33+
34+
SSL_CERT_VERIFICATION = bool(int(os.getenv('SSL_CERT_VERIFICATION',
35+
default="1")))
36+
37+
conf = Conf()
38+
39+
from .core import neocc, ESAneoccClass
40+
41+
__all__ = ['neocc', 'ESAneoccClass', 'Conf', 'conf']

0 commit comments

Comments
 (0)