@@ -491,8 +491,6 @@ msr3_unpack_mseed2 (const char *record, int reclen, MS3Record **ppmsr,
491491 strncpy (eventdetection .units , "COUNTS" , sizeof (eventdetection .units ));
492492
493493 eventdetection .onsettime = ms_btime2nstime ((uint8_t * )pMS2B200_YEAR (record + blkt_offset ), msr -> swapflag );
494- if (eventdetection .onsettime == NSTERROR )
495- return MS_GENERROR ;
496494
497495 memset (eventdetection .medsnr , 0 , 6 );
498496 eventdetection .medlookback = -1 ;
@@ -524,8 +522,6 @@ msr3_unpack_mseed2 (const char *record, int reclen, MS3Record **ppmsr,
524522 strncpy (eventdetection .wave , "COMPRESSION" , sizeof (eventdetection .wave ));
525523
526524 eventdetection .onsettime = ms_btime2nstime ((uint8_t * )pMS2B201_YEAR (record + blkt_offset ), msr -> swapflag );
527- if (eventdetection .onsettime == NSTERROR )
528- return MS_GENERROR ;
529525
530526 memcpy (eventdetection .medsnr , pMS2B201_MEDSNR (record + blkt_offset ), 6 );
531527 eventdetection .medlookback = * pMS2B201_LOOPBACK (record + blkt_offset );
@@ -547,10 +543,8 @@ msr3_unpack_mseed2 (const char *record, int reclen, MS3Record **ppmsr,
547543 strncpy (calibration .type , "STEP" , sizeof (calibration .type ));
548544
549545 calibration .begintime = ms_btime2nstime ((uint8_t * )pMS2B300_YEAR (record + blkt_offset ), msr -> swapflag );
550- if (calibration .begintime == NSTERROR )
551- return MS_GENERROR ;
552546
553- calibration .endtime = NSTERROR ;
547+ calibration .endtime = NSTUNSET ;
554548 calibration .steps = * pMS2B300_NUMCALIBRATIONS (record + blkt_offset );
555549
556550 /* If bit 0 is set, first puluse is positive */
@@ -602,10 +596,8 @@ msr3_unpack_mseed2 (const char *record, int reclen, MS3Record **ppmsr,
602596 strncpy (calibration .type , "SINE" , sizeof (calibration .type ));
603597
604598 calibration .begintime = ms_btime2nstime ((uint8_t * )pMS2B310_YEAR (record + blkt_offset ), msr -> swapflag );
605- if (calibration .begintime == NSTERROR )
606- return MS_GENERROR ;
607599
608- calibration .endtime = NSTERROR ;
600+ calibration .endtime = NSTUNSET ;
609601 calibration .steps = -1 ;
610602 calibration .firstpulsepositive = -1 ;
611603 calibration .alternatesign = -1 ;
@@ -659,10 +651,8 @@ msr3_unpack_mseed2 (const char *record, int reclen, MS3Record **ppmsr,
659651 strncpy (calibration .type , "PSEUDORANDOM" , sizeof (calibration .type ));
660652
661653 calibration .begintime = ms_btime2nstime ((uint8_t * )pMS2B320_YEAR (record + blkt_offset ), msr -> swapflag );
662- if (calibration .begintime == NSTERROR )
663- return MS_GENERROR ;
664654
665- calibration .endtime = NSTERROR ;
655+ calibration .endtime = NSTUNSET ;
666656 calibration .steps = -1 ;
667657 calibration .firstpulsepositive = -1 ;
668658 calibration .alternatesign = -1 ;
@@ -710,10 +700,8 @@ msr3_unpack_mseed2 (const char *record, int reclen, MS3Record **ppmsr,
710700 strncpy (calibration .type , "GENERIC" , sizeof (calibration .type ));
711701
712702 calibration .begintime = ms_btime2nstime ((uint8_t * )pMS2B390_YEAR (record + blkt_offset ), msr -> swapflag );
713- if (calibration .begintime == NSTERROR )
714- return MS_GENERROR ;
715703
716- calibration .endtime = NSTERROR ;
704+ calibration .endtime = NSTUNSET ;
717705 calibration .steps = -1 ;
718706 calibration .firstpulsepositive = -1 ;
719707 calibration .alternatesign = -1 ;
@@ -756,11 +744,9 @@ msr3_unpack_mseed2 (const char *record, int reclen, MS3Record **ppmsr,
756744
757745 strncpy (calibration .type , "ABORT" , sizeof (calibration .type ));
758746
759- calibration .begintime = NSTERROR ;
747+ calibration .begintime = NSTUNSET ;
760748
761749 calibration .endtime = ms_btime2nstime ((uint8_t * )pMS2B395_YEAR (record + blkt_offset ), msr -> swapflag );
762- if (calibration .endtime == NSTERROR )
763- return MS_GENERROR ;
764750
765751 calibration .steps = -1 ;
766752 calibration .firstpulsepositive = -1 ;
@@ -807,8 +793,6 @@ msr3_unpack_mseed2 (const char *record, int reclen, MS3Record **ppmsr,
807793 exception .vcocorrection = HO4f (* pMS2B500_VCOCORRECTION (record + blkt_offset ), msr -> swapflag );
808794
809795 exception .time = ms_btime2nstime ((uint8_t * )pMS2B500_YEAR (record + blkt_offset ), msr -> swapflag );
810- if (exception .time == NSTERROR )
811- return MS_GENERROR ;
812796
813797 /* Apply microsecond precision if non-zero */
814798 if (* pMS2B500_MICROSECOND (record + blkt_offset ) != 0 )
0 commit comments