lanl / OpenFWI

A collection of codes with OpenFWI project
BSD 3-Clause "New" or "Revised" License
61 stars 10 forks source link

Could i trouble you to help me with building a new dataset from segy file ? #11

Open idealslytherin opened 1 week ago

Shihang-LANL commented 1 week ago

Could you please provide more details and let us know how we can assist you?

idealslytherin commented 5 days ago

Could you please provide more details and let us know how we can assist you?请您提供更多的细节,让我们知道我们如何帮助您?

Thank you very much for your reply! I used the data set provided by OPENFWI for training and testing and obtained the corresponding model. Now, I'm trying to test the effect on a new dataset in SEGY format. Unfortunately, I don't know how to transform SEGY to NPY format correctly. Currently, I'm making efforts to figure out the correspondence between SEGY and NPY formats. Could you please give me some suggestions about the test data in NPY format?

Shihang-LANL commented 5 days ago

If you have Matlab, you can use the Matlab SEGY package (https://segymat.sourceforge.net/) to load the data and then the Matlab NPY package (https://github.com/kwikteam/npy-matlab) to save the data as npy. These Matlab packages are straightforward to load and use.

If you don't have Matlab, the process is a bit more complex. You can use Madagascar or Seismic Unix to remove the segy data headers and save the data as binary. Then, you can use Python to load the binary data and save it as npy. Installing Madagascar and Seismic Unix may require some effort, but they offer numerous benefits if you can utilize them.

Please let me know if you have any further questions.