;+ ; ;NAME: ;iug_load_mf_rish ; ;PURPOSE: ; Queries the Kyoto_RISH servers for the observation data (uwind, vwind, wwind) ; in the NetCDF format taken by the MF radar at Pameungpeuk and loads data into ; tplot format. ; ;SYNTAX: ; iug_load_mf_rish, datatype = datatype, site=site, downloadonly=downloadonly, trange=trange, verbose=verbose ; ;KEYWOARDS: ; datatype = Observation data type. For example, iug_load_mf_rish, datatype = 'thermosphere'. ; The default is 'thermosphere'. ; site = Observatory code name. For example, iug_load_mf_rish, site = 'pam'. ; The default is 'all', i.e., load all available stations. ; trange = (Optional) Time range of interest (2 element array), if ; this is not set, the default is to prompt the user. Note ; that if the input time range is not a full day, a full ; day's data is loaded. ; /downloadonly, if set, then only download the data, do not load it ; into variables. ; ;CODE: ; A. Shinbori, 09/19/2010. ; ;MODIFICATIONS: ; A. Shinbori, 03/24/2011. ; ;ACKNOWLEDGEMENT: ; $LastChangedBy: jwl $ ; $LastChangedDate: 2012-10-11 14:47:41 -0700 (Thu, 11 Oct 2012) $ ; $LastChangedRevision: 10980 $ ; $URL $ ;- pro iug_load_mf_rish, datatype = datatype, site=site, $ downloadonly=downloadonly, trange=trange, verbose=verbose ;************** ;keyword check: ;************** if (not keyword_set(verbose)) then verbose=2 ;************************************ ;Load 'thermosphere' data by default: ;************************************ if (not keyword_set(datatype)) then datatype='thermosphere' ;*********** ;site codes: ;*********** ;--- all sites (default) site_code_all = strsplit('pam',' ', /extract) ;--- check site codes if(not keyword_set(site)) then site='all' site_code = thm_check_valid_name(site, site_code_all, /ignore_case, /include_all) print, site_code for i=0, n_elements(site_code)-1 do begin if site_code[i] eq 'pam' then iug_load_mf_rish_pam_nc, site = site_code[i], downloadonly=downloadonly, trange=trange, verbose=verbose ;if site_code[i] eq 'pon' then iug_load_mf_rish_pon_txt, site = site_code[i], downloadonly=downloadonly, trange=trange, verbose=verbose endfor end