;====================================================================== ; ; File: ; search_catalog_1.3.pro ; ; Purpose: ; Search on the UVCS data and events catalog tables ; located in ../TABLES ; Display FITS files matching the queries, the details ; of the observations and the events and the related ; mission log file ; Save and Print the results. ; ; Included Routines: ; UVCS_SEARCH_MAIN Main search window ; UVCS_SEARCH_MAIN_EVENT ; UVCS_READ_TABLE_A Read ascii table A ; UVCS_READ_TABLE_B Read ascii table B ; UVCS_SEL_CATALOG Select catalog file (one or more year) ; UVCS_SEARCH_DATA ; UVCS_SEL_DATA ; UVCS_CONV_DATETIME_TAI ; UVCS_CONV_TAI_DATETIME ; UVCS_SHOW_RESULTS ; UVCS_PRINT_RESULTS ; UVCS_SAVE_RESULTS ; UVCS_SHOW_DETAILS ; UVCS_SHOW_DETAILS_EVENT ; UVCS_SEARCH_EVE ; UVCS_READ_EVE_CAT ; UVCS_SHOW_EVE_DETAILS ; UVCS_SHOW_EVE_DETAILS_EVENT ; UVCS_GET_CORE_FITS ; UVCS_READ_MENU_VALUES ; PROGRESS_BAR_SG ; CW_DROPLIST2_SELECT ; CW_DROPLIST2_MAKE ; CW_DROPLIST2_SET_VALUE ; DIR_EXIST ; ; Included functions ; CW_DROPLIST2_GET_VALUE ; CW_DROPLIST2_EVENT ; CW_DROPLIST2 ; APPROX_CAT ; ; ; Modification History: ; Oct 15 2003 ; Oct 31 2003 Link, search and display for CMEs and Comets Catalogs ; link to the mission log ; v0.5 ; Nov 05 2003 Bug related to cnt removed ; In the catalog population, search and display ; the following fields have been added: ; spa_r = spatial resolution ; cmp = campaign number ; object = object ?? DAS33 new keywords ; results = results ?? DAS33 new keywords ; observer = lead observer ; v0.6 ; Nov 06 2003 Read two tables, the second one contains: ; file,object,results,observer,obs_mode,sci_obj ; v0.7 ; Nov 13 2003 Restyling and release ; v0.8 ; Mar 11 2004 the wavelength range selection takes into account the ; second order lines (UVCS_SEARCH_DATA procedure) ; Mar 22 2004 DIR_EXIST included in this file ; v0.9 ; May 20 2004 read the most recent version of CME and Comets Catalogs ; and read them (UVCS_READ_EVE_CAT) ; change Offset and Filter default search (UVCS_SEARCH_MAIN) ; v0.9.1 ; Oct 05 2004 inclusive search refinement (UVCS_SEARCH_DATA) ; v1.0 ; Jul 05 2005 menu for year selection ; v1.1 ; Oct 12 2005 +offset insted of -offset in UVCS_SHOW_DETAILS procedure ; v1.2 ; Jun 05 2006 menu for year selection extended to 2006 and 2007 ; v1.3 ; ; Author: ; Silvio Giordano ;====================================================================== ; ;---------------------------------------------------------------------- ; ; NAME: ; CW_DROPLIST2 ; PURPOSE: ; A pop up list from which to select an item. ; CATEGORY: ; CALLING SEQUENCE: ; wid = cw_droplist2( parent) ; INPUTS: ; parent = Widget ID of parent widget. in ; KEYWORD PARAMETERS: ; Keywords: ; VALUE=list Given text array with list of items. ; NUM=num Number to display before breaking list (def=15). ; UVALUE=uval User value that may be set. ; /UPDATE means update button with selected item. ; Otherwise button not updated except using ; cw_droplist2_select, id, indx ; OUTPUTS: ; wid = Widget ID of opo up list. out ; COMMON BLOCKS: ; NOTES: ; Note: You can set a new droplist using ; widget_control, id, set_value=list ; and get the current list using ; widget_control, id, get_value=list ; but to set the value displayed on the button you must do ; cw_droplist2_select, id, indx ; where indx is the index in the list to display. ; Use /UPDATE to avoid this extra call. ; MODIFICATION HISTORY: ; R. Sterner, 2001 Dec 07 ; S. Giordano, 2003 Nov 05 ;---------------------------------------------------------------------- ; ;---------------------------------------------------------------------- ; Select displayed item for cw_droplist2. ;---------------------------------------------------------------------- pro CW_DROPLIST2_SELECT, id, indx ; chld = widget_info(id, /child) ; First child widget. widget_control, chld, get_uval=s ; Grab state info from child. ; value = *s.p_value mx = n_elements(value)-1 widget_control, chld, set_value=value(indx