I'm looking to merge 3 imagery bands that are saved as separate files. The file format is NITF. The reason they are saved as NITF is because they have RPC metadata embedded into the images. I would like to combine the NITF images so the output image retains the RPC metadata. I will be doing this a lot so I would like to build a script either through Python or GDAL so that I don't have to do this manually. Unfortunately I'm very much a novice when it comes to scripting, and after scouring the internet I have hit a road block. I was able to successfully merge the images in the desired output using GDAL, but the RPC metadata did not transfer into the output image.
Here's the code I have so far:
gdal_merge.py -o output.ntf -of NITF -seperate red_band.ntf green_band.ntf blue_band.ntf -co PHOTOMETRIC=RGB