Changes between Version 3 and Version 4 of ossim-preproc


Ignore:
Timestamp:
Apr 11, 2015, 11:27:15 AM (9 years ago)
Author:
dburken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ossim-preproc

    v3 v4  
    1515                                    samples partial tiles.
    1616  --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. 
    1818                                    For J2K plugin, numerically_lossless,
    1919                                    visually_lossless, lossy
    2020  --compression-type                Compression type can be: deflate, jpeg, lzw,
    2121                                    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.
    2229  --create-histogram-r0             Forces create-histogram code to compute a
    2330                                    histogram using r0 instead of the starting
     
    3340                                    all are enabled.
    3441  --disable-plugin                  Will disable the plugin loader
     42  --dump-filtered-image-list        Outputs list of filtered images.
    3543  --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
    3651  --of or --output-files            Output image files we can open, exluding
    3752                                    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.
    3858  --ossim-logfile                   takes a logfile as an argument.  All output
    3959                                    messages are redirected to the specified log
     
    4363                                    bottom for valid types.
    4464                                    (default=ossim_tiff_box)
     65  --override-filtered-images        Allows processing of file that is in the
     66                                    filtered image list.
    4567  --reader-prop                     Adds a property to send to the reader.
    4668                                    format is name=value
    4769  --rebuild-histogram               Rebuild histogram even if they are already
    4870                                    present.
    49   --scanForMinMax                   Turns on min, max scanning when reading
    50                                     tiles. This option assumes the null is
    51                                     known.
    52   --scanForMinMaxNull               Turns on min, max, null scanning when
    53                                     reading tiles.  This option tries to find a
    54                                     null value which is useful for float data.
    5571  --threads                         <threads> The number of threads to use.
    5672                                    (default=1) Note a default can be set in
     
    6985  -P                                specify a preference file to load
    7086  -T                                specify the classes to trace, ex:
    71                                     ossimInit|ossimImage.*
     87                                    ossimInit|ossimImage.* 
    7288                                    will trace ossimInit and all ossimImage
    7389                                    classes
     
    88104                                    present.
    89105  -s                                Stop dimension for overviews.  This controls
    90                                     how
     106                                    how 
    91107                                    many layers will be built. If set to 64 then
    92108                                    the builder will stop when height and width
     
    97113
    98114
    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
     115Valid overview types:
     116ossim_tiff_box 
     117ossim_tiff_nearest     
    107118
    108119Example commands:
     
    124135// tiff, jpeg compression, histogram, 4 threads
    125136ossim-preproc -r --ch --compression-quality 75 --compression-type jpeg --threads 4 <directory_to_walk>
     137ossim-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:
     140ossim-preproc --options preproc-options.kwl -r -o --ch *.tif
     141
     142// Contents of preproc-options.kwl used in above command:
     143prep.command0: echo start time: %{date}
     144prep.command0.strf_time_format: %Y%m%d%H%M%S
     145prep.command1: mkdir -p %{date}
     146file.command0: mv %{file_no_ext}.* %{date}/.
     147post.command0: echo end time: %{date}
     148post.command0.strf_time_format: %Y%m%d%H%M%S
    126149
    127150NOTES:
     
    129152  --ch  equals --create-histogram
    130153  --chf equals --create-histogram-fast
     154
     155Expanded 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
    131165}}}
    132166