Changes between Version 11 and Version 12 of Procedures/DeliveryCreation/Hyperspectral
- Timestamp:
- Oct 22, 2010, 2:46:21 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Procedures/DeliveryCreation/Hyperspectral
v11 v12 3 3 Once the data has been processed, it needs to be put into a delivery directory. This is the final file structure in which it will be sent to the customer. 4 4 5 1. Create quicklook jp gs.6 -Create a directory called 'jpgs' to hold the images that will be created (This is where make_delivery_folder.sh will look for them).7 There are several ways to create the jpegs:8 - Use make_mosaic.sh script5 1. Create quicklook jpegs. 6 1. Create a directory called 'jpgs' to hold the images that will be created (This is where make_delivery_folder.sh will look for them). 7 1. There are several ways to do make the jpegs: 8 - Use make_mosaic.sh: 9 9 1. Open a terminal window in the lev3 directory under the project workspace 10 10 1. Ensure the only geotiffs in the lev3 directory are ones you want to convert to jpgs - either delete unwanted ones or move them to a subdirectory 11 11 1. make_mosaic.sh will generate jpgs for each individual line and also a mosaic of all lines. If vectors are given then a mosaic with vector overlay will also be generated. 12 12 1. Usage `make_mosaic.sh -d <tif-directory> -s <sensor-flag> -o <output-directory> [-v <vector-directory>] [-z <UTMZONE>]` 13 1. Example from within lev3 dir to create eagle images: `make_mosaic.sh -d ./ -s e -o ../jpgs/ -v ~arsf/vectors/from_os/EX01_01/`14 - Use `convert`:13 1. Example: `make_mosaic.sh -d ./ -s e -o ../jpgs/ -v ~arsf/vectors/from_os/EX01_01/` 14 - Use convert: 15 15 1. {{{for filename in `ls`; do convert $filename `echo $filename | sed 's/.tif/.jpg/'`; done}}} 16 16 1. Use ENVI to create mosaics manually. 17 - Convert doesn't always produce images that are scaled sensibly. If so, use the old scripted method. 18 1. Open a terminal window in the lev3 directory under the project workspace 19 1. Ensure the only geotiffs in the lev3 directory are ones you want to convert to jpgs - either delete unwanted ones or move them to a subdirectory 20 1. Run `gtiff2jpg.py -d ./ -a` - If this runs out of memory try again without the -a. You can also run on individual files instead of on a directory by using -s <filename> instead of -d ./ 17 - Convert doesn't always produce images that are scaled sensibly. If so, use the old script: 18 1. `gtiff2jpg.py -d ./ -a` - If this runs out of memory try again without the -a. You can also run on individual files instead of on a directory by using -s <filename> instead of -d ./ 21 19 1. Create mosaics separately using ENVI (or whatever other method). 22 - If all else fails, open tifs in ENVI and manually take screenshots and crop them using gimp. Envi also has mosaicking abilities.20 - If all else fails, open tifs in ENVI and manually take screenshots and crop them using gimp. Envi also has mosaicking abilities. 23 21 1. Create the delivery directory: run make_delivery_folder.sh. Check it's created everything you expect correctly. If it fails, you can create the directory manually as follows: 24 22 1. In the project directory in the workspace, create a directory called "delivery". Within this create a directory named after the date as YYYYMMDD, and within this create one named after the project code.