seismo-sac_to_asdf_converter_2's Introduction
#This program is used to convert SAC file to ASDF file using Parallel ASDF I/O API. #Developer: Wenjie Lei([email protected]) James Smith([email protected]) #Bug report: email either of the guys listed above. They will be more than happy to see the problems. Dependency: Adios-1.5.0 How to use: 1. set up the "PAR_FILE" in the home(the home of the code) directory, which includes: a) DEBUG: debug mode b) Direcotry info: CMT, STATION, SAC file dir, etc c) Period Band d) Specify the three components name you want to convert. 2. make clean --> make clean 3. ./sac_to_asdf Notes: 1. The code uses Parallel ASDF I/O API. But now the converter only works on one processor. Since now the ASDF I/O API is independent of number of processors, so do not worry about the converted file won't work on parallel way(if you use the same Parellel ASDF I/O API) 2. You can find complete Parallel ASDF I/O API in src/asdf_subs.f90. If you want to use these API, include the file in your source code. TODO: 1. The infomation in the ASDF container needs to be improved(especially the time info is a little messed up here...will solve this soon!) You can find the contatiner information in src/asdf_data.f90
seismo-sac_to_asdf_converter_2's People
Forkers
wangwt9907seismo-sac_to_asdf_converter_2's Issues
Ebru's Comment
1- I have two versions, one from James and one from Wenjie. James' version is a bit more simple and general. I guess, Wenjie modified James's routines for his purpose to be able to use ASDF files in FLEXWIN. Both of them seem to be working which is the good news.
2- I am assuming that Wenjie's version on Git repository is the latest one that I should be commenting on? Then, my major comment is that the version on Git repository in is too specific in its current form which is a temporary solution that Wenjie had to test FLEXWIN. It requires the presence of observed and synthetic seismograms, CMTSOLUTION, STATIONS files, period bands of seismograms, etc. However, a converter should be very general. What we need is just a converter that is able to convert any given SAC file into ASDF format regardless of observed or synthetic data and SAC headers must be carried to ASDF headers. There should not be any dependency to CMTSOLUTION or STATIONS files. The converter should not care if it is an observed or a synthetic seismogram, either. All additional information related to simulations, data processing info, etc. should be written into ASDF headers during pre-processing stage.
3- Please do not use any numbers or anything else to denote components of seismograms, like COMP_1, COMP_2, COMP_3, etc. anywhere rather than actual components such as Z, N, E, T, R, etc. for vertical, north-south, east-west, transverse, radial, etc., respectively. Otherwise it is very confusing to read or understand the code and/or outputs.
4- I think there should also be ASDF-to-SAC converter, a simple Fortran code that simply reads any ASDF file and writes out in SAC format. It is not urgent, though.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.