crotwell / seisFile

A library for reading and writing seismic file formats in java.
GNU Lesser General Public License v3.0
27 stars 20 forks source link

Can I use it on Android devices? #23

Closed yanshanshu closed 3 years ago

yanshanshu commented 3 years ago

Hello, we want to use it on the Android system. We found on the official website that the platform supported by version 1.6 does not have Android. I wonder whether the current latest version supports Android system?

crotwell commented 3 years ago

Not quite sure what your issue is. Can you give me more details about what the problem is?

yanshanshu commented 3 years ago

I want to use Minieed to compress the raw data received by the seismic wave. I saw version 1.6 on the website and the latest version 2.0 on GitHub. But now I don't know how to compress data with Minieed

crotwell commented 3 years ago

compression and decompression are in the seedCodec package, here: https://github.com/crotwell/seedCodec

You can use either the Steim1.encode() or Steim2.encode() methods to compress seismic waveforms.

An example is in a seisFile test case here: https://github.com/crotwell/seisFile/blob/main/src/test/java/edu/sc/seis/seisFile/mseed/RoundTripMiniSeed.java

crotwell commented 3 years ago

also see this example https://github.com/crotwell/seisFile/blob/main/src/client/java/edu/sc/seis/seisFile/example/WriteMiniSeed.java