;+ ; ;NAME: ;iug_load_radiosonde_rish ; ;PURPOSE: ; Queries the Kyoto_RISH servers for all the observation data taken by ; the radiosonde at several observation points and loads data into ; tplot format. ; ;SYNTAX: ; iug_load_radiosonde_rish [ ,DATATYPE = string ] ; [ ,SITE = string ] ; [ ,TRANGE = [min,max] ] ; [ , ] ; ;KEYWOARDS: ; DATATYPE = The type of data to be loaded. In this load program, ; DATATYPEs are 'DAWEX' and 'misc'. ; SITE = The observation site. In this load program, ; defualt is 'sgk'. ; 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. ; VERBOSE (In): [1,...,5], Get more detailed (higher number) command line output. ; ;CODE: ; A. Shinbori, 19/12/2012. ; ;MODIFICATIONS: ; A. Shinbori, 04/06/2013. ; A. Shinbori, 24/01/2014. ; ;ACKNOWLEDGEMENT: ; $LastChangedBy: jwl $ ; $LastChangedDate: 2014-02-10 16:12:40 -0800 (Mon, 10 Feb 2014) $ ; $LastChangedRevision: 14263 $ ; $URL $ ;- pro iug_load_radiosonde_rish, datatype = datatype, $ site = site, $ downloadonly=downloadonly, $ trange=trange, $ verbose=verbose ;********************** ;Verbose keyword check: ;********************** if (not keyword_set(verbose)) then verbose=2 ;*************** ;Datatype check: ;*************** ;--- all datatypes (default) datatype_all = strsplit('dawex misc',' ', /extract) ;--- check datatypes if(not keyword_set(datatype)) then datatype='all' datatypes = thm_check_valid_name(datatype, datatype_all, /ignore_case, /include_all) print, datatypes ;*********** ;site check: ;*********** ;--- all site codes (default) site_all = strsplit('drw gpn ktb ktr sgk srp',' ', /extract) ;--- check site code if (not keyword_set(site)) then site='all' site_code = thm_check_valid_name(site, site_all, /ignore_case, /include_all) print, site_code ;====================================== ;======Load data of radiosonde========= ;====================================== for i=0, n_elements(datatypes)-1 do begin ;load of DAWEX radiosonde data if strupcase(datatypes[i]) eq 'DAWEX' then begin for j=0, n_elements(site_code)-1 do begin iug_load_radiosonde_dawex_nc, site=site_code[j], $ downloadonly=downloadonly, trange=trange, verbose=verbose endfor endif ;load of Shigaraki radiosonde data if (datatypes[i] eq 'misc') then begin for j=0, n_elements(site_code)-1 do begin iug_load_radiosonde_sgk_csv, downloadonly=downloadonly, trange=trange, verbose=verbose endfor endif endfor end