Skip to content

Commit

Permalink
Merge pull request #4 from Caltech-IPAC/develop
Browse files Browse the repository at this point in the history
Version 1.0.5
  • Loading branch information
bjfultn authored May 4, 2021
2 parents 3ee1105 + 9d305fa commit a271277
Show file tree
Hide file tree
Showing 12 changed files with 881 additions and 229 deletions.
25 changes: 21 additions & 4 deletions pyneid/neid/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,12 @@ def download (self, metapath, datalevel, format, outdir, **kwargs):
"""urls for nph-neidDownload.py
"""

self.getneid_url = self.baseurl + 'cgi-bin/NeidAPI/nph-neidDownload.py?'
#self.getneid_url = self.baseurl + 'cgi-bin/NeidAPI/nph-neidDownload.py?'
getfile_baseurl = 'https://neid.ipac.caltech.edu/'

self.getneid_url = getfile_baseurl + 'get_file.php?'
#self.getneid_url = getfile_baseurl + 'get_file_pyNEID.php?'


if self.debug:
logging.debug ('')
Expand Down Expand Up @@ -1806,8 +1811,21 @@ def download (self, metapath, datalevel, format, outdir, **kwargs):
"""get data files
"""

url = self.getneid_url + 'datalevel=' + datalevel + \
'&filepath=' + '/' + filepath + '&debug=1'
#url = self.getneid_url + 'datalevel=' + datalevel + \
# '&filepath=' + '/' + filepath + '&debug=1'

url = self.getneid_url + 'filehand=' + filepath

if ((datalevel == 'eng') or (datalevel == 'solareng')):
url = url + '&eng'

if ((datalevel == 'solarl0') or \
(datalevel == 'solarl1') or \
(datalevel == 'solarl2') or \
(datalevel == 'solareng')):
url = url + '&solar'

url = url + '&json'

filepath = self.outdir + '/' + filename

Expand Down Expand Up @@ -3723,4 +3741,3 @@ def __get_statusjob (self):


Neid = Archive()
print ('Neid instantiated')
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="pyneid",
version="1.0.4",
version="1.0.5",
author="Mihseh Kong",
description="NEID archive access client",
long_description = long_description,
Expand Down
Loading

0 comments on commit a271277

Please sign in to comment.