Skip to content
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6f12bc7
Add the dastcom5 module from poliastro
anhiga Jan 17, 2019
85e6ca0
Add the init file
shreyasbapat Jan 17, 2019
8fd6b0e
Add the core package for querying DASTCOM5
shreyasbapat Jan 17, 2019
dcf2fb5
Create a stack of tables for returning multiple orbits
shreyasbapat Jan 17, 2019
6633d0c
Complete the DASTCOM5 Module, Add tests
shreyasbapat Jan 17, 2019
1f825fd
Fix PEP8 Errors
shreyasbapat Jan 17, 2019
01898ca
Minor changes
shreyasbapat Jan 28, 2019
d3f26ff
Add Python2 Support
shreyasbapat Jan 28, 2019
8064ab6
Work on suggestions
shreyasbapat Jan 29, 2019
c973e3e
Fix download progress issue
amsuhane Feb 5, 2019
8d853fd
Remove vstack
shreyasbapat Feb 5, 2019
d34b2fc
Fix PEP8 issues!
shreyasbapat Feb 5, 2019
b0f3f07
Remove urllib, remove class, add _download_file
shreyasbapat Feb 6, 2019
9d479d6
Add the dastcom5 module from poliastro
anhiga Jan 17, 2019
0388788
Add the init file
shreyasbapat Jan 17, 2019
06c422e
Add the core package for querying DASTCOM5
shreyasbapat Jan 17, 2019
6c8cd85
Create a stack of tables for returning multiple orbits
shreyasbapat Jan 17, 2019
8739e0a
Complete the DASTCOM5 Module, Add tests
shreyasbapat Jan 17, 2019
b61374b
Fix PEP8 Errors
shreyasbapat Jan 17, 2019
d3986f3
Minor changes
shreyasbapat Jan 28, 2019
bc0d1eb
Add Python2 Support
shreyasbapat Jan 28, 2019
614b835
Work on suggestions
shreyasbapat Jan 29, 2019
cf28593
Fix download progress issue
amsuhane Feb 5, 2019
af17efd
Remove vstack
shreyasbapat Feb 5, 2019
e07b55f
Fix PEP8 issues!
shreyasbapat Feb 5, 2019
83c32a0
Remove urllib, remove class, add _download_file
shreyasbapat Feb 6, 2019
9be0535
Add ftp_download method
shreyasbapat Feb 7, 2019
29843a4
Merge branch 'dastcom' of https://github.com/shreyasbapat/astroquery …
shreyasbapat Feb 7, 2019
10d497f
Remove _ from download ftp
shreyasbapat Feb 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
296 changes: 296 additions & 0 deletions astroquery/dastcom5/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
"""
DASTCOM5 Query Tool
===================

:Authors:
1) Antonio Hidalgo (antoniohidalgo.inves@gmail.com)
2) Juan Luis Cano Rodríguez (juanlu001@gmail.com)

This module contains various methods for querying the
DASTCOM5.

All of the methods are coded as part of SOCIS 2017 for poliastro by Antonio Hidalgo[1].
"""
import os
import numpy as np

from astropy import config as _config


class Conf(_config.ConfigNamespace):
AST_DTYPE = np.dtype(
[
("NO", np.int32),
("NOBS", np.int32),
("OBSFRST", np.int32),
("OBSLAST", np.int32),
("EPOCH", np.float64),
("CALEPO", np.float64),
("MA", np.float64),
("W", np.float64),
("OM", np.float64),
("IN", np.float64),
("EC", np.float64),
("A", np.float64),
("QR", np.float64),
("TP", np.float64),
("TPCAL", np.float64),
("TPFRAC", np.float64),
("SOLDAT", np.float64),
("SRC1", np.float64),
("SRC2", np.float64),
("SRC3", np.float64),
("SRC4", np.float64),
("SRC5", np.float64),
("SRC6", np.float64),
("SRC7", np.float64),
("SRC8", np.float64),
("SRC9", np.float64),
("SRC10", np.float64),
("SRC11", np.float64),
("SRC12", np.float64),
("SRC13", np.float64),
("SRC14", np.float64),
("SRC15", np.float64),
("SRC16", np.float64),
("SRC17", np.float64),
("SRC18", np.float64),
("SRC19", np.float64),
("SRC20", np.float64),
("SRC21", np.float64),
("SRC22", np.float64),
("SRC23", np.float64),
("SRC24", np.float64),
("SRC25", np.float64),
("SRC26", np.float64),
("SRC27", np.float64),
("SRC28", np.float64),
("SRC29", np.float64),
("SRC30", np.float64),
("SRC31", np.float64),
("SRC32", np.float64),
("SRC33", np.float64),
("SRC34", np.float64),
("SRC35", np.float64),
("SRC36", np.float64),
("SRC37", np.float64),
("SRC38", np.float64),
("SRC39", np.float64),
("SRC40", np.float64),
("SRC41", np.float64),
("SRC42", np.float64),
("SRC43", np.float64),
("SRC44", np.float64),
("SRC45", np.float64),
("PRELTV", np.int8),
("SPHMX3", np.int8),
("SPHMX5", np.int8),
("JGSEP", np.int8),
("TWOBOD", np.int8),
("NSATS", np.int8),
("UPARM", np.int8),
("LSRC", np.int8),
("NDEL", np.int16),
("NDOP", np.int16),
("H", np.float32),
("G", np.float32),
("A1", np.float32),
("A2", np.float32),
("A3", np.float32),
("R0", np.float32),
("ALN", np.float32),
("NM", np.float32),
("NN", np.float32),
("NK", np.float32),
("LGK", np.float32),
("RHO", np.float32),
("AMRAT", np.float32),
("ALF", np.float32),
("DEL", np.float32),
("SPHLM3", np.float32),
("SPHLM5", np.float32),
("RP", np.float32),
("GM", np.float32),
("RAD", np.float32),
("EXTNT1", np.float32),
("EXTNT2", np.float32),
("EXTNT3", np.float32),
("MOID", np.float32),
("ALBEDO", np.float32),
("BVCI", np.float32),
("UBCI", np.float32),
("IRCI", np.float32),
("RMSW", np.float32),
("RMSU", np.float32),
("RMSN", np.float32),
("RMSNT", np.float32),
("RMSH", np.float32),
("EQUNOX", "|S4"),
("PENAM", "|S6"),
("SBNAM", "|S12"),
("SPTYPT", "|S5"),
("SPTYPS", "|S5"),
("DARC", "|S9"),
("COMNT1", "|S41"),
("COMNT2", "|S80"),
("DESIG", "|S13"),
("ASTEST", "|S8"),
("IREF", "|S10"),
("ASTNAM", "|S18"),
]
)

COM_DTYPE = np.dtype(
[
("NO", np.int32),
("NOBS", np.int32),
("OBSFRST", np.int32),
("OBSLAST", np.int32),
("EPOCH", np.float64),
("CALEPO", np.float64),
("MA", np.float64),
("W", np.float64),
("OM", np.float64),
("IN", np.float64),
("EC", np.float64),
("A", np.float64),
("QR", np.float64),
("TP", np.float64),
("TPCAL", np.float64),
("TPFRAC", np.float64),
("SOLDAT", np.float64),
("SRC1", np.float64),
("SRC2", np.float64),
("SRC3", np.float64),
("SRC4", np.float64),
("SRC5", np.float64),
("SRC6", np.float64),
("SRC7", np.float64),
("SRC8", np.float64),
("SRC9", np.float64),
("SRC10", np.float64),
("SRC11", np.float64),
("SRC12", np.float64),
("SRC13", np.float64),
("SRC14", np.float64),
("SRC15", np.float64),
("SRC16", np.float64),
("SRC17", np.float64),
("SRC18", np.float64),
("SRC19", np.float64),
("SRC20", np.float64),
("SRC21", np.float64),
("SRC22", np.float64),
("SRC23", np.float64),
("SRC24", np.float64),
("SRC25", np.float64),
("SRC26", np.float64),
("SRC27", np.float64),
("SRC28", np.float64),
("SRC29", np.float64),
("SRC30", np.float64),
("SRC31", np.float64),
("SRC32", np.float64),
("SRC33", np.float64),
("SRC34", np.float64),
("SRC35", np.float64),
("SRC36", np.float64),
("SRC37", np.float64),
("SRC38", np.float64),
("SRC39", np.float64),
("SRC40", np.float64),
("SRC41", np.float64),
("SRC42", np.float64),
("SRC43", np.float64),
("SRC44", np.float64),
("SRC45", np.float64),
("SRC46", np.float64),
("SRC47", np.float64),
("SRC48", np.float64),
("SRC49", np.float64),
("SRC50", np.float64),
("SRC51", np.float64),
("SRC52", np.float64),
("SRC53", np.float64),
("SRC54", np.float64),
("SRC55", np.float64),
("PRELTV", np.int8),
("SPHMX3", np.int8),
("SPHMX5", np.int8),
("JGSEP", np.int8),
("TWOBOD", np.int8),
("NSATS", np.int8),
("UPARM", np.int8),
("LSRC", np.int8),
("IPYR", np.int16),
("NDEL", np.int16),
("NDOP", np.int16),
("NOBSMT", np.int16),
("NOBSMN", np.int16),
("H", np.float32),
("G", np.float32),
("M1 (MT)", np.float32),
("M2 (MN)", np.float32),
("K1 (MTSMT)", np.float32),
("K2 (MNSMT)", np.float32),
("PHCOF (MNP)", np.float32),
("A1", np.float32),
("A2", np.float32),
("A3", np.float32),
("DT", np.float32),
("R0", np.float32),
("ALN", np.float32),
("NM", np.float32),
("NN", np.float32),
("NK", np.float32),
("S0", np.float32),
("TCL", np.float32),
("RHO", np.float32),
("AMRAT", np.float32),
("AJ1", np.float32),
("AJ2", np.float32),
("ET1", np.float32),
("ET2", np.float32),
("DTH", np.float32),
("ALF", np.float32),
("DEL", np.float32),
("SPHLM3", np.float32),
("SPHLM5", np.float32),
("RP", np.float32),
("GM", np.float32),
("RAD", np.float32),
("EXTNT1", np.float32),
("EXTNT2", np.float32),
("EXTNT3", np.float32),
("MOID", np.float32),
("ALBEDO", np.float32),
("RMSW", np.float32),
("RMSU", np.float32),
("RMSN", np.float32),
("RMSNT", np.float32),
("RMSMT", np.float32),
("RMSMN", np.float32),
("EQUNOX", "|S4"),
("PENAM", "|S6"),
("SBNAM", "|S12"),
("DARC", "|S9"),
("COMNT3", "|S49"),
("COMNT2", "|S80"),
("DESIG", "|S13"),
("COMEST", "|S14"),
("IREF", "|S10"),
("COMNAM", "|S29"),
]
)
ASTROQUERY_LOCAL_PATH = os.path.join(os.path.expanduser("~"), ".astroquery")
DBS_LOCAL_PATH = os.path.join(ASTROQUERY_LOCAL_PATH, "dastcom5", "dat")
AST_DB_PATH = os.path.join(DBS_LOCAL_PATH, "dast5_le.dat")
COM_DB_PATH = os.path.join(DBS_LOCAL_PATH, "dcom5_le.dat")
FTP_DB_URL = "ftp://ssd.jpl.nasa.gov/pub/ssd/"


conf = Conf()

from .core import *

__all__ = [Dastcom5, Dastcom5Class]
Loading