home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 4 / AUCD4.iso / art_design / imaging / widget / Docs / EpicHead next >
Text File  |  1997-06-22  |  30KB  |  614 lines

  1. NAME:
  2.   HEADER - Format specifications for EPIC standard image header
  3.  
  4. 2 COMMENTS:
  5.  
  6. (1) This format is primarily intended for images stored on magnetic
  7. tape (see (4) for disk). Each image is stored in a single unlabeled tape 
  8. file. Each file ends with a tape end-of-file mark. A double end-of-file 
  9. mark appears at the end of the last image file.
  10.  
  11. (2) Each image consists of a header followed by the image data itself.
  12. The header consists of at least 1 physical record each of which is of
  13. length 1024 bytes.
  14. The image data consists of NL physical records of data each
  15.  
  16. (((NP*NBIT+7)/8+3)/4)*4 bytes long.
  17.  
  18. NL = Number of lines in image
  19. NP = Number of pixels in each image line
  20. NBIT = Number of bits/pixel
  21. NH = Number of header records (1024 bytes each)
  22.  
  23. (3) At present NBIT may have the following values -
  24.         1 - Integer
  25.         8 - Unsigned integer (0-255)
  26.         16 - Signed integer (note that the most significant byte should be
  27.              first on the tape)
  28.         32 - VAX format real
  29.         64 - VAX format complex 
  30.         64 - VAX format double precision real
  31.        128 - VAX format double precision complex 
  32.  
  33. (Note that real and complex images are not normally transferred between
  34. differing computer types).
  35.  
  36. (4) When the image is read to disk the header should be retained but
  37. the actual format in which the data is stored on the disk may vary with
  38. the computer and the operating system. For any given computer only 1
  39. disk image data format should ever be used.
  40.  
  41. On the VAX the format is very similar to that used on the tape. 
  42. The number of bytes allocated to each line is the necessary number rounded
  43. up to the nearest 4 byte boundary. The number of bytes set aside for header 
  44. records is the necessary number rounded up to the nearest multiple of 
  45. bytes_per_line. Using integer arithmetic
  46.  
  47. bytes_per_line = (4 * NP * NBIT + 31)/32
  48. equivalent_header_lines = (NH * 1024 + bytes_per_line - 1)/bytes_per_line
  49.  
  50. The header records are then packed into the first NH*1024 bytes in the file.
  51. To access a data line (numbered from 1) you start at the byte in the file 
  52. given by (line_number - 1) * bytes_per_line + equivalent_header_lines.
  53.  
  54. Note although the header records and data lines start at particular bytes in 
  55. the file as described above, the file is defined with a 512 byte record 
  56. structure for VMS.
  57.  
  58. (5) The header should contain only valid ascii characters.
  59.  
  60. (6) A header record should be initialised with blanks before its first use.
  61.  
  62. (7) Each header consists of a number of sets of header records each of
  63. length 1024 bytes.
  64. At present these are -
  65. Fixed data - 1 or 2 records
  66. Comments data - >= 0 records
  67.  
  68. The fixed data record must come first. The comments records must be
  69. consecutive.
  70. The number of fixed data header records can be increased as desired
  71. by mutual agreement.
  72.  
  73. 2 FIXED_DATA_RECORDS:
  74.    
  75. BYTES           FORMAT          NAME            PURPOSE
  76.  
  77. 1-6             I6              NL              NO OF LINES
  78.                                                 (6 Digits allows up to 999999)
  79.                                                 (right justified as for all
  80.                                                 integer data)
  81.  
  82. 7-12            I6              NP              PIXELS/LINE
  83.                                                 (6 Digits allows up to 999999)
  84.  
  85. 13-15           I3              NBIT            BITS/PIXEL
  86.                                                 Allowed values : see above
  87.  
  88. 16-18           I3              NH              Total no of header records
  89.                                                 minimum 1
  90.  
  91. 19-20           I2              NBLOCK          If not 0,it is the number of
  92.                                                 image lines/magtape block.
  93.                                                 Used by programs BLOCKH and
  94.                                                 UNBLKH.
  95.  
  96. 21-22           I2              NRCOM           Number of first comments 
  97.                                                 record. Usually 2.
  98.                                                 0 If no comments data is
  99.                                                 present.
  100.  
  101. 23-27           I5              NFRAME          If not 0, it is the number
  102.                                                 of frames in a movie image.
  103.                                                 Each frame has NL/NFRAME 
  104.                                                 lines.
  105.  
  106. 28-30           I3              NPROJ           Projection no of image
  107.                                                 initially 0
  108.                                                 only gets set after 
  109.                                                 rectification.
  110.                                                 See TMNZS.FOR for the full
  111.                                                 list of available projections.
  112.                                                 Note that a projection may be 
  113.                                                 rotated.
  114.  
  115. 31-36           I6              LENC            Length of comments in bytes
  116.                                                 initially 0
  117.  
  118. 37-39           I3              NPROC           Type of image compression used.
  119.                                                 0= no compression.
  120.  
  121. 40                                              (Unused)
  122. 41-70           30A1            E0FNAM          Disk file name - inserted
  123.                                                 when copying
  124.                                                 image to tape
  125.                                                 this can be used when loading
  126.                                                 an image to disk, or when
  127.                                                 doing a tape directory
  128.  
  129. 71-150          80A1            E0HEAD          Descriptive header for present
  130.                                                 image. This can be written to
  131.                                                 a display device as a title.
  132.  
  133. 151-190         4F10.4          ATLL,ATLP,ABRL,
  134.                                 ABRP
  135.                                 top left and    These are with respect to the
  136.                                 bottom right    original image that was loaded
  137.                                 (line,pixel)    or created, or with respect
  138.                                                 to the last rectification or
  139.                         extraction from a rectified
  140.                         image.
  141. (A rectified image is always treated as being a master image.
  142. Note they must be reset on rectification,and updated when images are 
  143. extracted.)
  144. (Note that coordinate (0.,0.) refers to the top left of the top left pixel
  145. of the original image. This pixel is referred to as pixel (1,1) .
  146. (NL,NP) refers to the bottom right of the bottom right pixel.)
  147.  
  148. 191-194         4A1             ' PEL'          Checkword for epic images
  149.  
  150. 195-234         40A1            TYPESA(10),     Description of satellite
  151.                                 TYPESE(30)      and sensor type following
  152.                                                 a standard format for each
  153.                                                 satellite and sensor. EG-
  154.                                                 Landsat 1 MSS
  155.                                                 Landsat 3 RBV
  156.                                                 Spot    1 HRV1
  157.                                                 LRM A/S   MSS
  158.                                                 DIT Spect.
  159.                                                 (left justified)
  160.                                                 (the sensor position
  161.                                                 always starts at byte 205)
  162.  
  163. 235-238         I4              IBANDH          Band number
  164.                                                 default 0
  165.  
  166. 239-278         40A1            FRAMID          Frame id left justified
  167.                                                 the format of this is 
  168.                                                 particular to each 
  169.                                                 satellite and may
  170.                                                 include the orbit number.
  171.                                                 (10 digits for Landsat,
  172.                                                 8 for Spot)
  173.  
  174. 279-280         I2              ICMPLX          =0  Initially
  175.                                                 =1 after 2-D FFT
  176.                                                 =2 after 1-D FFT along lines
  177.                                                 =3 after 1-D FFT along columns
  178.                                                 Reset to 0 after 2-D inverse.
  179.  
  180. 281-292         12A1            E0IDAT          GMT date at start of
  181.                         image capture.
  182.                                                 'DD-MON-YY   '
  183.                                                 (MON is first 3 letters
  184.                                                 of month)
  185.  
  186. 293-304         12A1            E0ITIM          GMT time at start of
  187.                         image capture
  188.                                                 'HH:MM:SSFFFF'
  189.                                                 The last 4 digits are tenths
  190.                                                 of milliseconds if present
  191.  
  192. 305-317         F13.8           E0ALAT          Image centre latitude
  193.                                                 -90. TO 90.
  194.                                                 (of the original full image
  195.                                                 if not rectified)
  196.                         (If the image is rectified
  197.                         it is the coordinate of the
  198.                         centre of the image as viewed
  199.                         on the earth's sphere.)
  200. 318-330         F13.8           E0ALNG          Image centre longitude
  201.                                                 0.-360. Going east
  202.                                                 (of the original full image
  203.                                                 if not rectified)
  204.  
  205. 331-334         I4              ISUNEL          Sun elevation angle at image
  206.                                                 centre 0-90 from horizontal
  207.  
  208. 335-338         I4              ISUNAZ          Sun azimuth angle at image
  209.                                                 centre 0-360 from north going 
  210.                         east ie clockwise is positive.
  211.  
  212. 339-442         8F13.8          4*(LAT,LONG)    Top Left, Top Right, Bottom
  213.                                                 Right, Bottom Left corner
  214.                                 BLAT(8)         points of image. Range as
  215.                                                 for centre points.
  216.                                                 These refer to the full 
  217.                                                 original image if it has not
  218.                                                 been rectified. Otherwise
  219.                                                 they refer to the actual
  220.                                                 image.
  221.  
  222. 443-444         I2              IQUAL           Band quality 0-9
  223.  
  224. 445-448         I4              ICLOUD          Percentage cloud cover. 0-100
  225.  
  226. 449-452         I4              ISENSG          Sensor gain
  227.                                                 from 1-8 for Spot.
  228.                         From 0-3 for CZCS.
  229.  
  230. 453-454         I2              IRECT           =1 for rectified image
  231.                                                 =0 otherwise
  232.  
  233. 455-486         2F16.6          RTLL,RTLP       Top Left map coordinates
  234.                                                 of full rectified image
  235.                                                 in projection NPROJ.
  236.                                                 these refer to the Top Left
  237.                                                 of the Top Left pixel.
  238.        NB: note that all map coordinates throughout epic are always stored
  239.            in the order Line, Pixel or Lat, Long or Northing, Easting  etc.
  240.  
  241. 487-518         2F16.6          RBRL,RBRP       Bottom Right map coordinates
  242.                                                 of full rectified image.
  243.                                                 These refer to the Bottom Right
  244.                                                 of the Bottom Right pixel.
  245.                                                 They are usually in yards,
  246.                                                 meters or degrees as 
  247.                                                 appropriate to the projection.
  248.  
  249. 519-530         F12.6           E0ASMP          Sampling distance on map
  250.                 (OR E12.5)                      of rectified image in
  251.                                                 pixel direction.
  252.                                                 Usually in yards, meters
  253.                                                 or seconds as appropriate.
  254.  
  255. 531-532         I2              E0IINT          Interpolation technique
  256.                                                 used in rectification.
  257.                                                 =1 Cubic
  258.                                                 =2 Bilinear
  259.                                                 =3 Nearest neighbour
  260.  
  261. 533-544         F12.4           SLITW           DIT/PEL spectrometer slit
  262.                                                 width (microns).
  263.                                                 (just for spectrometer).
  264.  
  265. 545-556         F12.4           STARTW          Starting value for calibration
  266.                                                 in pixel direction.
  267.                                                 (EG wavelength (NM))
  268.                                                 STARTW and DELTAW are used when
  269.                                                 the pixel position is itself
  270.                                                 a calibrated value.
  271.                                                 in this case the image cannot
  272.                                                 be rectified.
  273.  
  274. 557-568         F12.4           DELTAW          Step value in pixel direction.
  275.                                                 (eg for wavelength sampling
  276.                                                 increment (nm) /pixel)
  277.  
  278. 569-574         I6              IBLACK          DIT/PEL spectrometer black
  279.                                                 level.
  280.                                                 (just for spectrometer).
  281.  
  282. 575-586         F12.4           E0TMIN          Value corresponding to
  283.                                                 data=0 for calibrated
  284.                                                 data (eg temperature).
  285.  
  286. 587-598         F12.4           E0TSTP          Step in calibrated data
  287.                                                 corresponding to data
  288.                                                 step of 1.
  289.                                                 Same units as E0TMIN.
  290.  
  291. 599-638         40A1            CUNITS          Calibration units for 
  292.                                                 pixel value.   EG -
  293.                                                 mw/sq cm/sr/micrometer
  294.                                                 microwatts/cm2/st/micrometer
  295.                         w/m2/sr
  296.                         K
  297.                         ALBEDO 0-1
  298.                         TEMP DEGREES C
  299.                         DEGREES
  300.                         METRES
  301.                         FEET
  302.                         YARDS
  303.                     CHLOROPHYLL CONCENTRATION MG/CUBIC M
  304.                         The remainder of this field
  305.                         may be used for comments.
  306.  
  307. 639-668         30A1            PUNITS          Calibration units
  308.                                                 in the pixel direction.
  309. 669-678         F10.6           E0RANG          Rotation angle in degrees
  310.                                                 for projection NPROJS.
  311.                         Clockwise is positive.
  312.                         Range 0. to 360. .
  313.                         The top of the map is rotated
  314.                         clockwise from North.
  315. 679-688         F10.6           ALPHA           First camera angle (roll) in
  316.                                                 degrees. These are for
  317.                                                 use in rectifying
  318.                                                 aircraft images. X tilt.
  319.                                                 Angle is from vertical.
  320.                                                 For Spot images 
  321.                                                 this is the scanner tilt angle.
  322.                                                 ie the angle between the camera
  323.                                                 direction and the line to the
  324.                                                 centre of the earth measured
  325.                                                 at the satellite.
  326.                                                 +=looking to left (ie east for
  327.                         SPOT)            
  328.                         This look direction is at 
  329.                         right angles to the direction
  330.                         of flight.
  331. 689-698         F10.6           BETA            Second camera angle (pitch).
  332.                                                 Y tilt.
  333.                                                 With no roll the angle is from
  334.                         the vertical.
  335.                                                 For CZCS images 
  336.                                                 this is the scanner tilt angle.
  337.                                                 ie the angle between the camera
  338.                                                 direction and the line to the
  339.                                                 centre of the earth measured
  340.                                                 at the satellite.
  341.                                                 +=looking forward (or North for
  342.                         CZCS in ascending orbit)
  343.                         This look direction is in
  344.                         the direction of flight.
  345.                         Note that these axes are right
  346.                         handed.The Z direction is away
  347.                         from the earth. The right hand
  348.                         rule along the axis gives the
  349.                         positive rotation direction.
  350.  
  351. 699-708         F10.6           GAMMA           Third camera angle (yaw).
  352.                                                 Z tilt.
  353.                                                 These correspond to omega,
  354.                                                 psi, kappa in 3rd ed. Manual
  355.                                                 of Photogrammetry (asp)
  356.                         (VOL 1 page 47)
  357.  
  358. 709-718         F10.5           RFOCAL          Focal length in 
  359.                                                 millimeters of camera lens.
  360.  
  361. 719-734         F16.6           SENNOR          Sensor northing or
  362.                                                 equivalent coordinate
  363.  
  364. 735-750         F16.6           SENEAS          Sensor easting
  365.  
  366. 751-766         F16.6           SENEL           Sensor height in m for aircraft
  367.                                                 or satellite.
  368.  
  369. 767-768         I2              IMONIS          Units of image coordinate
  370.                                                 system and focal length.
  371.                                                 0 - mm 
  372.                                                 1 - meters
  373.                                                 2 - pixels (for nonfocussing
  374.                                                                 sensors).
  375.  
  376. 769-771         I3              NPROJS          Projection no for sensor
  377.                                                 easting and northing.
  378.                         This projection uses the default
  379.                         associated parameters for this
  380.                         projection.
  381.  
  382. 772-783         F12.4           STARTL          Starting value for calibration
  383.                                                 in line direction. (Corresponds
  384.                                                 to line 0). For use when image
  385.                                                 is not rectified.
  386.     For storing projections this is the initial projection angle in degrees
  387. starting from 0 as North or up and moving clockwise. This is the angle for 
  388. the first projection stored as line 1.
  389.                                                 
  390. 784-795         F12.4           DELTAL          Step value in line direction.
  391.            For storing projections this is the angle increment in degrees
  392.            ( += clockwise, -=anticlockwise) for each new projection.
  393.  
  394. 796-835         40A1            LUNITS          Calibration units in line 
  395.                                                 direction
  396. 836-839         I4              IROTAN          Rotation angle of projection
  397.                                                 nproj 0-360 to east from north.
  398.                         Clockwise is positive.
  399. 840-842         I3              E0PATH          World reference path number
  400.                                                 for this satellite
  401.                                                 (eg for landsat mss or spot)
  402. 843-846         I4              E0ROW           World reference row number
  403.                                                 for this satellite
  404. 847-848         I2              E0RTHE          =0 normally
  405.                                                 =1 for r-theta transformation
  406.                                                 =2 for theta-r transformation
  407.                                                 (order is lines-pixels)
  408.                                                 =3 if each image line is a
  409.                                                 projection.
  410. 849-854         I6              E0NLRT          Image line size before r-theta
  411.                                                 transformation
  412. 855-860         I6              E0NPRT          Image pixel size before r-theta
  413.                                                 transformation
  414. 861-870         F10.3           E0LCEN          Line coordinate of centre before
  415.                                                 r-theta transformation
  416. 871-880         F10.3           E0PCEN          Pixel coordinate of centre 
  417.                                                 before r-theta transformation
  418. Current orbital elements -
  419. 881-892         I12             E0ORBN          Orbit number,from 0, incremented
  420.                         at perigee
  421. 893-902         F10.4           E0SMA           Semi major axis (km)
  422. 903-912         F10.6           E0ECCE          Eccentricity X 10**3
  423. 913-922         F10.4           E0INCL          Inclination from equatorial
  424.                         plane (degrees)
  425. 923-932         F10.4           E0MA            Mean anomaly at epoch (degrees)
  426. 933-942         F10.4           E0AOP           Argument of the perigee(degrees)
  427. 943-952         F10.4           E0RAD           Right ascension ,ascending node
  428.                         (degrees)
  429. Current epoch data -
  430.  
  431. 953-964         12A1            E0DATE          GMT 'DD-MON-YY   '
  432.                                                 (MON is first 3 letters
  433.                                                 of month)
  434. 965-976         12A1            E0TIME          'HH:MM:SSFFFF'
  435.  
  436. 977        A1        E0ELEM        Element form, B = Brouwer (Def)
  437.                                       O = Ocsulating
  438.  
  439. 978-994         17A1            E0XXXX          SPARE
  440.  
  441. 995-997         I3              E0ICYC          Cycle number for satellite
  442.                                                 from 0
  443. 998-1009        12A1            E0LDAT          Launch date GMT
  444.                                                 'DD-MON-YY   '
  445. 1010-1021       F12.6           E0SAML          Sampling distance on map
  446.                 (OR E12.5)                      of rectified image in
  447.                                                 line direction.
  448.                                                 Usually in yards, meters
  449.                                                 or seconds as appropriate.
  450.                                                 The default for E0ASAML is
  451.                                                 E0ASAMP.
  452. 1022-1024       I3              E0FORM          Image form
  453.                                                 =0 for normal EPIC image
  454.  
  455. receiving station information -
  456. 1025-1044       20A1            E0RSTN          Name
  457. 1045-1054       F10.6           E0RSLA          Latitude deg
  458. 1055-1064       F10.6           E0RSLO          Longitude deg
  459.  
  460.  
  461. 1065-1074       F10.6           E0WAVL          Centre wavelength of band 
  462.                                                 in nm
  463. 1075-1084       F10.6           E0BW            Width of wavelength band
  464.                                                 in nm
  465. 1085-1088       4I1             E0CLQ(4)        Cloud in quadrant from
  466.                                                 0-9 (as provided by Spot).
  467.                                                 quadrants -
  468.                                                         1  2
  469.                                                         3  4
  470. 1089-1092       A4              E0SNCH          Sensor characteristics.
  471.                                                 Byte 1 - x=multispectral
  472.                                                          p=panchromatic
  473.                                                 Byte 2 - d=double
  474.                                                          t=twin
  475.                                                 Byte 3 - c=compressed
  476.                                                          l=linear
  477. 1093-1095       I3              E0MPOS          Mirror position number
  478.                                                 (as provided by Spot)
  479. 1096-1099       A4              E0SPRO          Sensor problems.
  480.                                                 L=line start anomaly
  481. 1100-1109       F10.6           E0LOOK          Look angle from vertical
  482.                                                 at centre of image.
  483.                                                 +=satellite is looking from 
  484.                           east or right
  485.                                                 -=looking from west or left
  486.                                                 this is measured on the ground
  487.                                                 not at the satellite.
  488. 1110            A1              E0DBLE          =' ' for single precision
  489.                                                 ='D' for double precision
  490.                         ( eg for 64 bit double precision
  491.                         real data).
  492. 1111-1120    f10.6        E0SCAN        angle in milliradians subtended
  493.                         by each original image pixel
  494.                         in scan direction.
  495. 1121-1123    i3        E0ICUB        warping method used in 
  496.                         rectification.
  497.                         0=quadrilateral mapping
  498.                         1=cubic
  499.                         2=second order
  500.                         3=affine
  501.  
  502.  
  503. AUXILLIARY MAP PROJECTION INFORMATION -
  504. 1124-1126    i3        E0IZON        UTM zone number (1-60)
  505. 1127-1129    i3        E0INOR        hemisphere  =1 for north, 
  506.                                      -1 for south
  507.                         USED FOR UTM.
  508. 1130-1132    i3        E0ISPH        earth spheroid
  509.                         1 = International 1924(default)
  510.                         2 = Clarke 1866 (north america)
  511.                         3 = Clarke 1880 (africa)
  512.                         4 = Everest 1830
  513.                         5 = Bessel 1841
  514.                         6 = Australian national 1965
  515.                         7 = IUGG 1967
  516.                         8 = IUGG 1980
  517.                         etc as in setmap.for
  518. 1133-1138    f6.1        E0CLAT        centre latitude of defined map
  519.                         projection
  520. 1139-1144    f6.1        E0CLON        centre longitude of defined map
  521.                         projection
  522. 1145-1154    f10.1        E0CNOR      northing at defined map centre
  523. 1155-1164    f10.1        E0CEAS      easting at defined map centre
  524. 1165-1170    f6.1        E0PLL1        first standard latitude (deg)
  525.                         parallel for use with eg 
  526.                         lamberts conformal map 
  527.                         projection.
  528.                         For Polar stereographic
  529.                         projection it is the orientation
  530.                         of Greenwich clockwise from
  531.                         the vertical meridian.
  532. 1171-1176    f6.1        E0PLL2        second optional standard 
  533.                         latitude parallel
  534. 1177-1184    f8.5        E0CSCA        scale of map at defined centre
  535.                         (default =1.)
  536.  
  537. 1185-1196       12A1            E0JDAT          GMT date at end of
  538.                         image capture.
  539.                                                 'DD-MON-YY   '
  540.                                                 (MON is first 3 letters
  541.                                                 of month)
  542.  
  543. 1197-1208       12A1            E0JTIM          GMT time at end of
  544.                         image capture
  545.                                                 'HH:MM:SSFFFF'
  546.                                                 The last 4 digits are tenths
  547.                                                 of milliseconds if present
  548.  
  549. Additional data for Current orbital elements -
  550. 1209-1221    f13.7        e0tan        anomalous period (minutes)
  551. 1222-1231    e10.3        e0drg        secular drag (only if e0drad
  552.                         to e0d3ta zero) 
  553. 1232-1244    e13.6        e0drad        1st derivative of e0rad 
  554.                         (degrees/day)
  555. 1245-1244    e13.6        e0decc      1st derivative of e0ecce
  556.                         (degrees/day)
  557. 1258-1270    e13.6        e0daop        1st derivative of e0aop 
  558.                         (degrees/day)
  559. 1271-1283    e13.6        e0dtan        1st derivative of e0tan 
  560.                         (minutess/day)
  561. 1284-1296    e13.6        e0d2a0        2nd derivative of e0aop 
  562.                         (degrees/day**2)
  563. 1297-1309    e13.6        e0d2ra        2nd derivative of e0rad 
  564.                         (degrees/day**2)
  565. 1310-1322    e13.6        e0d2ec        2nd derivative of e0ecce
  566.                         (degrees/day**2)
  567. 1323-1335    e13.6        e0d2ta        2nd derivative of e0tan 
  568.                         (minutes/day**2)
  569. 1336-1348    e13.6        e0d3ta        3rd derivative of e0tan 
  570.                         (minutes/day**3)
  571.  
  572.  
  573. 1349-1356    I8        E0LSAV        saved number of lines in
  574.                         image before it was blocked.
  575.                         If zero assume exact multiple
  576.                         of blocking number.
  577.  
  578. 1357-1358    I2        VFIELD        Image is a vector field
  579.                         if VFIELD <> 0
  580. 1359-1364    I6        WSIZE        Extent of square search window 
  581.                         (in pixels) in original window.
  582. 1365-1370    I6        TSIZE        Extent of square template
  583.                         (in pixels) in original
  584.                         template image.
  585. 1371-1376    I6        TUPPER        Upper and lower thresholds for
  586. 1377-1382    I6        TLOWER        validating window template data.
  587.                         A pixel value is set to zero if
  588.                         f<=TLOWER or f>= TUPPER
  589. 1383-1388    f6.2        TDIST        Maximum allowed percentage of 
  590.                         total contaninated area in both
  591.                         window and template. 
  592.                         If actual > TDIST the vector 
  593.                         is not evaluated.
  594.  
  595. 2 COMMENTS_FIELD:
  596.  Ascii string containing variable length records each terminated by a
  597.  carriage return and a line feed character.
  598.  See NRCOM and LENC above.
  599.  
  600. 2 COMMON_BLOCK:
  601.  Common block EPIC in FORTRAN gives direct access to all of the above
  602.  header parameters except for NL, NP, NBIT and text blocks (eg calibration 
  603.  units) which are written to the header buffer directly.
  604.  
  605. 2 RECORD DEFINITION:
  606.  A record has been defined, for use in PASCAL, which gives access to all
  607.  of the above fields. See the file called "DPDEF.DEF" for its definition.
  608.  
  609. 2 AUTHOR:
  610.  M.J.McDonnell in coordination with D.Pairman, P.J.Ellis, P.J.Bruin,
  611.  S J McNeill and J.Dymond.
  612.  
  613.  LAST MODIFIED 23-FEB-1990.
  614.