Source: io/make_fname.pro
MAKE_FNAME Produce the filename of a LAN archive file given the year and the day. Call: name = make_fname(trange, arch_spec, spath[, oldname]) Return Value: name string The name of the file for the given year and day. Arguments: trange double input The julian date of the start & end. arch_spec struct input A structure specifying how to generate the filename spath string input A string array listing the directories in which to search. oldname string input Optional filename not to be matched. Keywords: new_search If set, then (1) regenerate the files list, and (2) do a backwards scan through dates up to the duration of the file, if necessary. History: Prototype: 29/1/91; SJT Changed to a full LAN archive name: 22/2/91; SJT Accept file type, to accomodate split archives: 12/3/91; SJT Accept archive type to allow ULA or UAV rates to be handled: 22/3/91; SJT Try both .lan and .rat for file type in ULA case: 19/4/91; SJT Unified version: 28/8/91; SJT DO directory setting in here: 3/9/91; SJT Add optional check that filename is not the same as previous (passed to procedure as a 3rd argument) 18/9/91; SJT Prepend directory name in UNIX: 8/10/91; SJT Add TRK support: 25/11/91; SJT Truncate version numbers: 16/1/92; SJT Add QULA support: 20/1/92; SJT Remove cd (replace with form_fname): 4/2/92; SJT Add support of PHA and MFS files from PHAGEN: 23/6/92; SJT Add support for compressed 1d & 6h archives: 26/10/92; SJT Add forward search if search fails backwards: 28/10/92; SJT Change backscan length to 3 for TRK: 1/2/93; SJT Add decompression of compressed file in unix: 12/3/93; SJT Reduced calls to findfile: 2/7/93; SJT Add UAF files: 23/7/93; SJT Add backwards keyword: 6/8/93; SJT Add support for GNU zipped files: 30/9/93 Remember filenames from one invokation to the next: 6/10/93; SJT Add CUA[VF] files: 22/8/94; SJT Correct name list when file is decompressed: 4/10/94; SJT Spin off some of the messy bits to subprograms also make I and Q files automatic: 21/10/94; SJT Incorporate CDF: 3/11/94; SJT Extend to UDS: 3/11/94; SJT Add file_time key (for SWOOPS uds): 8/11/94; SJT Extra safety lock on forward search & old name match: 27/6/95; SJT Fix for dates beyond 2000: 1/12/95; SJT Decompression now removed since HSIO now supports dynamic decompression: 4/12/97; SJT Add 'ala' name for EPAM .pha files: 3/11/98; SJT