GeoNet / fdsn

FDSN Web Services
MIT License
17 stars 15 forks source link

format string specifier bug #122

Closed gclitheroe closed 6 years ago

gclitheroe commented 6 years ago

Looks like there is a format string bug somewhere (%!f(*float64=0xc4226b8010) in the below)

 curl "https://beta-service.geonet.org.nz/fdsnws/station/1/query?starttime=2017-11-05T00:00:00&level=channel&format=text&channel=BTT" 
#Network | Station | Location | Channel | Latitude | Longitude | Elevation | Depth | Azimuth | Dip | SensorDescription | Scale | ScaleFreq | ScaleUnits | SampleRate | StartTime | EndTime
NZ|AUCT|40|BTT|-36.831437|174.786537|0.000000|0.000000|0.000000|0.000000|Druck PTX|10000.000000|%!f(*float64=0xc4226b8010)|m|10.000000|2012-08-28T01:00:01|
NZ|AUCT|41|BTT|-36.831437|174.786537|0.000000|0.000000|0.000000|0.000000|Druck PTX|10000.000000|%!f(*float64=0xc4227b63f0)|m|10.000000|2012-12-07T01:00:00|
NZ|CHIT|40|BTT|-44.024042|-176.367476|2.000000|0.000000|0.000000|0.000000|Druck PTX|10000.000000|%!f(*float64=0xc427b190a0)|m|10.000000|2010-02-19T00:00:00|
calum-chamberlain commented 6 years ago

As a note, this means that obspy's obspy.client.fdsn.mass_downloader fails.

gclitheroe commented 6 years ago

This is fixed and deployed.