|||
这个SNAPHU的安装花费了我很多的时间,一直在调试snaphu,但总是提示bash错误,段错误,很是烦人,今天小结一下。
SNAPHU 安装:
# http://www-star.stanford.edu/sar_group/snaphu/snaphu-v1.4.2.tar.gz
tar zxvf snaphu-v1.4.2.tar.gz
cd snaphu-v1.4.2/src
make
make install
cd ../bin
cp snaphu $MY_BIN (复制可执行文件到MY_BIN文件下)
#### 编译的snaphu不可用 编译有问题
yu@yu-H34:~/apps/ROI_PAC_3_0_1/snaphu-v1.4.2/src$ sudo make
cc -O3 -c -o snaphu_tile.o snaphu_tile.c
cc -O3 -c -o snaphu_solver.o snaphu_solver.c
cc -O3 -c -o snaphu_io.o snaphu_io.c
snaphu_io.c: In function ‘WriteConfigLogFile’:
snaphu_io.c:1474:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
fprintf(fp,"# Log file generated %s",ctime(t));
^
cc -O3 -c -o snaphu_util.o snaphu_util.c
cc -O3 -c -o snaphu_cost.o snaphu_cost.c
cc -O3 -c -o snaphu_cs2.o snaphu_cs2.c
cc -O3 \
snaphu.c \
snaphu_tile.o snaphu_solver.o snaphu_io.o snaphu_util.o snaphu_cost.o snaphu_cs2.o \
-o ../bin/snaphu \
-lm
上述的编译可能有问题,不能正常使用。
运行程序时出错:
.............
+snaphu_mask.pl bash -c '/home/yu/apps/ROI_PAC_3_0_1/ROI_PAC/MY_BIN/snaphu -f 990915-991020-sim_ODR_4rlks.snaphuconf -v 1>990915-991020-sim_ODR_4rlks.snaphuout 2>990915-991020-sim_ODR_4rlks.snaphuerr'
+snaphu_mask.pl snaphu failed in snaphu_mask.pl
+int2filtmaskunwrapNew.pl snaphu_mask.pl failed in int2filtmaskunwrapNew.pl
+process_2pass_master.pl int2filtmaskunwrapNew.pl failed in process_2pass_master.pl
单独试用snaphu出错:
...........
yu@yu-H34:~/MY_RUN/Hector_ERS/int_990915_991020$ snaphu -f 990915-991020-sim_ODR_4rlks.snaphuconf -v
snaphu v1.4.2
27 parameters input from file 990915-991020-sim_ODR_4rlks.snaphuconf (31 lines total)
Logging run-time parameters to file 990915-991020-sim_ODR_4rlks.snaphulog
Reading wrapped phase from file phase_var_990915-991020-sim_ODR_4rlks.int
No weight file specified. Assuming uniform weights
Reading correlation data from file 990915-991020_4rlks_trim.cor
File 990915-991020_4rlks_trim.cor wrong size (745x1403 array expected)
Abort
注:不同系统下编译的不可用
########################################################################
ERROR 2 :
详见:http://www.geo.cornell.edu/eas/PeoplePlaces/Faculty/matt/2a.html
手动配准:http://roipac.org/cgi-bin/moin.cgi/PickingOffsets
make_offset.pl 2 points left after culling
Still too few points left after culling with 0.01/0.01 offsets : 2 left
+raw2ampintcor.pl make_offset.pl failed in raw2ampintcor.pl
+process_2pass.pl raw2ampintcor.pl failed in process_2pass.pl
...
去改make_offset.pl 里的参数,把精配准的参考窗口大小和搜索窗口大小64,8 改为128,64等
http://hi.baidu.com/tjxiaoling09/item/f69f5b2c6628dafd51fd8740
http://hi.baidu.com/tjxiaoling09/item/f69f5b2c6628dafd51fd8740
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-9-1 07:09
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社