function get_sp_filenames, dir_path=dir_path
;
;+
;    Name:               get_sp_filenames
;
;    Purpose:            Create a vector of all available SP obsids suitable for use by make_some_spcubes.pro 
;
;    Keyword Parameters:
;                        dir_path=dir_path ;example for non-default path: dir_path='/net/vela/Volumes/venus/hinode/sot/level1hao/2010/*/*/SP3D/*'
;
;    Output:             driver for sp_make_cube_index.pro that accepts a vector of obsid strings/names.   (Can be a vector of 'one'.)
;
;    Calling Sequence and examples:
;                        IDL>sp_obsid_to_process_vector = get_sp_filenames()
;                        
;    History:
;                        2019-04-18 PGS         Clean-up
;
;-
;
;note: leaving these old paths in as examples.
;if ~keyword_set(dir_path) then dir_path  = '/links/archive1/hinode/sot/level2hao/201[4,5,6,7,8,9]/*/*/SP3D/*'
;if ~keyword_set(dir_path) then dir_path  = '/links/archive1/hinode/sot/level2hao/20?[0,1,2,3,4,5,6,7,8,9]/*/*/SP3D/*'
if ~keyword_set(dir_path) then dir_path  = '/archive/archive1/hinode/sot/level2hao/20?[0,1,2,3,4,5,6,7,8,9]/*/*/SP3D/*'
files=file_search(dir_path, /fully_qualify_path,/expand_environment)
number_of_files = n_elements(files)
if (number_of_files gt 0) then begin
  for i=0, (number_of_files-1) do begin
    temp_file_name = files(i)
    files(i) = strmid(temp_file_name, (strlen(files(i))) - 15,15)
  endfor
endif
return, files
end
