Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate alternate "multispectral composite" exports #80

Closed
jywarren opened this issue Jan 3, 2012 · 2 comments
Closed

generate alternate "multispectral composite" exports #80

jywarren opened this issue Jan 3, 2012 · 2 comments

Comments

@jywarren
Copy link
Owner

jywarren commented Jan 3, 2012

nrg

Start by selecting your input data:

 gdalbuildvrt composite.vrt visible-geo.tif infrared-geo.tif

Then edit the .vrt to swap bands, eliminating some bands and changing:

 <SourceBand>1</SourceBand>

for the alternate bands. This could be done in Ruby. Then run:

 gdalwarp composite.vrt nrg.tif
@jywarren
Copy link
Owner Author

jywarren commented Jan 3, 2012

We should greyscale the infrared data before working with it -- for now i'm just using the red channel from it.

@jywarren
Copy link
Owner Author

jywarren commented Jan 4, 2012

simply removing all alpha band XML from the .vrt seems to work, though it leaves a black background around the entire thing.

This post indicates that this can also be achieved by using the gdalbuildvrt flag "-hidenodata". Will try this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant