stuliveshere / PySeis

Pure python seismic data processing
http://stuliveshere.github.io/PySeis
MIT License
68 stars 20 forks source link

completion of io library #1

Closed stuliveshere closed 7 months ago

stuliveshere commented 10 years ago

create functions that will read various formats into h5 tables.

create functions that will write out h5 to various formats.

Will probably require a default project table to be initialized with some headers pre-filled.

ie create a generic table dtype with critical headers and create mapping dictionaries to various file formats

stuliveshere commented 7 years ago

ok so i'm throwing out h5 tables, mostly because I agree with http://cyrille.rossant.net/moving-away-hdf5/

i'm thinking it's probably best to work in memmapped .npy/.npz files.

dtype can be a superset of the SU file dtype. means I'm no longer restricted by SU dtype.

Another major advantage of .npy is the shape is stored, so I dont have to keep digging into the binary to pull out the number of samples.

flags can be used to control format if stdin/stdout option is to be preserved.

so i need