Skip to content

Commit

Permalink
support 3FGL
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchez committed Jan 12, 2015
1 parent 4d48d09 commit 4050f58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions enrico/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Download URLs
FSSC_URL = 'http://fermi.gsfc.nasa.gov/ssc'
FSSC_FTP_URL = 'ftp://legacy.gsfc.nasa.gov/fermi/data/lat'
CATALOG_URL = join(FSSC_URL, 'data/access/lat/2yr_catalog')
CATALOG_URL = join(FSSC_URL, 'data/access/lat/4yr_catalog')
DIFFUSE_URL = join(FSSC_URL, 'data/analysis/software/aux')
WEEKLY_URL = join(FSSC_FTP_URL, 'weekly/photon')
SPACECRAFT_URL = join(FSSC_FTP_URL, 'mission/spacecraft',
Expand Down Expand Up @@ -125,7 +125,7 @@ def download_aux(self):
filename = join(CATALOG_TEMPLATE_DIR, 'CenALobes.fits')
if not os.path.isfile(filename):
# Now we know that we want to download
filename = 'gll_psc_v%s_templates.tgz' % TEMPLATE_VERSION
filename = 'LAT_extended_sources_v%s.tgz' % TEMPLATE_VERSION
url = join(CATALOG_URL, filename)
path = join(CATALOG_DIR, filename)
print('Downloading %s' % path)
Expand Down
10 changes: 6 additions & 4 deletions enrico/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
FERMI_DATA_DIR = os.environ.get('FERMI_DATA_DIR', '')
CATALOG_DIR = os.environ.get('FERMI_CATALOG_DIR', '')
CATALOG_TEMPLATE_DIR = ''
if CATALOG_DIR :
CATALOG_TEMPLATE_DIR = join(CATALOG_DIR, 'Templates')

DIFFUSE_DIR = os.environ.get('FERMI_DIFFUSE_DIR', '')
DOWNLOAD_DIR = os.environ.get('FERMI_DOWNLOAD_DIR', '')
WEEKLY_DIR = ''
Expand All @@ -44,8 +43,11 @@
DIRS = {}

# File names
CATALOG_VERSION = '08'
TEMPLATE_VERSION = '07'
CATALOG_VERSION = '14'
TEMPLATE_VERSION = '15'
if CATALOG_DIR :
CATALOG_TEMPLATE_DIR = join(CATALOG_DIR, 'Extended_archive_v%s/Templates'% TEMPLATE_VERSION)

CATALOG = 'gll_psc_v%s.fit' % CATALOG_VERSION
DIFFUSE_GAL = 'gll_iem_v05_rev1.fit'
DIFFUSE_ISO_SOURCE = 'iso_source_v05.txt'
Expand Down

0 comments on commit 4050f58

Please sign in to comment.