Skip to content

Commit

Permalink
Merge pull request #1360 from Cadair/vso_rice
Browse files Browse the repository at this point in the history
Make VSO download rice files by default
  • Loading branch information
Cadair committed Mar 25, 2015
2 parents aa38bc3 + 758bc46 commit ace99a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sunpy/net/vso/vso.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,8 @@ def latest(self):
time_near=datetime.utcnow()
)

def get(self, query_response, path=None, methods=('URL-FILE',), downloader=None, site=None):
def get(self, query_response, path=None, methods=('URL-FILE_Rice', 'URL-FILE'),
downloader=None, site=None):
"""
Download data specified in the query_response.
Expand All @@ -559,7 +560,12 @@ def get(self, query_response, path=None, methods=('URL-FILE',), downloader=None,
be refered to as file, e.g.
"{source}/{instrument}/{time.start}/{file}".
methods : {list of str}
Methods acceptable to user.
Download methods, defaults to URL-FILE_Rice then URL-FILE.
Methods are a concatenation of one PREFIX followed by any number of
SUFFIXES i.e. `PREFIX-SUFFIX_SUFFIX2_SUFFIX3`.
The full list of `PREFIXES <http://sdac.virtualsolar.org/cgi/show_details?keyword=METHOD_PREFIX>`_
and `SUFFIXES <http://sdac.virtualsolar.org/cgi/show_details?keyword=METHOD_SUFFIX>`_
are listed on the VSO site.
downloader : sunpy.net.downloader.Downloader
Downloader used to download the data.
site: str
Expand Down

0 comments on commit ace99a0

Please sign in to comment.