Debian Codegraph @

bin/run

raw
1 #!/bin/sh
2 ##########################################################
3 # Script that:
4 # - Runs SAR software: Doris
5 # - (Delft Object-oriented Radar Interferometric Software)
6 # - Prints out helpdoris script
7 # - NOTE: uses environment variables EDITOR, PAGER (if exist)
8 #
9 # Version history:
10 # v1.0 22/03/99 bert initial version.
11 # v1.1 28/04/99 bert added -g(enerate) option.
12 # v1.2 12/05/99 bert added info variables (AUTHOR etc.).
13 # v1.3 02/06/99 bert added steps 8. slant2h and 9. geocode.
14 # v1.4 02/06/99 bert added checks for savety + renaming
15 # v2.0 02/12/99 bert new setup of steps, general improvements
16 # v2.1 22/05/00 bert environment variables
17 # v2.2 06/03/01 bert file name conventions (extensions)
18 # masterorb_slaveorb.cint .srp .srd .uint .coh .dcint
19 # v3.0 02/02/02 bert changed from ksh to sh since cygwin didn't have one.
20 # v3.1 12-Sep-2003 bert added quick look processing
21 # v4.01 12-Dec-2008 FvL updates for Doris 4.01
22 # v4.01 23-Dec-2008 MA minor revisions for Doris 4.01
23 # v4.01 13-Apr-2009 MA TSX update
24 # v4.02 29-May-2009 MA Ellipsoid card generated
25 # v4.0x 23-Jun-2010 MA,PD RS2 and CSK read/crop parameters updated
26 #
27 # Future plans:
28 # Print out: checklist.tex , shortmanual.tex, (see helpdoris)
29 # If existed output, interactive solution for rename, don't auto
30 # add check if input exists before vi
31 # We had some problems with the which command, so changd it to running programs
32 # looking for exit status...
33 #
34 # Disclaimer:
35 # This run file comes without warranty,
36 # You are allowed to change/add whatever you like.
37 # If you are using this script for running the Doris software,
38 # please keep the version history and disclaimer.
39 # Mail comments/bugs to [email protected]
40 ##########################################################
41 ##########################################################
42 PROG="doris" # executable name in path
43 PROGDEBUG="doris.debug" # executable name in path
44 PROGINCWD="./processor" # executable name in working dir
45
46
47 ##########################################################
48 ### Default values for -g option; not used in processing. ###
49 AUTHOR="TUDelft - MGP Radar Group" # Bert Kampes is the main author
50 MASTER="master"
51 SLAVE="slave"
52 REMARKS="No remarks"
53 BASELINE="Unknown"
54 DATE=`date "+%b %d, %Y (%A)"` # cannot be changed by input option
55
56 ### Default directories for input/output ###
57 INPUTDIR="Inputfiles" # directory for input
58 OUTPUTDIR="Outinfo" # directory for output standard out
59 DATAOUTDIR="Outdata" # directory for output matrices
60 WORKDIR="." # don't change?
61
62 ### Default parameter files/logfile ###
63 LOGFILE="doris.log"
64 # BK 19-Jan-2001: defaults to -M -S if specified
65 #MASTERRES="master.res"
66 #SLAVERES="slave.res"
67 #INTERFRES="products.res"
68
69
70 ##########################################################
71 # No need to change anything below this line (i hope) #
72 # But feel free to change default input generation to #
73 # Save you some editing work later. #
74 #########################################################
75
76 ##########################################################
77 # To run Doris software:
78 # 1) make sure your path is ok.
79 # 2) create work directory,
80 # 3) run -g etc. creates the input etc.
81 # 4) run -s runs the software. -h(elp)
82 #########################################################
83 #########################################################
84 #########################################################
85 # Script variables.
86 bn=`basename $0`
87 EDIT=999
88 STEP=999
89 VIEW=999
90 RESULT=999
91 INPUT=
92 INPUT_1=input.m_initial
93 INPUT_2=input.s_initial
94 INPUT_3=input.coregistration
95 INPUT_4=input.resample
96 INPUT_5=input.products
97 INPUT_6=input.filter_unwrap
98 INPUT_7=input.s2h_geocode
99 #INPUT_8=input.
100 INPUT_9=input.quicklook
101 DOGENERATE="0" # no default -g ...
102
103
104 # -------------------------------
105 # Functions for convenience.
106 NAME()
107 {
108 echo " $bn -- Utility for running the Delft insar processor."
109 }
110
111 SYNOPSIS()
112 {
113 echo " $bn -s/-e/-v step -ql [-f inputfile -r file-id -d]"
114 echo " /-g [-M master -S slave -B baseline -R remark -A author]"
115 echo " /-h"
116 echo " ($bn -h gives more help)"
117 }
118
119 USAGE()
120 {
121 echo "Usage:"
122 SYNOPSIS
123 exit 1
124 }
125
126 MANPG()
127 {
128 cat << __MANEOF
129
130 PROGRAM:
131 $name
132
133
134 SYNOPSIS:
135 $synopsis
136
137
138 DESCRIPTION:
139 This script is convenient for running the Doris InSAR software.
140 It generates template input files, and serves as a shell.
141 It allows you to edit the generated input, and to run Doris.
142 Of course the results can also be viewed.
143
144 The environment variables PAGER and EDITOR are used (if set)
145 for viewing and editing. In your current setup, the programs
146 "$PAGER" and "$EDITOR" are used respectively.
147 __MANEOF
148
149 if [ -x $PROGINCWD ]; then
150 echo " "The executable: \"$PROGINCWD\" "is used (run -s step)."
151 else
152 echo " "The executable: \"$PROG\" "is used (run -s step)."
153 fi
154
155 cat << __MANEOF
156
157 OPTIONS:
158
159 ==========================
160 === GENERATING OPTIONS ===
161 ==========================
162 -g
163 Generate directories, template input files.
164 Use -M -S -A -B -R to specify comments in template
165 input files.
166 It makes the following directories:
167 for the input files: "$INPUTDIR/"
168 for the redirected stdout: "$OUTPUTDIR/"
169 for data output: "$DATAOUTDIR/"
170 Either the program:
171 "$PROG" (default in your path),
172 "$PROGDEBUG" (-d option), or
173 "$PROGINCWD" (if it exists).
174 is called.
175
176 -M master
177 Only in combination with -g option.
178 Specify name for master image (e.g., orbit number).
179 This variable is used to name the output data files
180 and as a comment at the top of the input files.
181 The M_RESFILE is assigned to 'master'.res
182 The I_RESFILE is assigned to 'master_slave'.res
183
184 -S slave
185 Only in combination with -g option.
186 Specify name for slave image (e.g., orbit number).
187 This variable is used to name the output data files
188 and as a comment at the top of the input files.
189 The S_RESFILE is assigned to 'slave'.res
190 The I_RESFILE is assigned to 'master_slave'.res
191
192 -A author
193 Only in combination with -g option.
194 Specify name of author/ person who is processing.
195 Used only as a comment at the top of the input files.
196
197 -B baseline
198 Only in combination with -g option.
199 Specify baseline (e.g., 100).
200 Used only as a comment at the top of the input files.
201
202 -R remarks
203 Only in combination with -g option.
204 Specify any remarks on the processing.
205 Used only as a comment at the top of the input files.
206
207
208 ==========================
209 === PROCESSING OPTIONS ===
210 ==========================
211
212 -e step
213 edit the inputfiles. then exit (no processing).
214
215 -ql
216 Quicklook processing. (Edit input: run -e1; run -e2; run -e9).
217 If run -s1 has not been done yet, it perform it.
218 If run -s2 has not been done yet, it perform it.
219 Then it copies the $MASTERRES to master_QL.res
220 and $SLAVERES to slave_QL.res
221 Finally it runs doris with options in run -e9 (all steps for interferogram).
222
223 -s step
224 proces the input file for this step.
225 1: initial steps for master (readfiles, crop, porbits)
226 2: initial steps for slave (readfiles, crop, porbits)
227 3: coregistration (coarse, fine)
228 4: compute coregistration parameters and perform resampling
229 5: interferometric product generation and reference phase
230 6: phase filtering (and phase unwrapping)
231 7: slant to height conversion and geocoding
232 8: n/a
233 9: quicklook processing.
234 This step first performs a run -s1 and a run -s2 to read master and slave.
235 Make sure that you have edited the input files with run -e1 and run -e2.
236 Then, all steps to quickly create an interferogram are performed.
237 You can edit that with run -e9, but there should be no need for that.
238
239
240 -v step
241 view output file of step.
242
243 -r file-ID
244 view/edit result output file.
245 1: "$MASTERRES" (master result file)
246 2: "$SLAVERES" (slave result file)
247 3: "$INTERFRES" (interferogram result file)
248 4: "$LOGFILE" (logfile)
249
250
251 ==========================
252 === FURTHER OPTIONS ===
253 ==========================
254
255 -f infile
256 Specify an input file to process.
257 Useage of this option is discouraged, use option -s step.
258 (or use command line syntax if you like that better.)
259 -d
260 Use debugger version: $PROGDEBUG
261 instead of regular: $PROG
262 These executables have to be in your path.
263 This option can be used if normal processing goes wrong.
264 The redirected stdout can get very large (2GB) with this option.
265
266
267
268 ==========================
269 === EXAMPLES ===
270 ==========================
271
272 Normally, the processing starts by generating input files: run -g
273 Then, check/edit the input for the first step: run -e1
274 Next the executable $PROG is called by: run -s1
275 The output can be viewed with: run -v1
276 for the stdout and with: run -r[1/2/3/4]
277 The processing continues with the next step: run -e2 etc.
278
279 To generate the input files for master 21066, slave 01393,
280 with a baseline of about 100m for testing purposes:
281 run -g -M 21066 -S 01393 -R "Testing generate option" -B 100
282
283 To edit the input file for step one:
284 run -e 1
285
286 To run first step, and put ouput file (redirected stout) in dir:
287 run -s 1
288
289 To view the output file for step one:
290 run -v 1
291
292 To run an input file named inputA in the current directory (discouraged with -f):
293 run -f inputA
294 doris inputA > outputA
295
296
297 ==========================
298 === AUTHOR ===
299 ==========================
300 Author:
301 $bn is written by Bert Kampes, Delft University, (c)1999-2003, [email protected].
302
303 Known bugs:
304 It is not possible to edit more then one file with the -e option.
305
306
307 See also:
308 helpdoris
309 plotoffsets
310 plotcpm
311
312 Note: You can edit this script if you want other options, etc.
313 Please notify [email protected] in that case.
314
315 __MANEOF
316 }
317
318
319
320 # generate input files------------------
321 GENERAL()
322 {
323 cat << __GENERALEOF
324 # **********************************************************************
325 # *** Doris inputfile generated by: $bn at: $DATE *****
326 # **********************************************************************
327 # ***
328 # *** Filename: $INPUTDIR/$fn
329 # *** Author: $AUTHOR
330 # *** Master: $MASTER
331 # *** Slave : $SLAVE
332 # *** Baseline: $BASELINE
333 # *** Remarks: $REMARKS
334 # ***
335 # *** Intended to be used with shell script: $bn
336 # **********************************************************************
337
338 ########################################################################
339 # NOTE: BK 16-JUN-2003 #
340 # It seems when compiled with g++ 3.2, there cannot be an empty #
341 # optional argument, since instead the first (key) of the next line #
342 # is read. Therefore, it seems wise to always use arguments, or to #
343 # always have a comment with "//" behind the last argument. #
344 # Of course there must be a way to prevent this, but I don't know how#
345 ########################################################################
346
347
348 # ------------------------------------------
349 # The general options
350 # ------------------------------------------
351
352 SCREEN info // level of output to standard out
353 c SCREEN debug // [trace, debug, info, progress, warning, error]
354 c SCREEN trace // [trace, debug, info, progress, warning, error]
355 BEEP warning // level of beeping
356 c PREVIEW xv // SUNraster files with cpxfiddle
357 PREVIEW on // SUNraster files with cpxfiddle
358 MEMORY 500 // [MB] RAM available to Doris
359 OVERWRITE ON // do overwrite existing files
360 BATCH ON // do process non-interactive
361 LISTINPUT ON // do copy this file to log
362 HEIGHT 0.0 // average WGS84 terrain height
363 TIEPOINT 0.0 0.0 0.0 // lat/lon/hei of a tiepoint
364 ORB_INTERP POLYFIT 4 // 5th degree polynomial
365 c ORB_INTERP SPLINE // natural cubic spline
366 c ORB_INTERP POLYFIT // orbit interpolation method
367 c ELLIPSOID WGS84 // WGS84 (default), GRS80, BESSEL or define a,b (major radius, minor radius)
368
369 c DUMPBASELINE 15 10 // eval baseline on grid
370 c M_RG_T_ERROR 0.0 // one-way [sec] timing error
371 c M_AZ_T_ERROR 0.0 // azimuth timing error
372 c S_RG_T_ERROR 0.0 // one-way [sec]; d_rg=err*rsr*2
373 c S_AZ_T_ERROR 0.0 // [sec]; d_az=err*prf [m]
374 __GENERALEOF
375 }
376
377
378 FILES()
379 {
380 cat << __FILESEOF
381
382
383 # ------------------------------------------
384 # The general io files
385 # ------------------------------------------
386
387 LOGFILE $LOGFILE // log file
388 M_RESFILE $MASTERRES // parameter file master
389 S_RESFILE $SLAVERES // parameter file slave
390 I_RESFILE $INTERFRES // parameter file interferogram
391
392 __FILESEOF
393 }
394
395
396 GEN_1()
397 {
398 fn=$INPUT_1
399 GENERAL
400 FILES
401 cat << __GENEOF_1a
402 PROCESS m_readfiles // reading of slc files
403 PROCESS m_porbits // get precise orbits
404 PROCESS m_crop // convert data to internal format
405 PROCESS m_simamp // simulate amplitude
406 PROCESS m_timing // estimate timing error
407 c PROCESS m_ovs // optionally oversample data
408 __GENEOF_1a
409 cat << __GENEOF_1b
410
411
412 # ------------------------------------------
413 # READFILES (master)
414 # ------------------------------------------
415
416 c M_IN_METHOD JERS // uses ERS ceos reader
417 c M_IN_METHOD RSAT // uses RSAT ceos reader
418 c M_IN_METHOD ATLANTIS // uses RSAT ceos reader
419 c M_IN_METHOD ALOS // uses ALOS ceos reader
420 # -- select following 5 for ERS ceos reader --
421 M_IN_METHOD ERS // default
422 M_IN_VOL /CDROM/SCENE1/VDF_DAT.001 // slc volume file
423 M_IN_LEA /CDROM/SCENE1/LEA_01.001 // slc leaderfile
424 M_IN_DAT /CDROM/SCENE1/DAT_01.001 // slc data file
425 M_IN_NULL dummy //
426 #
427 #
428 # --or select following 2 for ERS--
429 c M_IN_METHOD ERS_N1 // ERS1/2 in Envisat format
430 c M_IN_DAT SAR_IMS_1PXDLR19951008_144123_00000017G150_00096_22128_3605.E1 // please link the actual input file with "ln -s" to avoid long pathnames
431 #
432 # --or select following 2 for ENVISAT--
433 c M_IN_METHOD ASAR // ENVISAT
434 c M_IN_DAT ASA_IMS_1PXPDE19911013_214038_00000015X000_00000_04784_0002.N1 // please link the actual input file with "ln -s" to avoid long pathnames
435 #
436 #
437 c M_IN_METHOD TSX // TERRASAR-X
438 c M_IN_DAT IMAGE_HH_SRA_strip_007.cos // please link the actual input file with "ln -s"
439 c M_IN_LEA TSX1_metadata.xml
440 #
441 #
442 c M_IN_METHOD RADARSAT-2 // RADARSAT-2
443 c M_IN_DAT imagery_HH.tif // please link the actual input file with "ln -s"
444 c M_IN_LEA product.xml
445 #
446 #
447 c M_IN_METHOD CSK // Cosmo-skymed
448 c M_IN_DAT master.h5 // please link the actual (CSKS1_SCS_B_HI_05_HH_RA_SF_date.h5)
449 // input file with "ln -s"
450
451
452 # ------------------------------------------
453 # PORBITS (master)
454 # ------------------------------------------
455
456 M_ORBDIR /data/delftorbits/ers?
457 c M_ORBDIR /data/delftorbits/ers1/dgm-e04 // dgm gravity model
458 c M_ORBDIR /data/delftorbits/ers2/eigen-grace01s // grace gravity model
459 c M_ORBDIR /data/delftorbits/envisat/eigen-grace01s // grace gravity model
460 c --for spline--
461 c M_ORB_EXTRATIME 300 // Time before first line
462 c M_ORB_INTERVAL 30 // Time between data
463 c M_ORB_DUMP 0.05 // dump to ascii file
464 c --for polyfit(3)--
465 M_ORB_EXTRATIME 5 // Time before first line
466 M_ORB_INTERVAL 4 // Time between data
467
468
469 # ------------------------------------------
470 # CROP (master)
471 # ------------------------------------------
472
473 c --for CEOS reader: ERS JERS RADARSAT-1 ALOS--
474 M_CROP_IN /CDROM/SCENE1/DAT_01.001 // slc data file
475 c
476 c --or for ENVISAT--
477 c M_CROP_IN /cdrom/ASA_IMS_1PXPDE19911013_214038_00000015X000_00000_04784_0002.N1 // please link the actual input file with "ln -s" to avoid long pathnames
478 c
479 c --or for TERRASAR-X
480 c M_CROP_IN IMAGE_HH_SRA_strip_007.cos // please link the actual input file with "ln -s"
481 c
482 c --or for Radarsat-2
483 c M_CROP_IN FQ9HV_20090515.tif // please link the actual input file with "ln -s"
484 c
485 c --or for Cosmo-skymed
486 c M_CROP_IN master.h5 // please link the actual (CSKS1_SCS_B_HI_05_HH_RA_SF_date.h5)
487 // input file with "ln -s"
488 c
489 c --and the rest of parameters
490 M_CROP_OUT $DATAOUTDIR/$MASTER.raw // output filename
491 M_DBOW 1 5000 1 1000 // database output window in the radar cordinates
492 c M_DBOW_GEO 41.1 12.0 5000 1000 // lat_0[deg], lon_0, height, width[pix]
493
494
495 # ------------------------------------------
496 # SIMULATE AMPLITUDE (master)
497 # ------------------------------------------
498
499 SAM_IN_DEM final_netherlands.dem
500 SAM_IN_FORMAT r4 // default is short integer
501 SAM_IN_SIZE 4801 6001
502 SAM_IN_DELTA 0.000833333 0.000833333
503 SAM_IN_UL 54 3
504 SAM_IN_NODATA -32768
505 SAM_OUT_FILE master_sam.raw
506 SAM_OUT_DEM master_demcrop.dem
507 c SAM_OUT_DEM_LP master_demhei_lp.raw
508 c SAM_OUT_THETA_LP master_theta_lp.raw
509
510
511 # ------------------------------------------
512 # TIMING (master)
513 # ------------------------------------------
514
515 MTE_METHOD magspace
516 c MTE_IN_POS window_locations.txt
517 MTE_NWIN 16
518 MTE_WINSIZE 256 128
519 MTE_ACC 32 32
520 MTE_INITOFF 0 0
521
522
523 # ------------------------------------------
524 # OVERSAMPLE (master)
525 # ------------------------------------------
526
527 M_OVS_OUT $DATAOUTDIR/${MASTER}_ovs.raw // output filename
528 M_OVS_OUT_FORMAT ci2 // output format for the oversampled image ci2 | cr4.
529 M_OVS_FACT_RNG 2 // range oversampling ratio
530 M_OVS_FACT_AZI 1 // azimuth oversampling ratio (>2 not implemented yet!)
531 M_OVS_KERNELSIZE 16 // interpolation kernel length
532 c //
533 c //
534 STOP // mandatory
535 # vim: syntax=doris
536 __GENEOF_1b
537 }
538 #
539 #
540 GEN_2()
541 {
542 fn=$INPUT_2
543 GENERAL
544 FILES
545 cat << __GENEOF_2a
546 PROCESS s_readfiles // reading of slc files
547 PROCESS s_porbits // get precise orbits
548 PROCESS s_crop // convert data to internal format
549 c PROCESS s_ovs // optionally oversample data
550 __GENEOF_2a
551 cat << __GENEOF_2b
552
553
554 # ------------------------------------------
555 # READFILES (slave)
556 # ------------------------------------------
557
558 c S_IN_METHOD JERS // uses ERS ceos reader
559 c S_IN_METHOD RSAT // uses RSAT ceos reader
560 c S_IN_METHOD ATLANTIS // uses RSAT ceos reader
561 c S_IN_METHOD ALOS // uses ALOS ceos reader
562 # -- select following 5 for ERS ceos reader --
563 S_IN_METHOD ERS // default
564 S_IN_VOL /CDROM/SCENE1/VDF_DAT.001 // slc volume file
565 S_IN_LEA /CDROM/SCENE1/LEA_01.001 // slc leaderfile
566 S_IN_DAT /CDROM/SCENE1/DAT_01.001 // slc data file
567 S_IN_NULL dummy //
568 #
569 #
570 # --or select following 2 for ENVISAT-- //
571 c S_IN_METHOD ASAR // ENVISAT
572 c S_IN_DAT ASA_IMS_1PXPDE19911013_214038_00000015X000_00000_04784_0002.N1 // please link the actual input file with "ln -s" to avoid long pathnames
573 #
574 #
575 c S_IN_METHOD TSX // TERRASAR-X
576 c S_IN_DAT IMAGE_HH_SRA_strip_007.cos // please link the actual input file with "ln -s"
577 c S_IN_LEA TSX1_metadata.xml
578 #
579 #
580 c S_IN_METHOD RADARSAT-2
581 c S_IN_DAT FQ9HV_20090515.tif // please link the actual input file with "ln -s"
582 c S_IN_LEA FQ9_20090515.xml
583 #
584 #
585 c S_IN_METHOD CSK // Cosmo-skymed
586 c S_IN_DAT slave.h5 // please link the actual (CSKS1_SCS_B_HI_05_HH_RA_SF_date.h5)
587 // input file with "ln -s"
588
589
590 # ------------------------------------------
591 # PORBITS (slave)
592 # ------------------------------------------
593
594 S_ORBDIR /data/delftorbits/ers?
595 c S_ORBDIR /data/delftorbits/ers1/dgm-e04 // dgm gravity model
596 c S_ORBDIR /data/delftorbits/ers2/eigen-grace01s // grace gravity model
597 c S_ORBDIR /data/delftorbits/envisat/eigen-grace01s // grace gravity model
598 c --for spline--
599 c S_ORB_EXTRATIME 300 // Time before first line
600 c S_ORB_INTERVAL 30 // Time between data
601 c S_ORB_DUMP 0.05 // dump to ascii file
602 c --for polyfit(3)--
603 S_ORB_EXTRATIME 5 // Time before first line
604 S_ORB_INTERVAL 4 // Time between data
605
606
607 # ------------------------------------------
608 # CROP (slave)
609 # ------------------------------------------
610
611 c --for CEOS reader: ERS JERS RADARSAT-1 ALOS--
612 S_CROP_IN /CDROM/SCENE1/DAT_01.001 // slc data file
613 c
614 c --or for ENVISAT--
615 c S_CROP_IN /cdrom/ASA_IMS_1PXPDE19911013_214038_00000015X000_00000_04784_0002.N1 // please link the actual input file with "ln -s" to avoid long pathnames
616 c
617 c --or for TERRASAR-X
618 c S_CROP_IN IMAGE_HH_SRA_strip_007.cos // please link the actual input file with "ln -s"
619 c
620 c --or for Radarsat-2
621 c S_CROP_IN FQ9HV_20090515.tif // please link the actual input file with "ln -s"
622 c
623 c --or for Cosmo-skymed
624 c S_CROP_IN slave.h5 // please link the actual (CSKS1_SCS_B_HI_05_HH_RA_SF_date.h5)
625 // input file with "ln -s"
626 c
627 c --and the rest of parameters
628 S_CROP_OUT $DATAOUTDIR/$SLAVE.raw // output file
629 S_DBOW 101 6100 11 1010 // database output window in the radar coordinates
630 c S_DBOW_GEO 41.1 12.0 5000 1000 // lat_0[deg], lon_0, height, width[pix]
631
632
633 # ------------------------------------------
634 # OVERSAMPLE (slave)
635 # ------------------------------------------
636
637 S_OVS_OUT $DATAOUTDIR/${SLAVE}_ovs.raw // output filename
638 S_OVS_OUT_FORMAT ci2 // output format for the oversampled image ci2 | cr4.
639 S_OVS_FACT_RNG 2 // range oversampling ratio
640 S_OVS_FACT_AZI 1 // azimuth oversampling ratio (>1 not implemented yet!)
641 S_OVS_KERNELSIZE 16 // interpolation kernel length
642 c
643 c
644 STOP // mandatory
645 # vim: syntax=doris
646 __GENEOF_2b
647 }
648
649 #
650 GEN_3()
651 {
652 fn=$INPUT_3
653 GENERAL
654 FILES
655 cat << __GENEOF_3a
656 PROCESS coarseorb // no cards later
657 PROCESS coarsecorr // based on correlation
658 PROCESS m_filtazi // azimuth filter
659 PROCESS s_filtazi // azimuth filter
660 c PROCESS filtrange // range filter (orbits)
661 c -- note that fine requires good initial offset by coarsecorr --
662 c -- ..and/or coarseorb. See the logfile if the coarse offset --
663 c -- ..is computed correctly if you have low coherence after fine --
664 PROCESS fine // fine coregistration
665 PROCESS reltiming // relative timing error master-slave
666 PROCESS demassist // DEM assisted coregistration
667 __GENEOF_3a
668 cat << __GENEOF_3b
669
670
671 # ------------------------------------------
672 # COARSE COREGISTRATION
673 # ------------------------------------------
674
675 CC_METHOD magfft // default
676 c CC_METHOD magspace //
677 CC_NWIN 21 // number of large windows
678 CC_WINSIZE 256 256 // size of windows (square better?)
679 c CC_INITOFF 0 0 // initial offset
680 CC_INITOFF orbit // use result of orbits
681
682
683 # ------------------------------------------
684 # AZIMUTH FILTERING
685 # ------------------------------------------
686
687 c AF_METHOD //
688 AF_BLOCKSIZE 1024 // fftlength each column
689 AF_OVERLAP 64 // hbs
690 AF_HAMMING 0.75 // alpha of hamming, see logfile
691 AF_OUT_MASTER $DATAOUTDIR/$MASTER.af
692 AF_OUT_SLAVE $DATAOUTDIR/$SLAVE.af
693 AF_OUT_FORMAT cr4 //
694
695
696 # ------------------------------------------
697 # RANGE FILTERING (master&slave)
698 # ------------------------------------------
699
700 RF_METHOD porbits // based on orbit geometry
701 RF_SLOPE 0.0 // [deg] and terrain slope
702 RF_FFTLENGTH 1024 // power of 2
703 RF_HAMMING 0.75 // 'alpha'
704 RF_OUT_MASTER $DATAOUTDIR/$MASTER.rf_orb
705 RF_OUT_SLAVE $DATAOUTDIR/$SLAVE.rf_orb
706 RF_OUT_FORMAT cr4 //
707
708
709 # ------------------------------------------
710 # FINE COREGISTRATION
711 # ------------------------------------------
712
713 c FC_METHOD magfft // fast
714 FC_METHOD oversample // best: oversample complex data
715 c FC_METHOD magspace // same as magfft
716 FC_NWIN 601 // number of smaller windows
717 c FC_IN_POS highcorr.pos // filename with window positions
718 FC_WINSIZE 64 64 // size of windows
719 FC_ACC 8 8 // search window, 2^n
720 FC_INITOFF coarsecorr // use result of coarse
721 FC_OSFACTOR 32 // oversampling factor
722 FC_PLOT 0.2 NOBG // GMT plot with magnitude background
723
724
725 # ------------------------------------------
726 # RELATIVE TIMING ERROR
727 # ------------------------------------------
728
729 RTE_THRESHOLD 0.4
730 RTE_MAXITER 10000
731 RTE_K_ALPHA 1.97
732
733
734 # ------------------------------------------
735 # DEM ASSISTED COREGISTRATION
736 # ------------------------------------------
737
738 DAC_IN_DEM final_netherlands.dem
739 DAC_IN_FORMAT r4 // default is short integer
740 DAC_IN_SIZE 4801 6001
741 DAC_IN_DELTA 0.000833333 0.000833333
742 DAC_IN_UL 54 3
743 DAC_IN_NODATA -32768
744 c DAC_OUT_DEM demassist.dem
745 c DAC_OUT_DEMI demassist_int.dem
746 c DAC_OUT_DEM_LP demheight_lp.raw
747
748 c //
749 c //
750 STOP // mandatory
751 # vim: syntax=doris
752 __GENEOF_3b
753 }
754 #
755 #
756 GEN_4()
757 {
758 fn=$INPUT_4
759 GENERAL
760 FILES
761 cat << __GENEOF_4a
762 c -- note that coregpm requires a threshold, and you may need --
763 c -- ..to run step coregpm again. I put it here as process --
764 c -- ..to obtain an automatic processing for my test data. --
765 c -- ..but normally you have to remove some points interactively --
766 c -- ..in an iterative way (i.e., before running "resample). --
767 PROCESS coregpm // estimate coregistration param.
768 PROCESS resample // slave
769 c -- note that filtrange adaptive is recommended to run. --
770 c PROCESS filtrange // master&slave
771 __GENEOF_4a
772 cat << __GENEOF_4b
773
774
775 # ------------------------------------------
776 # COREGISTRATION PARAMETERS MODELING
777 # ------------------------------------------
778
779 CPM_THRESHOLD 0.2 // higher threshold->less windows
780 c CPM_DEGREE 2 // 2d-polynomial
781 CPM_DEGREE 1 // 1d-polynomial (if demassist coregistration)
782 c CPM_WEIGHT linear // or [none]
783 c CPM_WEIGHT quadratic // or [none]
784 CPM_WEIGHT bamler // paper R.Bamler, IGARSS 2000/2004
785 CPM_MAXITER 10000 // automated removal, max 10000 iterations
786 c CPM_K_ALPHA 1.97 // automated removal crit. value
787 CPM_PLOT NOBG // plot w/o magnitude background
788 c CPM_DUMP OFF // no creation of files
789
790
791 # ------------------------------------------
792 # RESAMPLING SLAVE
793 # ------------------------------------------
794
795 c --- Interpolation Kernel ---
796 c RS_METHOD tri // linear
797 c RS_METHOD nearest // nearest neighbour
798 c RS_METHOD cc4p // cubic convolution
799 c RS_METHOD cc6p // good choice; tested
800 c RS_METHOD ts6p // truncated sinc
801 c RS_METHOD ts8p // truncated sinc
802 c RS_METHOD ts16p // slower but better
803 c RS_METHOD knab6p // better than cc6 (theory)
804 c RS_METHOD knab8p // KNAB window
805 c RS_METHOD knab10p // KNAB window
806 c RS_METHOD knab16p // KNAB window
807 c RS_METHOD knab4p // KNAB window
808 RS_METHOD rc6p // best choice (theory 0.9999)
809 c RS_METHOD rc12p // best choice (theory 0.9999)
810 c
811 c --- Output file ---
812 RS_OUT_FILE $DATAOUTDIR/$SLAVE.resampled
813 RS_OUT_FORMAT cr4 //
814 c RS_DBOW 2000 3000 1 5000 // database output window
815 c RS_DBOW_GEO 52.6743 5.3434 10000 2000 // lat_0[deg], lon_0, height, width[pix]
816 RS_SHIFTAZI on // keep this on
817
818
819 # ------------------------------------------
820 # RANGE FILTERING (master&slave)
821 # ------------------------------------------
822
823 RF_METHOD adaptive // estimate local fringe freq.
824 c RF_FFTLENGTH 8 // 8 pixels ~ 160m ground range
825 c RF_FFTLENGTH 32 // 32 pixels ~ 640m ground range
826 RF_FFTLENGTH 128 // 128 pixels ~ 2500m ground range
827 RF_OVERLAP 50 // half overlap
828 RF_OVERSAMPLE 2 // master/slave before ifg generation
829 RF_NLMEAN 9 // must be odd (15 pixels ~ 60m)
830 RF_THRESHOLD 2 // SNR spectral peak detection
831 RF_HAMMING 0.75 // alpha of Hamming window
832 RF_WEIGHTCORR OFF
833 RF_OUT_MASTER $DATAOUTDIR/$MASTER.rf_adapt
834 RF_OUT_SLAVE $DATAOUTDIR/$SLAVE.rf_adapt
835 c RF_OUT_FORMAT ci2 // reduce output file size
836 c //
837 c //
838 STOP // mandatory
839 # vim: syntax=doris
840 __GENEOF_4b
841 }
842 #
843 #
844 GEN_5()
845 {
846 fn=$INPUT_5
847 GENERAL
848 FILES
849 cat << __GENEOF_5a
850 PROCESS interfero //
851 // -- note: compute reference phase after interfero, --
852 // -- ..otherwise it is subtracted in INT_METHOD old --
853 PROCESS comprefpha // estimate flatearth param.
854 PROCESS subtrrefpha //
855 PROCESS comprefdem // synthetic phase from DEM
856 PROCESS subtrrefdem //
857 PROCESS coherence //
858 __GENEOF_5a
859 cat << __GENEOF_5b
860
861
862 # ------------------------------------------
863 # INTERFEROGRAM
864 # ------------------------------------------
865
866 INT_METHOD old //
867 c INT_METHOD oversample //
868 INT_OUT_CINT $DATAOUTDIR/${MASTER}_${SLAVE}.cint // optional complex int.
869 c INT_OUT_INT $DATAOUTDIR/${MASTER}_${SLAVE}.int // optional real int.
870 INT_MULTILOOK 5 1 // line, pixel factors
871
872
873 # ------------------------------------------
874 # REFERENCE PHASE COMPUTATION
875 # ------------------------------------------
876
877 FE_METHOD porbits //
878 c FE_METHOD method2 // not implemented?
879 FE_DEGREE 5 //
880 FE_NPOINTS 501 //
881
882
883 # ------------------------------------------
884 # SUBTRACT REFERENCE PHASE
885 # ------------------------------------------
886
887 c SRP_METHOD exact // compute foreach pixel
888 c SRP_METHOD polynomial // evaluate comprefpha poly
889 SRP_OUT_CINT $DATAOUTDIR/${MASTER}_${SLAVE}.srp //
890 SRP_MULTILOOK 2 2
891 c SRP_DUMPREFPHA ON
892 c SRP_OUT_REFPHA $DATAOUTDIR/refphase.cr4 // only output for debug
893
894
895 # ------------------------------------------
896 # REFERENCE DEM
897 # ------------------------------------------
898
899 CRD_IN_DEM /home/fmr/d4/dem/gtopo30/w020n90/W020N90.DEM
900 c CRD_IN_FORMAT r4 // default is short integer
901 CRD_IN_UL 89.995833333333333 -19.995833333333333333333 // w020n90.HDR
902 CRD_IN_SIZE 6000 4800 // number of rows columns
903 CRD_IN_DELTA 0.00833333333333333333 0.00833333333333333333 // latitude, longitude dec degrees
904 CRD_IN_NODATA -9999 // DEM invalid sample indicator
905 CRD_INCLUDE_FE OFF // phase w.r.t. ellips
906 c CRD_OUT_DEM $DATAOUTDIR/DEM_crop.raw // debug cropped dem
907 c CRD_OUT_DEMI $DATAOUTDIR/DEM_crop_interp.raw // debug cropped dem interpolated
908 c CRD_OUT_DEM_LP $DATAOUTDIR/refdem_hei.raw // DEM [m] in radar geometry
909 CRD_OUT_FILE $DATAOUTDIR/refdem_pha.raw // phase of DEM
910
911
912 # ------------------------------------------
913 # SUBTRREF DEM
914 # ------------------------------------------
915
916 SRD_OUT_CINT $DATAOUTDIR/${MASTER}_${SLAVE}.srd //
917 c //
918 c //
919
920 # ------------------------------------------
921 # COHERENCE
922 # ------------------------------------------
923
924 c COH_METHOD refphase_only //
925 COH_METHOD include_refdem // remove topographic phase also.
926 c COH_OUT_CCOH $DATAOUTDIR/${MASTER}_${SLAVE}.ccoh // optional complex image
927 COH_OUT_COH $DATAOUTDIR/${MASTER}_${SLAVE}.coh // optional real
928 COH_MULTILOOK 10 2 // same as interferogram
929 COH_WINSIZE 20 4 // estimator window size
930 c //
931 c //
932 STOP // mandatory
933 # vim: syntax=doris
934 __GENEOF_5b
935 }
936 #
937 #
938 GEN_6()
939 {
940 fn=$INPUT_6
941 GENERAL
942 FILES
943 cat << __GENEOF_6a
944 c -- note to set filtparameters correctly, or not to filter. --
945 c -- ..also set unwrap snaphu to correct model. --
946 c -- ..unwrap relies on snaphu to be installed! --
947 PROCESS filtphase // filter interferogram
948 PROCESS unwrap // unwrap interferogram
949 c PROCESS dinsar // differential interferogram
950 __GENEOF_6a
951 cat << __GENEOF_6b
952
953
954 # ------------------------------------------
955 # PHASE FILTERING
956 # ------------------------------------------
957
958 c PF_IN_FILE $DATAOUTDIR/${MASTER}_${SLAVE}.srp 323 // only for standalone usage
959 PF_OUT_FILE $DATAOUTDIR/${MASTER}_${SLAVE}.cint.filtered
960 PF_METHOD spatialconv
961 PF_KERNEL 5 1 1 1 1 1
962 c c PF_KERNEL 5 1 4 9 4 1
963 c c PF_KERNEL 5 1 2 3 2 1
964 c c PF_KERNEL 3 -1 1 0
965 c c PF_IN_KERNEL2D myfilt.asc
966 c
967 c PF_METHOD goldstein
968 c PF_ALPHA 1.8
969 c PF_BLOCKSIZE 32
970 c PF_OVERLAP 12
971 c PF_KERNEL 5 1 1 1 1 1
972
973
974 # ------------------------------------------
975 # PHASE UNWRAPPING
976 # ------------------------------------------
977
978 c UW_METHOD RAMON // (delft only)
979 c UW_SEEDS 100 // delta seedL = seedP
980 c UW_SEEDS 100 200 //
981 c UW_SEEDS seedfilename // put EOL after last
982 UW_OUT_FILE $DATAOUTDIR/${MASTER}_${SLAVE}.uint // unwrapped interferogram
983 c UW_OUT_REGIONS $DATAOUTDIR/${MASTER}_${SLAVE}.regions // 2b used with manuw.m
984 UW_METHOD SNAPHU
985 UW_OUT_FORMAT HGT
986 UW_SNAPHU_LOG snaphu.log
987 UW_SNAPHU_coh $DATAOUTDIR/${MASTER}_${SLAVE}.coh
988 UW_SNAPHU_MODE TOPO
989 UW_SNAPHU_INIT MST
990 UW_SNAPHU_VERBOSE ON
991
992
993 # ------------------------------------------
994 # DIFFERENTIAL INSAR
995 # ------------------------------------------
996
997 DI_OUT_FILE $DATAOUTDIR/${MASTER}_${SLAVE}.dcint // differential
998 DI_IN_TOPOSLAVE topodir/slave.res
999 DI_IN_TOPOINT topodir/products.res
1000 c DI_IN_TOPOMASTER topodir/master.res // 4 pass
1001 c DI_OUT_SCALED debug.raw
1002 c //
1003 c //
1004 STOP // mandatory
1005 # vim: syntax=doris
1006 __GENEOF_6b
1007 }
1008 #
1009 #
1010 GEN_7()
1011 {
1012 fn=$INPUT_7
1013 GENERAL
1014 FILES
1015 cat << __GENEOF_7a
1016 PROCESS slant2h //
1017 PROCESS geocode //
1018 __GENEOF_7a
1019 cat << __GENEOF_7b
1020
1021
1022 # ------------------------------------------
1023 # SLANT TO HEIGHT CONVERSION
1024 # ------------------------------------------
1025
1026 c
1027 c S2H_METHOD ambiguity //
1028 c S2H_METHOD rodriguez //
1029 S2H_METHOD schwabisch // adviced!
1030 S2H_NPOINTS 200 //
1031 S2H_DEGREE1D 2 //
1032 S2H_NHEIGHTS 3 //
1033 S2H_DEGREE2D 5 //
1034 S2H_OUT_HEI $DATAOUTDIR/heights.raw //
1035 C S2H_OUT_HEI $DATAOUTDIR/s2h_heights.raw //
1036 C S2H_OUT_LAM $DATAOUTDIR/s2h_lambda.raw //
1037 C S2H_OUT_PHI $DATAOUTDIR/s2h_phi.raw //
1038
1039
1040 # ------------------------------------------
1041 # GEOCODING
1042 # ------------------------------------------
1043
1044 GEO_OUT_PHI $DATAOUTDIR/phi.raw //
1045 GEO_OUT_LAM $DATAOUTDIR/lambda.raw //
1046 c //
1047 c //
1048 STOP // mandatory
1049 # vim: syntax=doris
1050 __GENEOF_7b
1051 }
1052 #
1053 #
1054 GEN_8()
1055 {
1056 fn=$INPUT_8
1057 GENERAL
1058 FILES
1059 cat << __GENEOF_8a
1060 PROCESS ???
1061 __GENEOF_8a
1062 cat << __GENEOF_8b
1063
1064
1065 # ------------------------------------------
1066 # ??
1067 # ------------------------------------------
1068
1069 c CARDS GO HERE
1070 c CARDS GO HERE
1071 c CARDS GO HERE
1072 c //
1073 c //
1074 STOP // mandatory
1075 __GENEOF_8b
1076 }
1077 #
1078 #
1079 GEN_9()
1080 {
1081 fn=$INPUT_9
1082 cat << __GENEOF_9a
1083 ######################################################################################
1084 ### This is a (full scene) quicklook processing. To quickly see the ifg etc, ###
1085 ### use "run -ql (or equivalently run -s9)". ###
1086 ### this will run -s1; run -s2; run -s9 (i.e, read files, process them ###
1087 ### Therefore, also edit step1,2 input (run -e1; run -e2) to set input filenames. ###
1088 ### You can set the DBOW crop there. If master.res or slave.res already exist ###
1089 ### then these steps are skipped. ###
1090 ### ###
1091 ### Basically we read the data, then automated coregistration with lower quality, ###
1092 ### fast resampling to short output format, and form the interferogram, flatten it ###
1093 ### and compute the coherence image, all heavily multilooked. ###
1094 ### NO spektral filtering. Experimental... ###
1095 ### ###
1096 ### This takes about 6 minutes for a quarter scene. ###
1097 ### ###
1098 ###%// BK 15-Sep-2003 ###
1099 ######################################################################################
1100 SCREEN info // level of output to standard out
1101 BEEP warning // level of beeping
1102 PREVIEW on // SUNraster files with cpxfiddle
1103 MEMORY 200 // MB
1104 OVERWRITE ON // overwrite existing files
1105 BATCH ON // non-interactive
1106 LISTINPUT ON // copy this file to log
1107 ORB_INTERP POLYFIT 3 // orbit interpolation method
1108 LOGFILE quicklook.log //
1109 M_RESFILE master_QL.res // after run -s1, run -s2 the files are
1110 S_RESFILE slave_QL.res // copied to these
1111 I_RESFILE ifg_QL.res // names
1112 ###
1113 ###
1114 PROCESS coarseorb // no cards later
1115 PROCESS coarsecorr // based on correlation
1116 PROCESS fine // fine coregistration
1117 PROCESS coregpm // estimate coregistration param.
1118 PROCESS resample // slave
1119 PROCESS interfero //
1120 PROCESS comprefpha // estimate flatearth param.
1121 PROCESS subtrrefpha //
1122 PROCESS coherence //
1123 ###
1124 ###
1125 CC_METHOD magfft // default
1126 CC_NWIN 21 // number of windows
1127 CC_WINSIZE 256 256 // size of large windows
1128 CC_INITOFF orbit // use result of orbits
1129 ###
1130 ###
1131 FC_METHOD magfft //
1132 FC_NWIN 501 // number of windows
1133 FC_WINSIZE 64 64 // size of small windows
1134 FC_ACC 8 8 // search window, 2^n
1135 FC_INITOFF coarsecorr // use result of coarse
1136 FC_OSFACTOR 8 // oversampling factor
1137 ###
1138 ###
1139 CPM_THRESHOLD 0.2 //
1140 CPM_DEGREE 2 //
1141 CPM_WEIGHT quadratic // none | linear | quadratic
1142 CPM_MAXITER 350 // automated removal, max 20 iterations
1143 CPM_K_ALPHA 5.00 // automated removal crit. value
1144 ###
1145 ###
1146 RS_METHOD tri // linear interpolation
1147 RS_OUT_FILE $DATAOUTDIR/$SLAVE.resampled_QL
1148 RS_OUT_FORMAT ci2 //
1149 RS_SHIFTAZI off // doppler
1150 ###
1151 ###
1152 INT_METHOD old //
1153 INT_OUT_CINT $DATAOUTDIR/${MASTER}_${SLAVE}.cint_QL // optional complex int.
1154 INT_MULTILOOK 10 2 // 20 x 20 m
1155 ###
1156 ###
1157 FE_METHOD porbits //
1158 FE_DEGREE 5 //
1159 FE_NPOINTS 301 //
1160 ###
1161 ###
1162 SRP_OUT_CINT $DATAOUTDIR/${MASTER}_${SLAVE}.srp_QL //
1163 SRP_MULTILOOK 3 3 // total 60x60 m
1164 ###
1165 ###
1166 COH_METHOD refphase_only // options: refphase_only or include_refdem
1167 COH_OUT_COH $DATAOUTDIR/${MASTER}_${SLAVE}.coh_QL // optional real
1168 COH_MULTILOOK 30 6 //
1169 COH_WINSIZE 30 6 //
1170 ###
1171 STOP // mandatory
1172 # vim: syntax=doris
1173 __GENEOF_9a
1174 }
1175
1176
1177 GENERATE()
1178 {
1179 #BK 19-Jan-2001: set resultfiles -M -S option
1180 MASTERRES="$MASTER.res"
1181 SLAVERES="$SLAVE.res"
1182 INTERFRES="${MASTER}_${SLAVE}.res"
1183
1184 # Workdir
1185 if [ ! -d $WORKDIR ]; then
1186 mkdir $WORKDIR
1187 echo "${bn}: ***INFO*** workdir: $WORKDIR created."
1188 fi
1189 # Directory where input prototypes are stored.
1190 if [ -d $INPUTDIR ]; then
1191 echo "${bn}: ***WARNING*** inputdir: $INPUTDIR existed, I renamed it to $INPUTDIR.$$."
1192 mv -f $INPUTDIR $INPUTDIR.$$
1193 fi
1194 mkdir $INPUTDIR
1195
1196 # Output directory for redirected standard output.
1197 if [ -d $OUTPUTDIR ]; then
1198 echo "${bn}: ***WARNING*** outputdir: $OUTPUTDIR existed, I renamed it to $OUTPUTDIR.$$"
1199 mv -f $OUTPUTDIR $OUTPUTDIR.$$
1200 fi
1201 mkdir $OUTPUTDIR
1202
1203 # Output directory for matrices.
1204 if [ ! -d $DATAOUTDIR ]; then
1205 mkdir $DATAOUTDIR
1206 fi
1207
1208 # Test if executable is present.
1209 #if [ ! -x $SWDIR/$PROG ]; then
1210 # echo "executable: $SWDIR/$PROG not present."
1211 # if [ ! -x $WORKDIR/$PROG ]; then
1212 # echo "also not in workdir: $WORKDIR, exiting."
1213 # exit 4
1214 # fi
1215 # echo "Continuing"
1216 #fi
1217 #if [ -x $WORKDIR/$PROG ]; then
1218 # echo "executable already present in: $WORKDIR/$PROG, I renamed it to $WORKDIR/$PROG.$$"
1219 # mv -f $WORKDIR/$PROG $WORKDIR/$PROG.$$
1220 #fi
1221
1222 # cp $SWDIR/$PROG $WORKDIR/$PROG
1223 GEN_1 > $INPUTDIR/$INPUT_1
1224 GEN_2 > $INPUTDIR/$INPUT_2
1225 GEN_3 > $INPUTDIR/$INPUT_3
1226 GEN_4 > $INPUTDIR/$INPUT_4
1227 GEN_5 > $INPUTDIR/$INPUT_5
1228 GEN_6 > $INPUTDIR/$INPUT_6
1229 GEN_7 > $INPUTDIR/$INPUT_7
1230 # GEN_8 > $INPUTDIR/$INPUT_8
1231 GEN_9 > $INPUTDIR/$INPUT_9
1232
1233 echo "${bn}: ***INFO*** generation of inputfiles finished."
1234 echo "${bn}: ***INFO*** inputdir: $INPUTDIR"
1235 echo "${bn}: ***INFO*** outputdir (stout): $OUTPUTDIR"
1236 echo "${bn}: ***INFO*** outputdir (matrices): $DATAOUTDIR"
1237 #
1238 # BK 25-feb-2000
1239 # 2nd check is not ok, should check with whence?
1240 #
1241 if [ -x $PROGINCWD ]; then
1242 echo "${bn}: ***INFO*** Using executable in cwd: $PROGINCWD"
1243 else
1244 echo "${bn}: ***INFO*** Using executable in path: $PROG"
1245 echo "${bn}: ***INFO*** or (if -d option present): $PROGDEBUG"
1246 fi
1247 echo "${bn}: ***TIP*** run -e1; run -s1"
1248 exit 0
1249 }
1250
1251
1252 ##################################################
1253 # START SCRIPT ---------------
1254 # Set viewer (if no default environment variables: PAGER and EDITOR) ###
1255 # Set PAGER (VIEWER) and EDITOR if not default (prefer less and nedit)
1256 if [ "X$PAGER" = "X" ]; then
1257 #default should be specified in your login resource file.
1258 echo "environment variable PAGER not set, please set this variable"
1259 echo "to specify your prefered viewer. For example in csh shell type:"
1260 echo " setenv PAGER more"
1261 echo " setenv PAGER less (adviced)"
1262 #PAGER="more"
1263 PAGER="less"
1264 $PAGER 2>&1
1265 if [ "$status" = "0" ]; then
1266 echo "PAGER: $PAGER found in path..."
1267 else
1268 PAGER="more"
1269 echo "using PAGER $PAGER"
1270 fi
1271 fi
1272 VIEWER="$PAGER"
1273 if [ "X$EDITOR" = "X" ]; then
1274 #default should be specified in your login resource file.
1275 echo "environment variable EDITOR not set, please set this variable"
1276 echo "to specify your prefered editor. For example in csh shell type:"
1277 echo " setenv EDITOR vi"
1278 echo " setenv EDITOR nedit"
1279 echo " setenv EDITOR xemacs"
1280 EDITOR="nedit"
1281 $EDITOR 2>&1
1282 if [ "$status" = "0" ]; then
1283 echo "EDITOR: $EDITOR found in path..."
1284 else
1285 EDITOR="vi"
1286 echo "using EDITOR $EDITOR"
1287 fi
1288 fi
1289
1290 # Assume template inputfile are generated, obtain name of files...
1291 # only for view?
1292 if [ "$DOGENERATE" = "0" ]; then
1293 if [ -r $INPUTDIR/$INPUT_1 ]; then
1294 MASTERRES=`awk '/M_RESFILE/ {print $2}' $INPUTDIR/$INPUT_1`
1295 SLAVERES=`awk '/S_RESFILE/ {print $2}' $INPUTDIR/$INPUT_1`
1296 INTERFRES=`awk '/I_RESFILE/ {print $2}' $INPUTDIR/$INPUT_1`
1297 fi
1298 fi
1299
1300 # Help wanted?
1301 #if [ $# -eq 1 -a "$1" = "-h" ]; then
1302 if [ "$1" = "-h" ]; then
1303 name=`NAME`
1304 synopsis=`SYNOPSIS`
1305 MANPG | $PAGER
1306 exit
1307 fi
1308
1309
1310 ### Simple options parsing by bert... since getopts not known on my cygwin sh shell (?)
1311 ### This is slower and not tested properly like lib function, but seems to work.
1312 ### Also it doesn't incorporate numargs exceptions checks.
1313 ### Bert Kampes, 03-Feb-2002.
1314 #1) delete all spaces from input option string, delimiters are - signs
1315 #2) insert spaces before - signs (use QQQ to keep spaces in OPTARG)
1316 #3) for each word, obtain option and argument
1317 #INPUTARGS=`echo "$*" | sed 's/ /QQQ/g' | sed 's/-/ -/g'`
1318 INPUTARGS=`echo "$*" | sed 's/ //g' | sed 's/-/ -/g'`
1319 for OPTION in $INPUTARGS; do
1320 OPTKEY=`echo $OPTION | awk '{print substr($1,1,2)}'`
1321 OPTARG=`echo $OPTION | awk '{print substr($1,3)}'`
1322 # OPTARG=`echo $OPTION | awk '{print substr($1,3)}' | sed 's/QQQ/ /g'`
1323 # echo "OPTKEY: "XXX${OPTKEY}XXX
1324 # echo "OPTARG: "XXX${OPTARG}XXX
1325 # if test "$OPTKEY"="-f"; then
1326 # INPUT="$OPTARG"
1327 # fi
1328 ### quicklook run step 9
1329 case $OPTKEY in
1330 -f) INPUT=$OPTARG ;;
1331 -d) PROG=$PROGDEBUG ;;
1332 -s) STEP=$OPTARG ;;
1333 -q) STEP=9 ;;
1334 -e) EDIT=$OPTARG ;;
1335 -v) VIEW=$OPTARG ;;
1336 -r) RESULT=$OPTARG ;;
1337 -g) DOGENERATE="1" ;;
1338 -M) MASTER=$OPTARG ;;
1339 -S) SLAVE=$OPTARG ;;
1340 -A) AUTHOR=$OPTARG ;;
1341 -B) BASELINE=$OPTARG ;;
1342 -R) REMARKS=$OPTARG ;;
1343 -h) USAGE ;;
1344 \?) USAGE ;;
1345 *) echo "wrong input argument"; USAGE ;;
1346 esac
1347 done
1348
1349 ### OLD KSH getopts...
1350 ### Get other options.
1351 ###OPTIONS="f:s:e:v:r:M:S:A:B:R:gd"
1352 ###while getopts $OPTIONS OPT; do
1353 ### case $OPT in
1354 ### f) INPUT=$OPTARG ;;
1355 ### d) PROG=$PROGDEBUG ;;
1356 ### s) STEP=$OPTARG ;;
1357 ### e) EDIT=$OPTARG ;;
1358 ### v) VIEW=$OPTARG ;;
1359 ### r) RESULT=$OPTARG ;;
1360 ### g) DOGENERATE="1" ;;
1361 ### M) MASTER=$OPTARG ;;
1362 ### S) SLAVE=$OPTARG ;;
1363 ### A) AUTHOR=$OPTARG ;;
1364 ### B) BASELINE=$OPTARG ;;
1365 ### R) REMARKS=$OPTARG ;;
1366 ### \?) USAGE ;;
1367 ### esac
1368 ###done
1369
1370 # Check any input.
1371 if [ "$1" = "" ]; then
1372 USAGE
1373 fi
1374
1375 # -g option.
1376 if [ "$DOGENERATE" = "1" ]; then
1377 GENERATE
1378 fi
1379
1380 # -e option.
1381 case $EDIT in
1382 1) if [ -r $INPUTDIR/$INPUT_1 ]; then
1383 $EDITOR $INPUTDIR/$INPUT_1
1384 #echo "don't forget to mountcd";
1385 echo "to run, use: $bn -s$EDIT"
1386 else
1387 echo "${bn}: ***ERROR*** file $INPUTDIR/$INPUT_1 not found."
1388 fi;;
1389 2) if [ -r $INPUTDIR/$INPUT_2 ]; then
1390 $EDITOR $INPUTDIR/$INPUT_2
1391 #echo "don't forget to mountcd"
1392 echo "to run, use: $bn -s$EDIT"
1393 else
1394 echo "${bn}: ***ERROR*** file $INPUTDIR/$INPUT_2 not found."
1395 fi;;
1396 3) if [ -r $INPUTDIR/$INPUT_3 ]; then
1397 $EDITOR $INPUTDIR/$INPUT_3
1398 echo "to run, use: $bn -s$EDIT"
1399 else
1400 echo "${bn}: ***ERROR*** file $INPUTDIR/$INPUT_3 not found."
1401 fi;;
1402 4) if [ -r $INPUTDIR/$INPUT_4 ]; then
1403 $EDITOR $INPUTDIR/$INPUT_4
1404 echo "to run, use: $bn -s$EDIT"
1405 else
1406 echo "${bn}: ***ERROR*** file $INPUTDIR/$INPUT_4 not found."
1407 fi;;
1408 5) if [ -r $INPUTDIR/$INPUT_5 ]; then
1409 $EDITOR $INPUTDIR/$INPUT_5
1410 echo "to run, use: $bn -s$EDIT"
1411 else
1412 echo "${bn}: ***ERROR*** file $INPUTDIR/$INPUT_5 not found."
1413 fi;;
1414 6) if [ -r $INPUTDIR/$INPUT_6 ]; then
1415 $EDITOR $INPUTDIR/$INPUT_6
1416 echo "to run, use: $bn -s$EDIT"
1417 else
1418 echo "${bn}: ***ERROR*** file $INPUTDIR/$INPUT_6 not found."
1419 fi;;
1420 7) if [ -r $INPUTDIR/$INPUT_7 ]; then
1421 $EDITOR $INPUTDIR/$INPUT_7
1422 echo "to run, use: $bn -s$EDIT"
1423 else
1424 echo "${bn}: ***ERROR*** file $INPUTDIR/$INPUT_7 not found."
1425 fi;;
1426 8) if [ -r $INPUTDIR/$INPUT_8 ]; then
1427 $EDITOR $INPUTDIR/$INPUT_8
1428 echo "to run, use: $bn -s$EDIT"
1429 else
1430 echo "${bn}: ***ERROR*** file $INPUTDIR/$INPUT_8 not found."
1431 fi;;
1432 9) if [ -r $INPUTDIR/$INPUT_9 ]; then
1433 $EDITOR $INPUTDIR/$INPUT_9
1434 echo "to run, use: $bn -s$EDIT"
1435 else
1436 echo "${bn}: ***ERROR*** file $INPUTDIR/$INPUT_9 not found."
1437 fi;;
1438 999) ;;
1439 *) echo "wrong -e(dit) argument"; USAGE ;;
1440 esac
1441
1442
1443 # -s option.
1444 if [ "$STEP" != "999" ]; then
1445 case $STEP in
1446 1) INPUT=$INPUT_1 ;;
1447 2) INPUT=$INPUT_2 ;;
1448 3) INPUT=$INPUT_3 ;;
1449 4) INPUT=$INPUT_4 ;;
1450 5) INPUT=$INPUT_5 ;;
1451 6) INPUT=$INPUT_6 ;;
1452 7) INPUT=$INPUT_7 ;;
1453 8) INPUT=$INPUT_8 ;;
1454 9) INPUT=$INPUT_9 ;;
1455 # 999) ;;
1456 *) echo "wrong -s argument"; USAGE ;;
1457 esac
1458
1459 #substitution problem on capone with sh? (simple solution change name...)
1460 #%// BK 16-Jun-2003
1461 #OUTFILE=$OUTPUTDIR/out.${INPUT#input.}
1462 OUTFILE=$OUTPUTDIR/stdout.$INPUT
1463 INPUT=$INPUTDIR/$INPUT
1464 ### Check if there is an inputfile.
1465 if [ ! -r $INPUT ]; then
1466 echo "${bn}: ***ERROR*** Inputfile: $INPUT not readable, exiting"
1467 exit
1468 fi;
1469
1470 ### Check if output allready exists.
1471 if [ -f $OUTFILE ]; then
1472 echo "${bn}: ***WARNING*** (redirected) outputfile: $OUTFILE existed, I renamed it to $OUTFILE.$$"
1473 mv -f $OUTFILE $OUTFILE.$$
1474 fi;
1475
1476 ### if no -d option and prog "doris" is present in cwd, use it.
1477 if [ -x $PROGINCWD ] && [ $PROG != $PROGDEBUG ]; then
1478 PROG=$PROGINCWD
1479 fi;
1480
1481 ### If quicklook processing, first run step1 and step2 to read the data
1482 ### this means step=9, and run that after that!
1483 touch $OUTFILE
1484 if [ "$STEP" = "9" ]; then
1485 touch $LOGFILE
1486 mv $LOGFILE $LOGFILE.tmp
1487 echo " "
1488 echo " - - PERFORMING QUICKLOOK PROCESSING - -"
1489 echo " "
1490 echo " First I will do: run -s1, then run -s2 (readfiles and crop)"
1491 echo " Then I will copy the resultfiles to new QL names"
1492 echo " Then I will do: run -s9 (the steps to get the interferogram)"
1493 echo " "
1494 echo " I will pause after the master has been read, so you can change the CDROM"
1495 echo " "
1496 echo " ---------------------------------------------------------------" >> $OUTFILE
1497 echo " --- START STEP 1 for QUICKLOOK --------------------------------" >> $OUTFILE
1498 echo " ---------------------------------------------------------------" >> $OUTFILE
1499 if [ -f master_QL.res ]; then
1500 echo " SKIPPING run -s1 since file master_QL.res exists (master has been read)"
1501 else
1502 $PROG $INPUTDIR/$INPUT_1 >> $OUTFILE
1503 if [ ! -f $MASTERRES ]; then
1504 echo "file $MASTERRES does not exist. Exiting."
1505 mv $LOGFILE.tmp $LOGFILE
1506 exit 1
1507 fi;
1508 cp $MASTERRES master_QL.res
1509 fi;
1510 echo " "
1511 echo " *************************************************************"
1512 echo " *** Pausing after reading master so you can change cdrom. ***"
1513 echo " *** Press <ENTER> when ready to proceed. ***"
1514 echo " *************************************************************"
1515 echo " "
1516 read key
1517 echo " "
1518 echo " ---------------------------------------------------------------" >> $OUTFILE
1519 echo " --- START STEP 2 for QUICKLOOK --------------------------------" >> $OUTFILE
1520 echo " ---------------------------------------------------------------" >> $OUTFILE
1521 if [ -f slave_QL.res ]; then
1522 echo " SKIPPING run -s1 since file slave_QL.res exists (slave has been read)"
1523 else
1524 $PROG $INPUTDIR/$INPUT_2 >> $OUTFILE
1525 if [ ! -f $SLAVERES ]; then
1526 echo "file $SLAVERES does not exist. Exiting."
1527 mv $LOGFILE.tmp $LOGFILE
1528 exit 1
1529 fi;
1530 cp $SLAVERES slave_QL.res
1531 fi;
1532 echo " "
1533 echo " Done with reading slave (and master). Proceeding with quicklook"
1534 echo " First copying master and slave result file to master_QL.res, slave_QL.res"
1535 echo " "
1536 echo " ---------------------------------------------------------------" >> $OUTFILE
1537 echo " --- START STEP 9 for QUICKLOOK --------------------------------" >> $OUTFILE
1538 echo " --- (first moving the output files of run -s1 and run -s2 -----" >> $OUTFILE
1539 echo " ---------------------------------------------------------------" >> $OUTFILE
1540 mv $LOGFILE quicklook.log
1541 mv $LOGFILE.tmp $LOGFILE
1542 if [ -f ifg_QL.res ]; then
1543 echo "file ifg_QL.res already exists??? continuing..."
1544 fi;
1545 fi;
1546
1547 ### Execute program (use >> for quicklook, is an empty touched file anyway)
1548 echo " $PROG $INPUT >> $OUTFILE "
1549 echo " "
1550 $PROG $INPUT >> $OUTFILE
1551 echo " "
1552 echo " Redirected output in file: $OUTFILE"
1553 echo " view with: run -v$STEP"
1554
1555 ### Save some work for user / tips ###
1556 if [ "$STEP" = "1" ]; then
1557 # echo " don't forget to umountcd"
1558 echo " NOTE: before run -s1, you can do run -ql to get a quicklook processing."
1559 echo " which will run step 1 and 2 if not done already."
1560 fi;
1561 if [ "$STEP" = "9" ]; then
1562 echo " "
1563 echo " Moving quicklook output to QL sub directory."
1564 echo " "
1565 mkdir QL
1566 mv *ras *ras.sh *_QL* *quicklook* ./QL
1567 fi;
1568 fi;
1569
1570
1571 ### -v option.
1572 case $VIEW in
1573 1) if [ -r $OUTPUTDIR/stdout.$INPUT_1 ]; then
1574 $VIEWER $OUTPUTDIR/stdout.$INPUT_1
1575 else
1576 echo "${bn}: ***ERROR*** file $OUTPUTDIR/stdout.$INPUT_1 not found."
1577 fi;;
1578 2) if [ -r $OUTPUTDIR/stdout.$INPUT_2 ]; then
1579 $VIEWER $OUTPUTDIR/stdout.$INPUT_2
1580 else
1581 echo "${bn}: ***ERROR*** file $OUTPUTDIR/stdout.$INPUT_2 not found."
1582 fi;;
1583 3) if [ -r $OUTPUTDIR/stdout.$INPUT_3 ]; then
1584 $VIEWER $OUTPUTDIR/stdout.$INPUT_3
1585 else
1586 echo "${bn}: ***ERROR*** file $OUTPUTDIR/stdout.$INPUT_3 not found."
1587 fi;;
1588 4) if [ -r $OUTPUTDIR/stdout.$INPUT_4 ]; then
1589 $VIEWER $OUTPUTDIR/stdout.$INPUT_4
1590 else
1591 echo "${bn}: ***ERROR*** file $OUTPUTDIR/stdout.$INPUT_4 not found."
1592 fi;;
1593 5) if [ -r $OUTPUTDIR/stdout.$INPUT_5 ]; then
1594 $VIEWER $OUTPUTDIR/stdout.$INPUT_5
1595 else
1596 echo "${bn}: ***ERROR*** file $OUTPUTDIR/stdout.$INPUT_5 not found."
1597 fi;;
1598 6) if [ -r $OUTPUTDIR/stdout.$INPUT_6 ]; then
1599 $VIEWER $OUTPUTDIR/stdout.$INPUT_6
1600 else
1601 echo "${bn}: ***ERROR*** file $OUTPUTDIR/stdout.$INPUT_6 not found."
1602 fi;;
1603 7) if [ -r $OUTPUTDIR/stdout.$INPUT_7 ]; then
1604 $VIEWER $OUTPUTDIR/stdout.$INPUT_7
1605 else
1606 echo "${bn}: ***ERROR*** file $OUTPUTDIR/stdout.$INPUT_7 not found."
1607 fi;;
1608 8) if [ -r $OUTPUTDIR/stdout.$INPUT_8 ]; then
1609 $VIEWER $OUTPUTDIR/stdout.$INPUT_8
1610 else
1611 echo "${bn}: ***ERROR*** file $OUTPUTDIR/stdout.$INPUT_8 not found."
1612 fi;;
1613 9) if [ -r $OUTPUTDIR/stdout.$INPUT_9 ]; then
1614 $VIEWER $OUTPUTDIR/stdout.$INPUT_9
1615 else
1616 echo "${bn}: ***ERROR*** file $OUTPUTDIR/stdout.$INPUT_9 not found."
1617 fi;;
1618 999) ;;
1619 *) echo "wrong -v argument"; USAGE ;;
1620 esac
1621
1622
1623 cd $WORKDIR
1624 # -r option.
1625 case $RESULT in
1626 1) if [ -r $MASTERRES ]; then
1627 $EDIT $MASTERRES
1628 else
1629 echo "${bn}: ***ERROR*** file $MASTERRES not found."
1630 fi;;
1631 2) if [ -r $SLAVERES ]; then
1632 $EDIT $SLAVERES
1633 else
1634 echo "${bn}: ***ERROR*** file $SLAVERES not found."
1635 fi;;
1636 3) if [ -r $INTERFRES ]; then
1637 $EDIT $INTERFRES
1638 else
1639 echo "${bn}: ***ERROR*** file $INTERFRES not found."
1640 fi;;
1641 4) if [ -r $LOGFILE ]; then
1642 $EDIT $LOGFILE
1643 else
1644 echo "${bn}: ***ERROR*** file $LOGFILE not found."
1645 fi;;
1646 999) ;;
1647 *) echo "wrong -v argument"; USAGE ;;
1648 esac
1649
1650
1651 exit 0
1652
1653
1654 ### RCS #####
1655 # $Source: /users/kampes/DEVELOP/DORIS/doris/bin/RCS/run,v $
1656 # $Revision: 4.01 $
1657 # $Author: FvL $
1658 # $Date: 2008/12/17 12:02:06 $
1659 # $Log: run,v $
1660 # Revision 4.01 2008/12/17 12:02:06 FvL
1661 # Update to doris v4.01
1662 #
1663 # Revision 3.47 2005/09/20 12:02:06 kampes
1664 # *** empty log message ***
1665 #
1666 # Revision 3.46 2005/09/20 11:02:16 kampes
1667 # ERR changed to ERROR
1668 #
1669 # Revision 3.45 2005/08/25 13:38:01 kampes
1670 # *** empty log message ***
1671 #
1672 # Revision 3.44 2005/08/25 07:37:50 kampes
1673 # *** empty log message ***
1674 #
1675 # Revision 3.43 2005/08/24 15:12:40 kampes
1676 # *** empty log message ***
1677 #
1678 # Revision 3.42 2005/08/24 11:35:32 kampes
1679 # *** empty log message ***
1680 #
1681 # Revision 3.41 2005/08/16 11:46:26 kampes
1682 # update for v3.16
1683 #
1684 # Revision 3.40 2005/07/28 09:28:48 kampes
1685 # *** empty log message ***
1686 #
1687 # Revision 3.39 2005/04/16 10:08:05 kampes
1688 # *** empty log message ***
1689 #
1690 # Revision 3.38 2005/04/16 10:00:37 kampes
1691 # added CRD_OUT_DEM_LP
1692 #
1693 # Revision 3.37 2005/04/08 14:09:53 kampes
1694 # *** empty log message ***
1695 #
1696 # Revision 3.36 2005/03/08 14:04:55 kampes
1697 # *** empty log message ***
1698 #
1699 # Revision 3.35 2004/09/20 08:05:59 kampes
1700 # *** empty log message ***
1701 #
1702 # Revision 3.34 2004/09/15 10:49:03 kampes
1703 # *** empty log message ***
1704 #
1705 # Revision 3.33 2004/09/13 08:20:57 kampes
1706 # *** empty log message ***
1707 #
1708 # Revision 3.32 2004/08/24 15:33:15 kampes
1709 # *** empty log message ***
1710 #
1711 # Revision 3.31 2004/08/09 09:46:53 kampes
1712 # *** empty log message ***
1713 #
1714 # Revision 3.30 2004/08/03 13:22:56 kampes
1715 # increased default memory usage
1716 #
1717 # Revision 3.29 2004/06/17 09:38:54 kampes
1718 # *** empty log message ***
1719 #
1720 # Revision 3.28 2004/06/03 06:19:52 kampes
1721 # *** empty log message ***
1722 #
1723 # Revision 3.27 2004/05/13 18:28:58 kampes
1724 # *** empty log message ***
1725 #
1726 # Revision 3.26 2004/01/20 15:08:03 kampes
1727 # added oversampling
1728 #
1729 # Revision 3.25 2003/12/22 06:50:51 kampes
1730 # added knab windows card
1731 #
1732 # Revision 3.24 2003/12/15 07:56:41 kampes
1733 # added DBOW_GEO card
1734 #
1735 # Revision 3.23 2003/11/27 16:14:54 kampes
1736 # *** empty log message ***
1737 #
1738 # Revision 3.22 2003/11/27 16:01:11 kampes
1739 # *** empty log message ***
1740 #
1741 # Revision 3.21 2003/11/27 15:39:42 kampes
1742 # *** empty log message ***
1743 #
1744 # Revision 3.20 2003/09/15 13:27:54 kampes
1745 # *** empty log message ***
1746 #
1747 # Revision 3.19 2003/09/15 13:11:26 kampes
1748 # *** empty log message ***
1749 #
1750 # Revision 3.18 2003/09/15 12:24:12 kampes
1751 # *** empty log message ***
1752 #
1753 # Revision 3.17 2003/09/15 10:14:08 kampes
1754 # added quicklook
1755 #
1756 # Revision 3.16 2003/09/12 15:12:46 kampes
1757 # added quicklook as s9
1758 #
1759 # Revision 3.15 2003/09/01 15:33:33 kampes
1760 # *** empty log message ***
1761 #
1762 # Revision 3.14 2003/09/01 06:42:56 kampes
1763 # *** empty log message ***
1764 #
1765 # Revision 3.13 2003/08/28 17:12:36 kampes
1766 # added coregpm maxioter
1767 #
1768 # Revision 3.12 2003/08/14 08:45:58 kampes
1769 # added jers info
1770 #
1771 # Revision 3.11 2003/06/24 08:32:38 kampes
1772 # release version
1773 #
1774 # Revision 3.10 2003/06/17 13:24:00 kampes
1775 # *** empty log message ***
1776 #
1777 # Revision 3.9 2003/06/16 14:59:10 kampes
1778 # increased default numwindows fine coreg.
1779 #
1780 # Revision 3.8 2003/06/16 11:44:33 kampes
1781 # seemed to be a problem with run file variable name substitution.
1782 #
1783 # Revision 3.7 2003/06/16 07:05:11 kampes
1784 # new version
1785 #
1786 # Revision 3.6 2003/04/15 06:31:58 kampes
1787 # *** empty log message ***
1788 #
1789 # Revision 3.5 2003/04/14 06:35:15 kampes
1790 # doris release 3.5
1791 #
1792 # Revision 1.60 2001/09/28 14:09:57 14:09:57 kampes (B.M.Kampes)
1793 # release doris 3.2
1794 #
1795 # Revision 1.57 2000/12/07 13:53:44 13:53:44 kampes (B.M.Kampes)
1796 # release 3
1797 #
1798 # Revision 1.56 2000/10/24 13:46:20 13:46:20 kampes (B.M.Kampes)
1799 # doris2.6
1800 #
1801 # Revision 1.42 2000/04/05 11:37:13 11:37:13 kampes (B.M.Kampes)
1802 # range filtering
1803 #
1804 # Revision 1.41 2000/02/25 15:36:20 15:36:20 kampes (B.M.Kampes)
1805 # cohwinsize added.
1806 #
1807 # Revision 1.40 2000/02/25 09:45:26 09:45:26 kampes (B.M.Kampes)
1808 # check whence
1809 #
1810 # Revision 1.39 2000/02/16 17:44:49 17:44:49 kampes (B.M.Kampes)
1811 # new cards, refdem, check release 2.2
1812 #
1813 # Revision 1.37 2000/02/09 11:22:35 11:22:35 kampes (B.M.Kampes)
1814 # new cards
1815 #
1816 # Revision 1.32 2000/01/06 09:55:04 09:55:04 kampes (B.M.Kampes)
1817 # use exe in cwd
1818 #
1819 # Revision 1.31 2000/01/06 09:25:06 09:25:06 kampes (B.M.Kampes)
1820 # author added
1821 #
1822 # Revision 1.29 99/12/20 14:35:45 14:35:45 kampes (B.M.Kampes)
1823 # synopsis updated
1824 #
1825 # Revision 1.28 99/12/16 13:53:03 13:53:03 kampes (B.M.Kampes)
1826 # some new options -d for use with 1 script
1827 #
1828 # Revision 1.27 99/12/13 16:50:42 16:50:42 kampes (B.M.Kampes)
1829 # *** empty log message ***
1830 #
1831 # Revision 1.26 99/12/09 16:06:48 16:06:48 kampes (B.M.Kampes)
1832 # mountcds
1833 #
1834 # Revision 1.25 99/12/09 15:11:44 15:11:44 kampes (B.M.Kampes)
1835 # bugfixed
1836 #
1837 # Revision 1.24 99/12/03 09:39:31 09:39:31 kampes (B.M.Kampes)
1838 # new setup steps, reviewed ok version.
1839 #
1840 #
1841 # Revision 1.16 99/11/02 11:34:53 11:34:53 kampes (B.M.Kampes)
1842 # doris v1.2 s2h geocoding
1843 #
1844 # Revision 1.1 99/09/13 15:57:22 15:57:22 kampes (B.M.Kampes)
1845 # initial version
1846 #
1847 #############