Fortran SFF API to data I/O streams in C++

◆ sff_modwid2shift__()

int sff_modwid2shift__ ( char *  wid2line,
real tmin,
real tsec,
ftnlen  wid2line_len 
)

shift time of first sample in WID2 line

Description from stuff.f:

c----------------------------------------------------------------------
subroutine sff_ModWid2shift(wid2line, tmin, tsec)
c
c Change time and date of first sample by adding tmin minutes
c and tsec seconds
c
c input:
c tmin minutes to add
c tsec seconds to add
c input and output:
c wid2line string to change
c----------------------------------------------------------------------

Definition at line 62 of file fapid_sff_modwid2shift.cc.

References fapidxx::WID2container::encode(), and fapidxx::WID2container::wid2.

64 {
65  fapidxx::WID2container wid2c(wid2line, wid2line_len);
66  libtime::TAbsoluteTime date(wid2c.wid2.date);
67  double tshift=double(*tsec)+60.*double(*tmin);
68  if (tshift < 0.)
69  { wid2c.wid2.date-=libtime::double2time(-tshift); }
70  else
71  { wid2c.wid2.date+=libtime::double2time(tshift); }
72  wid2c.encode(wid2line, wid2line_len);
73  return 0;
74 } // int sff_modwid2shift__
This struct is used to pass WID2 line data within libfapidxx.
Definition: wid2container.h:62
Here is the call graph for this function: