Changes between Version 3 and Version 4 of ossim-preproc
- Timestamp:
- Apr 11, 2015, 11:27:15 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ossim-preproc
v3 v4 15 15 samples partial tiles. 16 16 --compression-quality Compression quality for TIFF JPEG takes 17 values from 0 to 100, where 100 is best. 17 values from 0 to 100, where 100 is best. 18 18 For J2K plugin, numerically_lossless, 19 19 visually_lossless, lossy 20 20 --compression-type Compression type can be: deflate, jpeg, lzw, 21 21 none or packbits 22 --compute-min-max Turns on min, max scanning when reading 23 tiles and writes a dot omd file. This option 24 assumes the null is known. 25 --compute-min-max-null Turns on min, max, null scanning when 26 reading tiles and write a dot omd file. This 27 option tries to find a null value which is 28 useful for float data. 22 29 --create-histogram-r0 Forces create-histogram code to compute a 23 30 histogram using r0 instead of the starting … … 33 40 all are enabled. 34 41 --disable-plugin Will disable the plugin loader 42 --dump-filtered-image-list Outputs list of filtered images. 35 43 --list-entries Lists the entries within the image 44 --max Overrides max value for compute-min-max 45 option. 46 --min Overrides min value for compute-min-max 47 option. 48 --null <null_value> Overrides null value for 49 compute-min-max option. e.g. -9999.0 for 50 float data 36 51 --of or --output-files Output image files we can open, exluding 37 52 overviews. 53 --options <options.kwl> This can be all or part of 54 the application options. To get a template 55 you can turn on trace to the ossimImageUtil 56 class by adding "-T ossimImageUtil" to your 57 command. 38 58 --ossim-logfile takes a logfile as an argument. All output 39 59 messages are redirected to the specified log … … 43 63 bottom for valid types. 44 64 (default=ossim_tiff_box) 65 --override-filtered-images Allows processing of file that is in the 66 filtered image list. 45 67 --reader-prop Adds a property to send to the reader. 46 68 format is name=value 47 69 --rebuild-histogram Rebuild histogram even if they are already 48 70 present. 49 --scanForMinMax Turns on min, max scanning when reading50 tiles. This option assumes the null is51 known.52 --scanForMinMaxNull Turns on min, max, null scanning when53 reading tiles. This option tries to find a54 null value which is useful for float data.55 71 --threads <threads> The number of threads to use. 56 72 (default=1) Note a default can be set in … … 69 85 -P specify a preference file to load 70 86 -T specify the classes to trace, ex: 71 ossimInit|ossimImage.* 87 ossimInit|ossimImage.* 72 88 will trace ossimInit and all ossimImage 73 89 classes … … 88 104 present. 89 105 -s Stop dimension for overviews. This controls 90 how 106 how 91 107 many layers will be built. If set to 64 then 92 108 the builder will stop when height and width … … 97 113 98 114 99 Valid overview types: 100 ossim_tiff_box 101 ossim_tiff_nearest 102 ossim_kakadu_nitf_j2k 103 gdal_tiff_nearest 104 gdal_tiff_average 105 gdal_hfa_nearest 106 gdal_hfa_average 115 Valid overview types: 116 ossim_tiff_box 117 ossim_tiff_nearest 107 118 108 119 Example commands: … … 124 135 // tiff, jpeg compression, histogram, 4 threads 125 136 ossim-preproc -r --ch --compression-quality 75 --compression-type jpeg --threads 4 <directory_to_walk> 137 ossim-preproc -r --ch --compression-quality 75 --compression-type jpeg --threads 4 <directory_to_walk> 138 139 // Process all the tiffs in a directory feeding "prep", "file", "post" system commands via the --options option: 140 ossim-preproc --options preproc-options.kwl -r -o --ch *.tif 141 142 // Contents of preproc-options.kwl used in above command: 143 prep.command0: echo start time: %{date} 144 prep.command0.strf_time_format: %Y%m%d%H%M%S 145 prep.command1: mkdir -p %{date} 146 file.command0: mv %{file_no_ext}.* %{date}/. 147 post.command0: echo end time: %{date} 148 post.command0.strf_time_format: %Y%m%d%H%M%S 126 149 127 150 NOTES: … … 129 152 --ch equals --create-histogram 130 153 --chf equals --create-histogram-fast 154 155 Expanded command option variables: 156 157 %{basename} = filename without path 158 %{basename_no_ext} = filename without path and without extention 159 %{date} Expanded to current zulu time. Default format=yyyymmdd 160 %{date} output format controlled by command0.strf_time_format key. 161 %{dirname} = path of filename 162 %{file} = filename being processed 163 %{file_no_ext} = filename with no extension 164 131 165 }}} 132 166