35 char *outputname,
char *comment,
short print)
53 outputfile=
t_fopen(outputname,
"w");
55 fprintf(outputfile,
"/** File %s */\n",outputname);
57 fprintf(outputfile,
"/** %s */\n",comment);
59 fprintf(outputfile,
"index{3,DEM}\n");
61 fprintf(outputfile,
"1: float array pixels size ");
65 fprintf(outputfile,
"2: float array novalues ");
69 fprintf(outputfile,
"3: short matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
106 char *outputname,
char *comment,
short print)
124 outputfile=
t_fopen(outputname,
"w");
126 fprintf(outputfile,
"/** File %s */\n",outputname);
128 fprintf(outputfile,
"/** %s */\n",comment);
130 fprintf(outputfile,
"index{3,DEM}\n");
132 fprintf(outputfile,
"1: double array pixels size ");
136 fprintf(outputfile,
"2: double array novalues ");
140 fprintf(outputfile,
"3: short matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
179 char *outputname,
char *comment,
short print)
199 outputfile=
t_fopen(outputname,
"w");
201 fprintf(outputfile,
"/** File %s */\n",outputname);
203 fprintf(outputfile,
"/** %s */\n",comment);
205 fprintf(outputfile,
"index{3,DEM}\n");
207 fprintf(outputfile,
"1: float array pixels size ");
211 fprintf(outputfile,
"2: float array novalues ");
215 fprintf(outputfile,
"3: long matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
255 char *outputname,
char *comment,
short print)
275 outputfile=
t_fopen(outputname,
"w");
277 fprintf(outputfile,
"/** File %s */\n",outputname);
279 fprintf(outputfile,
"/** %s */\n",comment);
281 fprintf(outputfile,
"index{3,DEM}\n");
283 fprintf(outputfile,
"1: float array pixels size ");
287 fprintf(outputfile,
"2: float array novalues ");
291 fprintf(outputfile,
"3: int matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
331 char *outputname,
char *comment,
short print)
355 outputfile=
t_fopen(outputname,
"w");
357 fprintf(outputfile,
"/** File %s */\n",outputname);
359 fprintf(outputfile,
"/** %s */\n",comment);
361 fprintf(outputfile,
"index{3,DEM}\n");
363 fprintf(outputfile,
"1: float array pixels size ");
367 fprintf(outputfile,
"2: float array novalues ");
371 fprintf(outputfile,
"3: float matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
411 char *outputname,
char *comment,
short print)
431 outputfile=
t_fopen(outputname,
"w");
433 fprintf(outputfile,
"/** File %s */\n",outputname);
435 fprintf(outputfile,
"/** %s */\n",comment);
437 fprintf(outputfile,
"index{3,DEM}\n");
439 fprintf(outputfile,
"1: float array pixels size ");
443 fprintf(outputfile,
"2: float array novalues ");
447 fprintf(outputfile,
"3: double matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
483 char *outputname,
char *comment,
short print)
503 outputfile=
t_fopen(outputname,
"w");
505 fprintf(outputfile,
"/** File %s */\n",outputname);
507 fprintf(outputfile,
"/** %s */\n",comment);
509 fprintf(outputfile,
"index{3,DEM}\n");
511 fprintf(outputfile,
"1: double array pixels size ");
515 fprintf(outputfile,
"2: double array novalues ");
519 fprintf(outputfile,
"3: double matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
557 char *outputname,
char *comment,
short print)
577 outputfile=
t_fopen(outputname,
"w");
579 fprintf(outputfile,
"/** File %s */\n",outputname);
581 fprintf(outputfile,
"/** %s */\n",comment);
583 fprintf(outputfile,
"index{1}\n");
585 fprintf(outputfile,
"1: double matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
623 char *outputname,
char *comment,
short print)
643 outputfile=
t_fopen(outputname,
"w");
645 fprintf(outputfile,
"/** File %s */\n",outputname);
647 fprintf(outputfile,
"/** %s */\n",comment);
649 fprintf(outputfile,
"index{1}\n");
651 fprintf(outputfile,
"1: float array vector ");
691 char *outputname,
char *comment,
short print)
711 outputfile=
t_fopen(outputname,
"w");
713 fprintf(outputfile,
"/** File %s */\n",outputname);
715 fprintf(outputfile,
"/** %s */\n",comment);
717 fprintf(outputfile,
"index{1}\n");
719 fprintf(outputfile,
"1:double array vector ");
763 DOUBLEVECTOR *V,
char *outputname,
char *comment,
short print)
785 for(r=1;r<=tensor->
nrh;r++){
787 for(c=1;c<=tensor->
nch;c++){
789 matrix->
co[r][c]=tensor->
co[layer][r][c];
803 outputfile=
t_fopen(outputname,
"w");
805 fprintf(outputfile,
"/** File %s */\n",outputname);
807 fprintf(outputfile,
"/** %s (layer %ld)*/\n",comment,layer);
809 fprintf(outputfile,
"index{3,DEM}\n");
811 fprintf(outputfile,
"1: float array pixels size ");
815 fprintf(outputfile,
"2: float array novalues ");
819 fprintf(outputfile,
"3: double matrix layer_%ld {%ld,%ld}\n",layer,matrix->
nrh,
893 char *outputname,
char *comment,
short print)
907 outputfile=
t_fopen(outputname,
"w");
909 fprintf(outputfile,
"/** %s */\n",comment);
911 fprintf(outputfile,
"index{3}\n");
913 fprintf(outputfile,
"1: double array pixels size ");
917 fprintf(outputfile,
"2: double array novalues ");
921 fprintf(outputfile,
"3: short matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
961 char *outputname,
char *comment,
short print)
977 outputfile=
t_fopen(outputname,
"w");
979 fprintf(outputfile,
"/** %s */\n",comment);
981 fprintf(outputfile,
"index{3}\n");
983 fprintf(outputfile,
"1: double array pixels size ");
987 fprintf(outputfile,
"2: double array novalues ");
991 fprintf(outputfile,
"3: long matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
1031 char *outputname,
char *comment,
short print)
1047 outputfile=
t_fopen(outputname,
"w");
1049 fprintf(outputfile,
"/** %s */\n",comment);
1051 fprintf(outputfile,
"index{3}\n");
1053 fprintf(outputfile,
"1: float array pixels size ");
1057 fprintf(outputfile,
"2: float array novalues ");
1061 fprintf(outputfile,
"3: int matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
1101 char *outputname,
char *comment,
short print)
1117 outputfile=
t_fopen(outputname,
"w");
1119 fprintf(outputfile,
"/** %s */\n",comment);
1121 fprintf(outputfile,
"index{3}\n");
1123 fprintf(outputfile,
"1: float array pixels size ");
1131 fprintf(outputfile,
"2: float array novalues ");
1139 fprintf(outputfile,
"3: float matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);
1179 char *outputname,
char *comment,
short print)
1195 outputfile=
t_fopen(outputname,
"w");
1197 fprintf(outputfile,
"/** %s */\n",comment);
1199 fprintf(outputfile,
"index{3}\n");
1201 fprintf(outputfile,
"1: double array pixels size ");
1205 fprintf(outputfile,
"2: double array novalues ");
1209 fprintf(outputfile,
"3: double matrix data {%ld,%ld}\n",matrix->
nrh,matrix->
nch);