Changes between Initial Version and Version 1 of FAQ/demtoosmall


Ignore:
Timestamp:
Feb 9, 2010, 10:54:07 AM (15 years ago)
Author:
benj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ/demtoosmall

    v1 v1  
     1=== Q: Why does azgcorr say "DEM does not enclose the image" and then stop, and how do I fix it? ===
     2
     3'''A:'''[[BR]]
     4The usual cause for this is exactly what it says - the hyperspectral imagery is not entirely covered by the DEM you're using. This problem is often caused by using LiDAR data from the same flight where either the LiDAR was switched off before the hyperspectral sensors (or on afterwards), or else the LiDAR was running in narrow-swath mode and the LiDAR swath is narrower than the hyperspectral swath. If it's the former then all of the affected data should be outside your area of interest unless the LiDAR actually failed during the line and you can safely use solution 3 below. If it's the latter then you will need to use one of the other solutions given below.
     5
     6You can check what azgcorr thinks the relative limits are by looking for the following sections in your run log:
     7
     8{{{
     9Site details...
     10  input lines to be processed: 6035
     11  corrected image pixels : 5520  lines: 3565
     12  limits from scans x: 392563.7 403599.0  y: 7095299.4 7102425.7
     13  pixel/line limits x: 392562.0 403600.0  y: 7095298.0 7102426.0
     14}}}
     15
     16{{{
     17DEM file: /arsf/214a/dems/a_dem_100.grd
     18    limits SW: 389033.0 7095665.0  NE: 401403.0 7103967.0
     19}}}
     20
     21You can then compare the DEM limits to the imagery limits. The south and west limits of the DEM file should be smaller than the smallest y and x limits for the imagery, and the north and east limits should be larger than the largest ones. In this case it can be seen that azgcorr thinks the DEM doesn't extend south far enough (by ~400m - 7095665 compared to 7095298) or east far enough (by ~2km - 401403.0 compared to 403600.0). It is OK in the north and west dimensions.
     22
     23There are a few possible solutions to this:
     24
     251. Extend your DEM coverage using external datasets such as [wiki:Processing/NextMapDEMs NextMap] for the UK or [http://srtm.usgs.gov/ SRTM] outside the UK. Depending on where your flight is, this may not be an option since SRTM only covers the area between 54S and 60N. If you do this, be careful about using data in the correct projection and datum (both vertical and horizontal) to match your data. !NextMap is in British National Grid projection and uses the Ordnance Datum Newlyn vertical datum. SRTM is given against the EGM96 geoid.
     26
     271. Use a program such as GRASS to extrapolate DEM coverage beyond your current coverage. Gives you a DEM that is essentially completely made up for part of it, but since it's hopefully at approximately the right height (and therefore shouldn't cause significant distortion in the output), you may not mind. It may also only to affect one end of one or two flightlines (which may be beyond the area you're interested in).
     28
     292. Use the -l option to azgcorr to not process one end of the affected line(s) - see part 2 [wiki:FAQ/processingspeed here] for instructions for how to do this. You can then process the area within your DEM, and then if you want you can process the remaining part separately without using a DEM.
     30
     313. Just process the entire flightline without using a DEM. This is the easiest solution, but will deform your output image (typically it will magnify the image, largely in the across-track direction) because of the difference between the real and assumed height of the ground.
     32
     33[wiki:FAQ Back to FAQ]
     34----
     35Related articles:
     36 * [wiki:FAQ/azgcorrDEM What is the azgcorr ASCII DEM format?]