34 #define TF_FAPID_SFF_PREPWID2_CC_VERSION \ 35 "TF_FAPID_SFF_PREPWID2_CC V1.0 " 93 char *auxid,
char *instyp,
real *second,
real *calib,
99 wid2.nsamples= *nsamp;
100 wid2.dt = 1./(*samprat);
102 double dsecond=*second;
103 libtime::timeint isecond=
static_cast<libtime::timeint
>(std::floor(dsecond));
104 libtime::timeint milsec
105 =
static_cast<libtime::timeint
>(std::floor(1.e3*dsecond));
106 libtime::timeint micsec
107 =
static_cast<libtime::timeint
>(std::floor(1.e6*dsecond));
108 milsec -= 1000*isecond;
109 micsec -= 1000*(milsec+1000*isecond);
110 libtime::TAbsoluteTime date(*year, *month, *day, *hour, *minute,
111 isecond, milsec, micsec);
117 wid2.calper = *calper;
121 wid2c.
encode(wid2line, wid2line_len);
This is the interface usually expected by Fortran programs linking to libsff.a (prototypes) ...
long int integer
Fortran integer type.
This struct is used to pass WID2 line data within libfapidxx.
container for WID2 data (prototypes)
exceptions and error handling macros (prototypes)
float real
Fortran real type (single precision)
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.
long int ftnlen
Fortran string size type.
std::string stringfromfstring(char *fstring, ftnlen slen)
create a C++ string from a Fortran string
void encode(char *fstring, ftnlen slen) const
encode data into a character string depending on wasascii flag
some helper functions (prototypes)