| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 528 人关注过本帖
标题:求人编译一段代码,太重要了,谢谢您的指导啊
只看楼主 加入收藏
cbslgm
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-2-3
结帖率:0
收藏
已结贴  问题点数:20 回复次数:2 
求人编译一段代码,太重要了,谢谢您的指导啊
以前学过一段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 编辑 ]
搜索更多相关主题的帖子: 工作 example files C语言 
2012-02-03 09:41
C_596322153
Rank: 6Rank: 6
来 自:徽州
等 级:侠之大者
帖 子:182
专家分:466
注 册:2012-1-10
收藏
得分:10 
  我太菜了  完全不懂 ....
2012-02-03 11:32
zaixuexi
Rank: 12Rank: 12Rank: 12
来 自:上海
等 级:火箭侠
威 望:8
帖 子:858
专家分:3233
注 册:2010-12-1
收藏
得分:10 
还要调perl的

技术问题,请不要以短消息方式提问
2012-02-04 18:28
快速回复:求人编译一段代码,太重要了,谢谢您的指导啊
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.041070 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved