Retrieves SAC files from station & date info.

This function returns a vector of SAC file names
750 Downloads
Updated 13 Nov 2009

View License

This function returns a vector of SAC file names given information of the SAC file. The input format relies on the PASSCAL/IRIS file format, which is of the form:

STACODE.*.*.CHAN.YYYY.*JJJ.*SAC

The file names must include a 3-space Julian day and year in the file name, as well as a year.

USAGE
[Seis] = getSacFiles('STATION','CHAN',date1,date2);
[Seis] = getSacFiles('SAC','CHAN',date1,date2);
[Seis] = getSacFiles('SAC','SAC',date1,date2);
[Seis] = getSacFiles('STATION','CHAN',hour1,hour2,day,year);
[Seis] = getSacFiles('STATION','SAC',hour1,hour2,day,year);
[Seis] = getSacFiles('SAC','SAC',hour1,hour2,day,year);

Cite As

Joshua Carmichael (2024). Retrieves SAC files from station & date info. (https://www.mathworks.com/matlabcentral/fileexchange/25829-retrieves-sac-files-from-station-date-info), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0