Will the coordinates of trace be written


I applied locations into AttribDict for traces and save them as mseed and sac.
However, the location disappered when I read the data in another script.
Will the coordinates of traces be written into the data?
Thank you.

Best regards


For most formats, only additional information inside a specific AttribDict section will be written to disk. For example, use the trace.stats.sac dict to write additional info into SAC files, also see the documentation of obspy.io.sac. To preserve arbitrary header data, I use the H5 format implemented in the obspyh5 plugin.