IDL Command: vso files

From RHESSI Wiki

(Difference between revisions)
Jump to: navigation, search
m (Vso files moved to IDL Command: vso files: Did not realize that there was no "alias" possible for a page)
m (Put Requirements before Description)
 
(2 intermediate revisions not shown)
Line 1: Line 1:
== Purpose ==
== Purpose ==
''vso_files'' allows searching the VSO from within an active SSW IDL session. It returns HTTP links to data that match the specified search criteria. ''vso_files'' allows for time and instrument based search. See [[vso_search]] for the more configurable VSO search routine.
''vso_files'' allows searching the VSO from within an active SSW IDL session. It returns HTTP links to data that match the specified search criteria. ''vso_files'' allows for time and instrument based search. See [[vso_search]] for the more configurable VSO search routine.
 +
 +
== Requirements ==
 +
* Up-to-date SSW gen tree, [http://hesperia.gsfc.nasa.gov/rhessidatacenter/software/installation.html installation and download instructions]
== Description ==
== Description ==
<source lang="ittvis_idl" enclose="div">
<source lang="ittvis_idl" enclose="div">
; Routine syntax
; Routine syntax
-
urls = vso_files(tstart, tend, instrument=instrument)
+
urls = [f]vso_files[/f](tstart, tend, instrument=instrument)
</source>
</source>
Line 16: Line 19:
|-  
|-  
| tstart  
| tstart  
-
| This is the start time for the search interval. If ''tend'' is not specified the date closest to ''tstart'' is returned. Time is in TAI.
+
| This is the start time for the search interval. If ''tend'' is not specified the date closest to ''tstart'' is returned. Time is in TAI. || '1-may-07', '21-apr-2009 10:01'
-
| '1-may-07', '21-apr-2009 10:01'
+
|-
|-
-
| tend  
+
| tend || This is the end time for the search interval. Time is in TAI.
-
| This is the end time for the search interval. Time is in TAI.
+
| '2-may-2009'
| '2-may-2009'
|-
|-
-
| instrument  
+
| instrument || This parameter specifies the type of instrument to search for. See the [[VSO Instrument List]] for more information.
-
| This parameter specifies the type of instrument to search for. See the [[Instrument List]] for more information.
+
| instrument='eit', instr='euvi'
| instrument='eit', instr='euvi'
|}
|}
-
 
-
== Requirements ==
 
-
* Up-to-date SSW gen tree, [http://hesperia.gsfc.nasa.gov/rhessidatacenter/software/installation.html installation and download instructions]
 
== Troubleshooting ==
== Troubleshooting ==
Line 41: Line 38:
<source lang="ittvis_idl">
<source lang="ittvis_idl">
; This will return one HTTP link to the EIT image closest to April 21, 2002 00:00
; This will return one HTTP link to the EIT image closest to April 21, 2002 00:00
-
file = vso_files('21-apr-2002', instr='eit')
+
file = [f]vso_files[/f]('21-apr-2002', instr='eit')
; This will return HTTP links to EUVI images between April 21, 2002 10:10 and April 21, 2002 11:00
; This will return HTTP links to EUVI images between April 21, 2002 10:10 and April 21, 2002 11:00
-
files = vso_files('21-apr-2002 10:10', '21-apr-2002 11:00', instrument='euvi')
+
files = [f]vso_files[/f]('21-apr-2002 10:10', '21-apr-2002 11:00', instrument='euvi')
</source>
</source>

Latest revision as of 21:13, 17 August 2010

Contents

Purpose

vso_files allows searching the VSO from within an active SSW IDL session. It returns HTTP links to data that match the specified search criteria. vso_files allows for time and instrument based search. See vso_search for the more configurable VSO search routine.

Requirements

Description

; Routine syntax
urls = vso_files(tstart, tend, instrument=instrument)

tstart and instrument are mandatory parameters, tend is optional. If tend is not specified the search will return only the one HTTP link to the data file that is closest to tstart. Otherwise, all data in the given interval are returned.

Keyword Description Example
tstart This is the start time for the search interval. If tend is not specified the date closest to tstart is returned. Time is in TAI. '1-may-07', '21-apr-2009 10:01'
tend This is the end time for the search interval. Time is in TAI. '2-may-2009'
instrument This parameter specifies the type of instrument to search for. See the VSO Instrument List for more information. instrument='eit', instr='euvi'

Troubleshooting

IDL error: Cannot connect to port 80 (and similar messages)

Network timeouts can lead to this error. Try searching again later.

Examples

The following commands show how to search for data using the VSO.

; This will return one HTTP link to the EIT image closest to April 21, 2002 00:00
file = vso_files('21-apr-2002', instr='eit')
 
; This will return HTTP links to EUVI images between April 21, 2002 10:10 and April 21, 2002 11:00
files = vso_files('21-apr-2002 10:10', '21-apr-2002 11:00', instrument='euvi')
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox