| 1 | = ossim-chipper = |
| 2 | ossim-chipper is a command line application used to generate elevation products from raw dem, dted, and srtm data. This application supports 2 basic functions: hillshade and color-relief. From these 2 operations you can create the following products. |
| 3 | |
| 4 | [[Image(dem.jpg)]] |
| 5 | |
| 6 | === === |
| 7 | == Color Relief == |
| 8 | |
| 9 | Color Relief is used to generate an RGB or ARGB representation of a dem. Different colors are used to represent elevation bands. Users will provide a template with corresponding colors values. |
| 10 | |
| 11 | {{{ |
| 12 | ossim-chipper --op color-relief --color-table template.kwl --srs EPSG:4326 |
| 13 | input.src output.jpg |
| 14 | }}} |
| 15 | |
| 16 | Command line without dot.src file with lots of options: |
| 17 | {{{ |
| 18 | ossim-chipper -t 512 --resample-filter BILINEAR --op color-relief --color-table color-relief-lut1.kwl --output-radiometry U8 --writer-prop compression_quality=75 --writer-prop create_world_file=1 --writer-prop pixel_type=point --cut-bbox-ll 39.452331542969 -106.75654602051 40.507019042969 -105.43818664551 /data1/elevation/dted/level1/w107/n39.dt1 /data1/elevation/dted/level1/w107/n40.dt1 /data1/elevation/dted/level1/w106/n39.dt1 /data1/elevation/dted/level1/w106/n40.dt1 t1.tif |
| 19 | }}} |
| 20 | |
| 21 | There is a color relief template on: |
| 22 | |
| 23 | [http://trac.osgeo.org/ossim/browser/trunk/ossim/etc/templates/ossim-chipper-color-table-template.kwl] |
| 24 | |
| 25 | |
| 26 | === === |
| 27 | == Hillshade == |
| 28 | |
| 29 | Hillshade is used to generate a shaded relief. It requires the following inputs: |
| 30 | * Sun Azimuth |
| 31 | * Sun Elevation |
| 32 | * Vertical Exaggeration |
| 33 | * Color (either RGB or Color Table) |
| 34 | |
| 35 | Example: |
| 36 | {{{ |
| 37 | ossim-chipper --op hillshade --azimuth 270 --elevation 45 --exaggeration 10 |
| 38 | --color 222,229,188 --srs EPSG:4326 input.src output.jpg |
| 39 | }}} |
| 40 | |
| 41 | Example with color table: |
| 42 | {{{ |
| 43 | ossim-chipper --op hillshade --azimuth 270 --elevation 45 --exaggeration 10 |
| 44 | --color-table template.kwl --srs EPSG:4326 input.src output.jpg |
| 45 | }}} |
| 46 | |
| 47 | Example with color table without dot.src file: |
| 48 | {{{ |
| 49 | ossim-chipper --op color-relief --azimuth 270 --elevation 45 --exaggeration 1.5 --color-table color-relief-lut.kwl --srs EPSG:4326 n37.dt1 t1.tif |
| 50 | }}} |
| 51 | |
| 52 | |
| 53 | |
| 54 | === === |
| 55 | == Additional Parameters == |
| 56 | ossim-chipper shares many of the parameters used in [wiki:orthoigen] including: |
| 57 | * writer-props |
| 58 | * resample-type |
| 59 | * thumbnail |
| 60 | * srs |
| 61 | |
| 62 | It accepts a comma delimited list of input files or a .src file. The output file extension is used to determine output format. As with [wiki:orthoigen], users can specify a writer to use with a -w argument. |
| 63 | |
| 64 | === === |
| 65 | == SRC File == |
| 66 | The src file used by ossim-chipper is nearly identical to the one used by [wiki:orthoigen]. The primary difference between the 2 is the use of the dem keyword to distinguish elevation data from imagery data. Example: |
| 67 | |
| 68 | {{{ |
| 69 | image0.file: C:\my_image.ntf |
| 70 | image0.entry: 2 |
| 71 | image0.ovr: D:\support_dir\images\my_image.ovr |
| 72 | image0.rgb: 3,2,1 |
| 73 | |
| 74 | dem0:file E:\N38W123.hgt |
| 75 | dem0.entry: 0 |
| 76 | dem0.ovr: D:\support_dir\dems\N38W123.ovr |
| 77 | |
| 78 | dem1:file Z:\N37W123.hgt |
| 79 | dem1.entry: 0 |
| 80 | dem1.ovr: D:\support_dir\dems\N37W123.ovr |
| 81 | }}} |