資源簡介
做InSAR的,個人是個小菜鳥,剛才是接觸STaMPS,發現ROI_PAC_3_0_1的壓縮包很難找,在這里分享給大家。
代碼片段和文件信息
/*??***?JPL/Caltech?Repeat?Orbit?Interferometry?(ROI)?Package?***???*/
#include?
#include?
#include?
#define?MaxWidth??80000
#define?MaxLength?80000
?
main(int?argc?char?*argv[]){
???char???InFile0[1000];
???char???InLine0[10000];
???FILE???*InFP0;
???char???InFile1[1000]???????InFile2[1000]??????OutFile[1000];
???FILE???*InFP1??????????????*InFP2?????????????*OutFP;
???float??InLine1[MaxWidth*2]?InLine2[MaxWidth*2]OutLine[MaxWidth*2];
???double?Coeff;
???double?Pi;
???int????WidthLength;
???int????ij;
???float?Phi1?Phi2?Amp;
???
???Pi=4*atan2(11);
/********************************************************************************/
/****************************??Reading??????Parameters??*************************/
/********************************************************************************/
???sscanf(argv[1]“%s“InFile1);
???sscanf(argv[2]“%s“InFile2);
???sscanf(argv[3]“%s“OutFile);
???sscanf(argv[4]“%d“&Width);
???sscanf(argv[5]“%d“&Length);
???sscanf(argv[6]“%lf“&Coeff);
/*???????printf(“%lf\n“Coeff);?exit(1);?*/
/********************************************************************************/
/****************************???????????????????????????*************************/
/********************************************************************************/
???if((InFP1=fopen(InFile1“r“))==NULL){
??????fprintf(stderr“file?%s?not?open\n“InFile1);
??????exit(0);
??????}
???if((InFP2=fopen(InFile2“r“))==NULL){
??????fprintf(stderr“file?%s?not?open\n“InFile2);
??????exit(0);
??????}
???if((OutFP=fopen(OutFile“w“))==NULL){
??????fprintf(stderr“file?%s?not?open\n“OutFile);
??????exit(0);
??????}
???for(i=0;i ??????if(i%1000==0)printf(“\rline?%d\n“i);
??????fread(InLine1sizeof(InLine1[0])Width*2InFP1);
??????fread(InLine2sizeof(InLine2[0])Width*2InFP2);
??????for(j=0;j /* OutLine[2*j]=InLine1[2*j]+Coeff*InLine2[2*j];
OutLine[2*j+1]=InLine1[2*j+1]+Coeff*InLine2[2*j+1];*/
Amp=hypot(InLine1[2*j]InLine1[2*j+1]);
Phi1=atan2(InLine1[2*j+1]InLine1[2*j]);
Phi2=atan2(InLine2[2*j+1]InLine2[2*j]);
OutLine[2*j]=Amp*cos(Phi1+Coeff*Phi2);
OutLine[2*j+1]=Amp*sin(Phi1+Coeff*Phi2);
??????}
??????fwrite(OutLinesizeof(OutLine[0])Width*2OutFP);
??????}
???close(InFP1);
???close(InFP2);
???close(OutFP);
???}
//POD=pod
//POD
//POD=head1?USAGE
//POD
//POD?Usage:?add_phs?Infile1?Infile2?Outfile?Width?Length?Coeff?????
//POD?Infile1:?file1?data??c*8/complex???????????????????????????
//POD?Infile2:?file2?data??c*8/complex???????????????????????????????
//POD?Outfile:?output?amp1?*exp[i*(phase1?+?phase2*coef)]?c*8?data;??????????????????????????????????
//POD?Width:?number?of?pixels?in?each?record?for?all?imput?and?output?files?????????????????????
//POD?Length:?number?of?records?to?collect?from?file1?&?file2?and?to?process/dump?to?outfile
//POD?Coeff:?factor?to?the?file2
//POD
//POD//POD=head1?FUNCTION
//POD
//POD?FUNCTIONAL?DEscriptION:??“add_cpx“?collects?data?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????826??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\COPYING
?????文件???????9533??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\README
?????文件????3298457??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\bibliography\Grandin_et_al_Sentinel-Illapel-3D_DRAFT_20160229_Watermark.pdf
?????文件????2414276??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\bibliography\Grandin_Fringe2015.pdf
?????文件????????600??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\examples\topsar_param_Etna.in
?????文件????????704??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\examples\topsar_param_LasVegas.in
?????文件????????578??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\examples\topsar_param_Mojave.in
?????文件????????971??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\examples\topsar_param_Nepal.in
?????文件????????793??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\examples\topsar_param_Taiwan.in
?????文件???????3282??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\MY_SCR\clean_dir-Sent1.pl
?????文件???????3479??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\MY_SCR\GetPeg_Sent1.pl
?????文件??????16403??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\MY_SCR\get_height_Sent1.pl
?????文件???????4458??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\MY_SCR\synth_offset_Sent1.pl
?????文件???????5542??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\python\decode_POEORB_S1.py
?????文件??????10732??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\python\fit_plane.py
?????文件??????54124??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\python\nsb_make_slc_s1.py
?????文件??????29844??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\python\safe2rsc.py
?????文件?????112418??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\ROI_PAC_changes\ampcor.F
?????文件???????2435??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\ROI_PAC_changes\cpxlooks.f
?????文件???????1839??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\ROI_PAC_changes\make_orrm.pl
?????文件??????22030??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\ROI_PAC_changes\make_sim.pl
?????文件??????49495??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\ROI_PAC_changes\resamp_roi.F
?????文件???????2406??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\ROI_PAC_changes\rilooks.f
?????文件???????3097??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\sc
?????文件??????11284??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\sc
?????文件??????39958??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\sc
?????文件???????9114??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\sc
?????文件??????12652??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\sc
?????文件??????22492??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\sc
?????文件???????7566??2016-04-26?15:30??ROI_PAC_3_0_1\ROI_PAC-Sentinel1-master\sc
............此處省略1114個文件信息
評論
共有 條評論