Difference between revisions of "Karl's IPW experience"

From Snow
Jump to navigationJump to search
Line 6: Line 6:
 
3) text2ipw dem.txt > dem.ipw
 
3) text2ipw dem.txt > dem.ipw
  
The result is an image with this header
+
The result is an image with three headers
!<header> basic_image_i -1 $Revision: 1.11 $
+
'''!<header> basic_image_i -1 $Revision: 1.11 $'''
 
byteorder = 0123  
 
byteorder = 0123  
 
nlines = 1450  
 
nlines = 1450  
 
nsamps = 876  
 
nsamps = 876  
nbands = 1  
+
nbands = 1
!<header> basic_image 0 $Revision: 1.11 $
+
 +
'''!<header> basic_image 0 $Revision: 1.11 $'''
 
bytes = 2  
 
bytes = 2  
 
bits = 16  
 
bits = 16  
 
history = text2ipw -l 1450 -s 876 -b 1 -n 16 snbb500m.txt  
 
history = text2ipw -l 1450 -s 876 -b 1 -n 16 snbb500m.txt  
!<header> lq 0 $Revision: 1.6 $
+
 
 +
'''!<header> lq 0 $Revision: 1.6 $'''
 
map = 0 -10.99219036  
 
map = 0 -10.99219036  
 
map = 65535 4254.503906
 
map = 65535 4254.503906

Revision as of 19:21, 25 October 2009

DEM into IPW

1) converted SierraBB-500m.tif to ASCII using ArcGIS Conversion Tools > From Raster > Raster to ASCII

2) stripped header with Wordpad

3) text2ipw dem.txt > dem.ipw

The result is an image with three headers !<header> basic_image_i -1 $Revision: 1.11 $ byteorder = 0123 nlines = 1450 nsamps = 876 nbands = 1

!<header> basic_image 0 $Revision: 1.11 $ bytes = 2 bits = 16 history = text2ipw -l 1450 -s 876 -b 1 -n 16 snbb500m.txt

!<header> lq 0 $Revision: 1.6 $ map = 0 -10.99219036 map = 65535 4254.503906