41 #ifndef TF_FAPIDSFF_H_VERSION 43 #define TF_FAPIDSFF_H_VERSION \ 77 #warning "f2c.h is read from somewhere else!" 79 #error "long int integer type in f2c.h does not work for x86_64 compilation!" 82 #error "this header file must only be used internally!" 99 extern int sff_wopens__(
integer *lu,
char *filename,
char *type__,
char *cs,
real *c1,
real *c2,
real *c3,
char *date,
char *time,
integer *ierr,
ftnlen filename_len,
ftnlen type_len,
ftnlen cs_len,
ftnlen date_len,
ftnlen time_len);
101 extern int sff_wopenfs__(
integer *lu,
char *filename,
char *lines,
integer *nline,
char *type__,
char *cs,
real *c1,
real *c2,
real *c3,
char *date,
char *time,
integer *ierr,
ftnlen filename_len,
ftnlen lines_len,
ftnlen type_len,
ftnlen cs_len,
ftnlen date_len,
ftnlen time_len);
105 extern int sff_ropenf__(
integer *lu,
char *filename,
real *version,
char *timestamp,
char *code,
integer *nline,
char *lines,
integer *lenmax,
integer *lindim,
integer *ierr,
ftnlen filename_len,
ftnlen timestamp_len,
ftnlen code_len,
ftnlen lines_len);
107 extern int sff_ropens__(
integer *lu,
char *filename,
real *version,
char *timestamp,
char *code,
char *type__,
char *cs,
real *c1,
real *c2,
real *c3,
char *date,
char *time,
integer *ierr,
ftnlen filename_len,
ftnlen timestamp_len,
ftnlen code_len,
ftnlen type_len,
ftnlen cs_len,
ftnlen date_len,
ftnlen time_len);
109 extern int sff_ropenfs__(
integer *lu,
char *filename,
real *version,
char *timestamp,
char *code,
integer *nline,
char *lines,
integer *lenmax,
integer *lindim,
char *type__,
char *cs,
real *c1,
real *c2,
real *c3,
char *date,
char *time,
integer *ierr,
ftnlen filename_len,
ftnlen timestamp_len,
ftnlen code_len,
ftnlen lines_len,
ftnlen type_len,
ftnlen cs_len,
ftnlen date_len,
ftnlen time_len);
113 extern int sff_wtracef__(
integer *lu,
char *wid2line,
integer *nsamp,
real *fdata,
integer *idata,
logical *last,
integer *nline,
char *lines,
integer *ierr,
ftnlen wid2line_len,
ftnlen lines_len);
115 extern int sff_wtracei__(
integer *lu,
char *wid2line,
integer *nsamp,
real *fdata,
integer *idata,
logical *last,
char *cs,
real *c1,
real *c2,
real *c3,
integer *nstack,
integer *ierr,
ftnlen wid2line_len,
ftnlen cs_len);
117 extern int sff_wtracefi__(
integer *lu,
char *wid2line,
integer *nsamp,
real *fdata,
integer *idata,
logical *last,
integer *nline,
char *lines,
char *cs,
real *c1,
real *c2,
real *c3,
integer *nstack,
integer *ierr,
ftnlen wid2line_len,
ftnlen lines_len,
ftnlen cs_len);
119 extern int sff_rtrace__(
integer *lu,
real *tanf,
real *dt,
char *wid2line,
integer *nsamp,
real *fdata,
integer *idata,
char *code,
logical *last,
integer *ierr,
ftnlen wid2line_len,
ftnlen code_len);
121 extern int sff_rtracef__(
integer *lu,
real *tanf,
real *dt,
char *wid2line,
integer *nsamp,
real *fdata,
integer *idata,
char *code,
logical *last,
integer *nline,
char *lines,
integer *lindim,
integer *lenmax,
integer *ierr,
ftnlen wid2line_len,
ftnlen code_len,
ftnlen lines_len);
123 extern int sff_rtracei__(
integer *lu,
real *tanf,
real *dt,
char *wid2line,
integer *nsamp,
real *fdata,
integer *idata,
char *code,
logical *last,
char *cs,
real *c1,
real *c2,
real *c3,
integer *nstack,
integer *ierr,
ftnlen wid2line_len,
ftnlen code_len,
ftnlen cs_len);
125 extern int sff_rtracefi__(
integer *lu,
real *tanf,
real *dt,
char *wid2line,
integer *nsamp,
real *fdata,
integer *idata,
char *code,
logical *last,
integer *nline,
char *lines,
integer *lindim,
integer *lenmax,
char *cs,
real *c1,
real *c2,
real *c3,
integer *nstack,
integer *ierr,
ftnlen wid2line_len,
ftnlen code_len,
ftnlen lines_len,
ftnlen cs_len);
145 extern int sff_timeadd__(
integer *year1,
integer *doy1,
integer *hour1,
integer *minute1,
real *second1,
integer *year2,
integer *doy2,
integer *hour2,
integer *minute2,
real *second2,
integer *year,
integer *doy,
integer *hour,
integer *minute,
real *second);
161 extern int sff_wsource__(
integer *lu,
char *typh,
char *cs,
real *c1,
real *c2,
real *c3,
char *date,
char *time,
ftnlen typh_len,
ftnlen cs_len,
ftnlen date_len,
ftnlen time_len);
163 extern int sff_rsource__(
integer *lu,
char *typ,
char *cs,
real *c1,
real *c2,
real *c3,
char *date,
char *time,
integer *ierr,
ftnlen typ_len,
ftnlen cs_len,
ftnlen date_len,
ftnlen time_len);
175 extern int sff_rwid2__(
integer *lu,
char *wid2line,
integer *nsamp,
real *tanf,
real *dt,
integer *nchar,
real *ampfac,
char *code,
integer *ierr,
ftnlen wid2line_len,
ftnlen code_len);
177 extern int sff_rdata__(
integer *lu,
char *wid2line,
integer *nsamp,
real *tanf,
real *dt,
integer *idata,
real *ampfac,
char *code,
integer *ierr,
ftnlen wid2line_len,
ftnlen code_len);
183 extern int sff_prepwid2__(
integer *nsamp,
real *samprat,
char *station,
integer *year,
integer *month,
integer *day,
integer *hour,
integer *minute,
char *comp,
char *auxid,
char *instyp,
real *second,
real *calib,
real *calper,
real *hang,
real *vang,
char *wid2line,
integer *ierr,
ftnlen station_len,
ftnlen comp_len,
ftnlen auxid_len,
ftnlen instyp_len,
ftnlen wid2line_len);
223 #endif // TF_FAPIDSFF_H_VERSION (includeguard) int sff_wopenfs__(integer *lu, char *filename, char *lines, integer *nline, char *type__, char *cs, real *c1, real *c2, real *c3, char *date, char *time, integer *ierr, ftnlen filename_len, ftnlen lines_len, ftnlen type_len, ftnlen cs_len, ftnlen date_len, ftnlen time_len)
Open file for writing and pass FREE block and SRCE line.
int sff_quickwrite__(integer *lu, char *wid2line, integer *nsamp, integer *idata, real *ampfac, ftnlen wid2line_len)
int sff_wopen__(integer *lu, char *filename, integer *ierr, ftnlen filename_len)
Open file for writing.
int sff_skipdata__(integer *lu, char *code, logical *last, integer *ierr, ftnlen code_len)
Skip a complete trace.
int sff_modwid2samprat__(char *wid2line, real *samprat, ftnlen wid2line_len)
modify sampling rate in WID2 line
int sff_rdata2__(integer *lu, integer *nsamp, integer *idata, char *cbuf, integer *nchar, integer *ierr, ftnlen cbuf_len)
int sff_help_details__(void)
print detailed information about modules in libdatrwxx
int sff_getchannel__(char *wid2line, char *channel, ftnlen wid2line_len, ftnlen channel_len)
int sff_modwid2time__(char *wid2line, integer *hour, integer *minute, real *second, ftnlen wid2line_len)
modify time of first sample in WID2 line
int sff_wopenf__(integer *lu, char *filename, char *lines, integer *nline, integer *ierr, ftnlen filename_len, ftnlen lines_len)
int sff_wtracef__(integer *lu, char *wid2line, integer *nsamp, real *fdata, integer *idata, logical *last, integer *nline, char *lines, integer *ierr, ftnlen wid2line_len, ftnlen lines_len)
int sff_getdate__(char *wid2line, char *date, ftnlen wid2line_len, ftnlen date_len)
int sff_rwid2__(integer *lu, char *wid2line, integer *nsamp, real *tanf, real *dt, integer *nchar, real *ampfac, char *code, integer *ierr, ftnlen wid2line_len, ftnlen code_len)
doublereal sff_getdt__(char *wid2line, ftnlen wid2line_len)
long int integer
Fortran integer type.
int sff_quickread__(integer *lu, char *wid2line, integer *nsamp, real *tanf, real *dt, integer *idata, real *ampfac, integer *ierr, ftnlen wid2line_len)
int sff_select_output_format__(char *formatid, integer *ierr, ftnlen formatid_len)
select format for output
int sff_rtrace__(integer *lu, real *tanf, real *dt, char *wid2line, integer *nsamp, real *fdata, integer *idata, char *code, logical *last, integer *ierr, ftnlen wid2line_len, ftnlen code_len)
Read one trace of data.
int sff_wopens__(integer *lu, char *filename, char *type__, char *cs, real *c1, real *c2, real *c3, char *date, char *time, integer *ierr, ftnlen filename_len, ftnlen type_len, ftnlen cs_len, ftnlen date_len, ftnlen time_len)
Open file for writing and pass SRCE line.
int sff_wfree__(integer *lu, integer *nline, char *lines, ftnlen lines_len)
int sff_rtracefi__(integer *lu, real *tanf, real *dt, char *wid2line, integer *nsamp, real *fdata, integer *idata, char *code, logical *last, integer *nline, char *lines, integer *lindim, integer *lenmax, char *cs, real *c1, real *c2, real *c3, integer *nstack, integer *ierr, ftnlen wid2line_len, ftnlen code_len, ftnlen lines_len, ftnlen cs_len)
Read one trace of data and return FREE block and INFO line additionally.
int sff_help_formats__(void)
list supported data formats
int sff_checksum__(integer *nsamp, integer *idata, integer *nchecksum)
int sff_wsource__(integer *lu, char *typh, char *cs, real *c1, real *c2, real *c3, char *date, char *time, ftnlen typh_len, ftnlen cs_len, ftnlen date_len, ftnlen time_len)
int sff_timesetdoy__(integer *doy, integer *year, integer *month, integer *day)
doublereal sff_libversion__(void)
int sff_ropens__(integer *lu, char *filename, real *version, char *timestamp, char *code, char *type__, char *cs, real *c1, real *c2, real *c3, char *date, char *time, integer *ierr, ftnlen filename_len, ftnlen timestamp_len, ftnlen code_len, ftnlen type_len, ftnlen cs_len, ftnlen date_len, ftnlen time_len)
Open SFF file and return source line.
double doublereal
Fortran double real type.
int sff_gettime__(char *wid2line, char *time, ftnlen wid2line_len, ftnlen time_len)
int sff_rinfo__(integer *lu, char *cs, real *c1, real *c2, real *c3, integer *nstack, integer *ierr, ftnlen cs_len)
integer sff_getn__(char *wid2line, ftnlen wid2line_len)
int sff_rwdata__(integer *lu, char *wid2line, char *code, real *ampfac, integer *nsamp, integer *idata, logical *rwflag, integer *ierr, ftnlen wid2line_len, ftnlen code_len)
int sff_select_format__(char *formatid, integer *ierr, ftnlen formatid_len)
select format for input and output
int sff_rtracei__(integer *lu, real *tanf, real *dt, char *wid2line, integer *nsamp, real *fdata, integer *idata, char *code, logical *last, char *cs, real *c1, real *c2, real *c3, integer *nstack, integer *ierr, ftnlen wid2line_len, ftnlen code_len, ftnlen cs_len)
Read one trace of data and return INFO line additionally.
float real
Fortran real type (single precision)
int sff_ropen__(integer *lu, char *filename, real *version, char *timestamp, char *code, integer *ierr, ftnlen filename_len, ftnlen timestamp_len, ftnlen code_len)
Open SFF file.
int sff_wtrace__(integer *lu, char *wid2line, integer *nsamp, real *fdata, integer *idata, logical *last, integer *ierr, ftnlen wid2line_len)
Write one trace of data with INFO line.
int sff_select_input_format__(char *formatid, integer *ierr, ftnlen formatid_len)
select format for input
int sff_wdata__(integer *lu, char *wid2line, integer *nsamp, integer *idata, real *ampfac, char *code, ftnlen wid2line_len, ftnlen code_len)
int sff_timesplit__(real *tsec, integer *day, integer *hour, integer *minute, real *second)
long int logical
Fortran logical type.
int sff_modwid2date__(char *wid2line, integer *year, integer *month, integer *day, ftnlen wid2line_len)
modify date of first sample in WID2 line
int sff_new__(integer *lu, char *filename, integer *ierr, ftnlen filename_len)
Delete existing file.
int sff_modwid2samps__(char *wid2line, integer *samps, ftnlen wid2line_len)
modify number of samples in WID2 line
int sff_skipfree__(integer *lu, integer *ierr)
int sff_ropenfs__(integer *lu, char *filename, real *version, char *timestamp, char *code, integer *nline, char *lines, integer *lenmax, integer *lindim, char *type__, char *cs, real *c1, real *c2, real *c3, char *date, char *time, integer *ierr, ftnlen filename_len, ftnlen timestamp_len, ftnlen code_len, ftnlen lines_len, ftnlen type_len, ftnlen cs_len, ftnlen date_len, ftnlen time_len)
Open SFF file and return source line and FREE block.
int sff_prepwid2__(integer *nsamp, real *samprat, char *station, integer *year, integer *month, integer *day, integer *hour, integer *minute, char *comp, char *auxid, char *instyp, real *second, real *calib, real *calper, real *hang, real *vang, char *wid2line, integer *ierr, ftnlen station_len, ftnlen comp_len, ftnlen auxid_len, ftnlen instyp_len, ftnlen wid2line_len)
Encode WID2 data.
integer sff_timegetdoy__(integer *year, integer *month, integer *day)
int sff_ropenf__(integer *lu, char *filename, real *version, char *timestamp, char *code, integer *nline, char *lines, integer *lenmax, integer *lindim, integer *ierr, ftnlen filename_len, ftnlen timestamp_len, ftnlen code_len, ftnlen lines_len)
int sff_rfree__(integer *lu, integer *nline, char *lines, integer *lenmax, integer *lindim, integer *ierr, ftnlen lines_len)
int sff_getstation__(char *wid2line, char *sta, ftnlen wid2line_len, ftnlen sta_len)
int sff_timeadd__(integer *year1, integer *doy1, integer *hour1, integer *minute1, real *second1, integer *year2, integer *doy2, integer *hour2, integer *minute2, real *second2, integer *year, integer *doy, integer *hour, integer *minute, real *second)
int sff_trimlen__(char *string, integer *ntrim, ftnlen string_len)
long int ftnlen
Fortran string size type.
int sff_close__(integer *lu, integer *ierr)
Close SFF file.
int sff_wstatus__(integer *lu, char *code, ftnlen code_len)
int sff_rstatus__(integer *lu, real *version, char *timestamp, char *code, integer *ierr, ftnlen timestamp_len, ftnlen code_len)
int sff_rdata__(integer *lu, char *wid2line, integer *nsamp, real *tanf, real *dt, integer *idata, real *ampfac, char *code, integer *ierr, ftnlen wid2line_len, ftnlen code_len)
int sff_winfo__(integer *lu, char *cs, real *c1, real *c2, real *c3, integer *nstack, ftnlen cs_len)
int sff_rsource__(integer *lu, char *typ, char *cs, real *c1, real *c2, real *c3, char *date, char *time, integer *ierr, ftnlen typ_len, ftnlen cs_len, ftnlen date_len, ftnlen time_len)
int sff_modwid2shift__(char *wid2line, real *tmin, real *tsec, ftnlen wid2line_len)
shift time of first sample in WID2 line
int sff_i2f__(integer *idata, real *fdata, integer *nsamples, real *ampfac)
int sff_rtracef__(integer *lu, real *tanf, real *dt, char *wid2line, integer *nsamp, real *fdata, integer *idata, char *code, logical *last, integer *nline, char *lines, integer *lindim, integer *lenmax, integer *ierr, ftnlen wid2line_len, ftnlen code_len, ftnlen lines_len)
int sff_wtracei__(integer *lu, char *wid2line, integer *nsamp, real *fdata, integer *idata, logical *last, char *cs, real *c1, real *c2, real *c3, integer *nstack, integer *ierr, ftnlen wid2line_len, ftnlen cs_len)
Write one trace of data with INFO line.
int sff_f2i__(integer *idata, real *fdata, integer *nsamples, real *ampfac)
logical sff_timeisleapyear__(integer *year)
int sff_wtracefi__(integer *lu, char *wid2line, integer *nsamp, real *fdata, integer *idata, logical *last, integer *nline, char *lines, char *cs, real *c1, real *c2, real *c3, integer *nstack, integer *ierr, ftnlen wid2line_len, ftnlen lines_len, ftnlen cs_len)
Write one trace of data with FREE block and INFO line.