[Antelope] Missing samples after trapply_calib

Hank Ratzesberger hankr at crustal.ucsb.edu
Tue Apr 28 15:41:55 CDT 2009


Hi Users,

As I have mentioned here before (and received much help with, thank  
you),
I am calling rotate_to_standard() to correct some older sensor data.

The issue I have is that I get one less sample after this process. I  
have
seen this problem in other code.  What is common is the call to  
trapply_calib.

trimming out the error handling, I am not doing much more than this:

trload_css( db, "time", "endtime", &tr, 0, 0 )
trapply_calib( tr )
result = rotate_to_standard( tr, newchan ) ;
tr = dbsubset( tr, "chan =~ /^..[ZNE].*/", 0 );
trapply( tr, rerange, (void*)&db ); // re-apply the calib
trsave_wf ( tr, dbout, "sd", fmt_str, trOVERWRITE ) ;	

If anyone has a quick work-around for this...  I was thinking that  
perhaps
it has something to do with the compression, however, the missing sample
(if the sample time has not changed) is the last sample -- the last  
sample
is dropped.

Thanks for your time.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: trrotate.c
Type: application/octet-stream
Size: 5388 bytes
Desc: not available
URL: <http://brtt.net/pipermail/antelope_brtt.net/attachments/20090428/913495ad/attachment.obj>
-------------- next part --------------


--Hank

Hank Ratzesberger
NEES at UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







More information about the Antelope mailing list