Skip to content

Commit bf7439c

Browse files
tinuademargaretbsipocz
authored andcommitted
added remote data directive
1 parent bb92dd1 commit bf7439c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/fermi/fermi.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. doctest-skip-all
2-
31
**********************************
42
Fermi Queries (`astroquery.fermi`)
53
**********************************
@@ -11,15 +9,16 @@ The following example illustrates a Fermi LAT query,
119
centered on M 31 for the energy range 1 to 100 GeV for the first day in 2013.
1210

1311
.. code-block:: python
12+
.. doctest-remote-data::
1413

1514
>>> from astroquery import fermi
1615
>>> result = fermi.FermiLAT.query_object('M31', energyrange_MeV='1000, 100000',
1716
... obsdates='2013-01-01 00:00:00, 2013-01-02 00:00:00')
18-
>>> print(result)
19-
['https://fermi.gsfc.nasa.gov/FTP/fermi/data/lat/queries/L1309041729388EB8D2B447_SC00.fits',
20-
'https://fermi.gsfc.nasa.gov/FTP/fermi/data/lat/queries/L1309041729388EB8D2B447_PH00.fits']
17+
>>> print(result) # doctest: +IGNORE_OUTPUT
18+
['https://fermi.gsfc.nasa.gov/FTP/fermi/data/lat/queries/L210111120827756AAA3A88_PH00.fits',
19+
'https://fermi.gsfc.nasa.gov/FTP/fermi/data/lat/queries/L210111120827756AAA3A88_SC00.fits']
2120
>>> from astropy.io import fits
22-
>>> sc = fits.open('https://fermi.gsfc.nasa.gov/FTP/fermi/data/lat/queries/L1309041729388EB8D2B447_SC00.fits')
21+
>>> sc = fits.open('https://fermi.gsfc.nasa.gov/FTP/fermi/data/lat/queries/L210111120827756AAA3A88_SC00.fits')
2322

2423

2524
Reference/API

0 commit comments

Comments
 (0)