求人编译一段代码,太重要了,谢谢您的指导啊
以前学过一段C语言,后来又学了一些C++,工作好些年了,都没看。现在搞到一段C代码,对我目前的工作非常有用,可惜我不会编译使用,请哪位大侠帮我看看这些代码如何编译使用?这些代码的readme是这样说的,我不知道这个论坛让不让带附件,只好把readme内容粘到这了。懂C编译的朋友和我联系啊!谢谢!!!
Processing steps for noise CC
1.first you need prepare some config files
1.station file
format:
stationname channel
example:
AS01 SHZ
AS02 SHZ
AS04 SHZ
AS08 SHZ
2.band file
prepare a band file which specify which bandpass range you want to use
you can specify different band-range
format:
index bp_lowfreqency bp_highfreqency
example: for the index 1 band pass the sacfile from 2hz to 4hz
: for the index 2 band pass the sacfile from 3hz to 10hz
1 2 4
2 3 10
3.tobecompute
you should specify which pair you want to compute and store this pair in
the file tobecompute
format:
stationname1 stationame2
example:
AS01 AS02
AS01 AS08
Note: station pair which are not in "tobecompute" will not be computed!!
4.already computed
Some times you may run the noiseCC.pl again,and some of the pairs in the
"tobecompute" is already done and you dont want to compute that again.
At this time you can put these done pairs in the alreadcompute file,the
program will omit this pairs.
for example
in the "tobecompute" is
AS01 AS02
AS01 AS08
AS01 AS04
in the "alreadycompute" is
AS01 AS02
then the AS01 and AS02 will not be computed again.
2. data preparation
organized the data in this format
station_year/station_year_comp/stat_year_jday_comp.SAC
for example
AS01_2008/AS01_2008_SHZ/AS01_2008_001_SHZ.SAC
3. run noiseCC.pl to calculate the CC file
get correlation from day1 to day2
perl noiseCC.pl -Sstation -Tday1/day2 -Bband/0 -Yyear -Oresult
Notice:by this time the -Bband/number,number should always be 0
all these band range in file "band " will be computed
4. sum ccfiles
after you finished all the CC process,you may want to sum them together
use noiseSum.pl to do this
perl noiseSum.pl -Sstation -Tday1/day2 -Bband/0 -Yyear -Oresult
拜求各位啊,我说这些C代码对我的工作太重要了,会编译的和我联系啊
[ 本帖最后由 cbslgm 于 2012-2-3 10:48 编辑 ]