Project

General

Profile

Bug #271

nullpointer exception when trying to convert magnetometer data back from SEED to XML

Added by Celso Reyes over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Start date:
06/27/2013
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

The first statement works fin, the conversion to XML doesn't.

# read from internet, save as SEED
java -jar stationxml.jar --seed "http://service.iris.edu/fdsnws/station/1/query?level=response&network=IU&sta=ANMO&location=00&channel=LFZ --output "scratch/ANMOr.dls" 

# read from ANMOr.dls, save as XML
java -jar stationxml.jar --xml -so IRIS --print --output "scratch/ANMOr.xml" scratch/ANMOr.dls

After much DEBUG info, I see:

DEBUG SeedObjectContainer.iteratr: 13000037 | 058|0035|01|+2.50000E-05|+2.00000E-02|00|^|^|^
DEBUG: iterator next = 13000036=052|0149|00|LFZ|0000|001|^|002|000|+34.945910|-106.457200|+1818.7|002.0|000.0|-90.0|0003|12|1.0000E+00|0.0000E+00|0000|CG|2003,297,18:32:00.0000|2008,182,00:00:00.0000|N
DEBUG SeedObjectContainer.iteratr: 13000036 | 052|0149|00|LFZ|0000|001|^|002|000|+34.945910|-106.457200|+1818.7|002.0|000.0|-90.0|0003|12|1.0000E+00|0.0000E+00|0000|CG|2003,297,18:32:00.0000|2008,182,00:00:00.0000|N
DEBUG: number of entries for category 4: 0
DEBUG: number of entries for category 5: 0
0 ==========
64 ==========
72 ==========
64 ==========
64 ==========
64 ==========
260 ==========
java.lang.NullPointerException
    at edu.iris.converter.StationBuilder.doChannel(StationBuilder.java:420)
    at edu.iris.converter.StationBuilder.doStation(StationBuilder.java:160)
    at edu.iris.converter.StationBuilder.buildNetwork(StationBuilder.java:93)
    at edu.iris.converter.StationPrinter.process(StationPrinter.java:170)
    at edu.iris.converter.Main.<init>(Main.java:197)
    at edu.iris.converter.Main.main(Main.java:216)
java.lang.NullPointerException

History

#1 Updated by Yazan Suleiman over 7 years ago

  • Status changed from New to Resolved

This is mostly data errors, now the converter deals with it

#2 Updated by Yazan Suleiman over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF