;+
; Project     : EIS
;
; Name        : EIS_FILE2URL
;
; Purpose     : Return URL locations of EIS raster files
;
; Category    : utility database
;                   
; Inputs      : FILES = EIS file names
;
; Outputs     : URLS = list of EIS file names with URL path
;
; Keywords    : ERR = error string
;
; History     : 17-June-2016, Zarro (ADNET) - written
;
; Contact     : DZARRO@SOLAR.STANFORD.EDU
;-
;--------------------------------------------------------------------

function eis_file2url,files,_ref_extra=extra

if is_blank(files) then begin
 pr_syntax,'urls=eis_file2url(files)'
 return,''
endif

fids=parse_time(files)
url=eis_server(path=path,/full,_extra=extra,/no_check)

urls=url+path+'/'+string(fids.year,'(i4)')+'/'+$
          string(fids.month,'(i2.2)')+'/'+string(fids.day,'(i2.2)')+'/'+files

return,urls & end
