joeledwards / asl-java-tools

A unified set of (mostly) Java libraries and applications developed by the Albuquerque Seismic Lab for seismic data analysis
0 stars 3 forks source link

ENH calibration problem #7

Open aringler-usgs opened 11 years ago

aringler-usgs commented 11 years ago

Hi James.

I just pushed a fix to joel-github events branch.

It still won't compute a calibration metric for IC_ENH for 2013:125 since the miniseed files have an erroneous blockette 320 (it says the cal input channel = HNZ when it should be BC0), but at least now it won't fail with a null pointer when no input data is found.

Going forward, can you please start logging all bugs to the SeedScan Github "issues" as you're doing for xmax, so that we have a log of it all.

You can just copy paste a block of output (as below) into a new Github issue for SeedScan.

Cheers,

-Mike

On Jun 25, 2013, at 3:17 PM, Holland, James wrote:

I was wondering if you were able to take a look at this bug?

On Wed, Jun 19, 2013 at 1:13 PM, Holland, James jholland@usgs.gov wrote: [java] [ == Metric CalibrationMetric == ] [== Station IC_ENH ==] [== Day 2013:125:00:00 ==] [java] == CalibrationMetric: Found n=2 Random Calibration Blockettes! --> What to do ? [java] == Random Calibration Blockette [java] == Start Time:2013, 125 13:25:00.000 [java] == Calibration Duration: 14400 [java] == Noise Type [Telegraf] Calibration Amplitude:-24.000000 [java] == Calibration Input Channel:HNZ [java] == Reference Amplitude:0.000000 [java] == Coupling Method:resistive [java] == Filtering Type:3DB@10Hz Calibration Flags:[04] [java] ==================================== [java] == CalibrationMetric: channel=[00-BH1] calStartTime=[2013:125:13:25] calDuration=[14400] [java] == getWindowedData ERROR: We have NO data for channel=[---HNZ] [java] Exception in thread "main" java.lang.NullPointerException [java] at timeutils.PSD.(PSD.java:22) [java] at asl.seedscan.metrics.CalibrationMetric.computeMetric(CalibrationMetric.java:192) [java] at asl.seedscan.metrics.CalibrationMetric.process(CalibrationMetric.java:92) [java] at asl.seedscan.Scanner.scan(Scanner.java:216) [java] at asl.seedscan.SeedScan.main(SeedScan.java:384)