Version 3 (modified by knpa, 5 years ago) (diff)


Splitting VNIR and SWIR

This page details how to separate SWIR and VNIR from the FENIX (though may work with other Specim instruments).

This works on raw files, level1b files and level2 mapped files.

The header file needs to contain vimg entries (so add these if they are not present):

vimg1 = {1, <number of vnir bands>}
vimg2 = {<number of vnir bands +1>, <number of bands in file>}

So for normal Fenix binning: vimg1 = {1, 348}
vimg2 = {349, 622}

You can insert these into multiple text files with e.g.:
for file in *bil.hdr; do sed -i '5i vimg1 = {1, 348}' $file; sed -i '6i vimg2 = {349, 622}' $file; done

The splitter is located at:

and is ran simply as

splitfile <bil_file>

This will create seperate files namd *vnir.bil and *swir.bil