jane
jane copied to clipboard
Accept dataless SEED / arclink inventory / SC3ML as station metadata when using obspy >=1.1.0
Just a reminder for now.. but in principle jane should starting with obspy 1.1.0 be able to digest also dataless SEED files.. they can internally be converted to StationXML using obspy.
Goes a bit against Jane's philiosophy to always have a way to recover the initial data but it might indeed be pretty useful.
does the converting between dataless and stationxml work both ways and is lossless?
I guess we can't be sure that it's gonna be bitwise the same when doing a roundtrip.. in principle it works both ways, as both is going through obspy Inventory.
It would not be lossless and it cannot really be, mainly due to Blockette 60.
ObsPy also currently can not write dataless or RESP files from Inventory objects. I only implemented the Parser object -> Inventory conversion, not the other way around. Although I think the other way around should be quite a bit easier.
Well, in any case, it was just a thought.. and I think it would be OK to serve the converted StationXML even if the original input was dataless, if it's clearly stated in the docs (I guess showing a warning about it doesn't really work because document uploads are usually done as HTTP requests).
Goes a bit against Jane's philiosophy to always have a way to recover the initial data but it might indeed be pretty useful.
Actually, thinking about it again, jane should already be able to store the original data for any metadata format already, since it is storing the raw bytes, or am I missing something? That would mean only FDSNWS requests on non-StationXML metadata would involve a lossy format conversion, but all original data could always be retrieved from the DB itself (an option "format=original" could even remedy that, making FDSNWS serve the original data in whatever format it is stored in -- this would have to bypass the currently done cropping, i.e. the cutting out only requested channels from stored StationXML)
Arclink Inventory xml and SC3ML would be more candidates that could be added into jane directly.