Adam,

Regarding the Landsat Web Publishing wizard not accepting non-UINT8 input images:


The wizard is trying to be a bit too smart for its own good - it is checking
to ensure input data is UINT8.  Algs and VDS's automatically promote to IEEE8
to ensure all data range is covered.

To fix this, edit the wizard (<ermapper>\batch\Landsat_Web_Publishing_Wizard.erb),
and look for lines checking for UINT8, such as:

----
        if $celltype == UINT8 then goto Check_Input_ls7ers_uint8
        say warning "The image file specified does not appear to be a Landsat image.\n 
The cell type is not UINT8 (Landsat has
8 bit unsigned integer data)"
        goto wizard_page_input_goto
----

Just delete these check lines (they appear for both 7 and TM processing
sections in the wizard), and it will work.  The wizard itself will run with
any input data of course, as with any ER Mapper function - the lines were
in there as error checking to ensure it did not try and apply Landsat processing
to non-Landsat imagery. It did not contemplate alg's or VDS's as input - a good
point we will consider when writing future wizards to relax error checking.


Note:  I see your algorithm seems to be 9 bands.  I think the wizard also
checks to see if it is a valid MSS/TM/7 landsat scene - not sure what
if the wizard will accept a 9 band image.

Again, easy to modify - just look for the lines checking #'s of bands.

If you have have your own specialized / specific landsat enhancements,
you could also easily add those to the wizard as well (perhaps for those
additional bands you have).

I suggest you copy the wizard, and add it to your own "custom" toolbar.

That way, when a new release comes out of ER Mapper, it won't overwrite
your carefully tuned custom Landsat wizard.


In general, a lot of the ER Mapper wizards are meant to act as starting
points, which you can fiddle with or fine tune to do your own work.
The batch script language is pretty easy to learn, and pretty clever
for creating custom algorithms and the like.


Hope this resolves your problem, and have a good weekend.

Regards

Stuart



> Hi all,
>
> I have been trying use the Landsat 7 Web Publisher Wizard on algorithms or
> virtual datasets without any success.  Any algorithm or VDS I use results in
> the error message "The image file specified does not appear to be a Landsat
> image.  The cell type is not UINT8 (Landsat has 8 bit unsigned integer
> data)".  I don't have any problems if I try and load up the dataset that the
> algorithm refers to.  If I say the algorithm in question as an ERS or ECW I
> able to run it in the L7 Web Publisher with no problem, but that is not
> ideal because I'll either be compressing files twice or taking up lots of
> disk space by saving Bands 1 to 8 as a single ERS file.  Does anyone have an
> suggestion as to what my be going wrong with my algorithms?  Here is what it
> looks like:
>

-----------------------------------------------------------

To make changes to your subscription, please visit our website, 
http://www.ermapper.com/technicl/ermapperl/index.htm

Reply via email to