Al Emran Posted April 1, 2023 Share Posted April 1, 2023 Hi, I understand that using CAT ENVI tool we can do ATP correction to an CRISM image by selecting a single image file each time. However, I need to use ATP correction for thousands of CRISM images. Just wondering if there is any way I can run batch ATP process multiple images without needing to select a single image at each time? Thank you, Emran Link to comment Share on other sites More sharing options...
Feng Posted April 5, 2023 Share Posted April 5, 2023 Hi Emran, After communicating with the CRISM team, we got an answer from Frank Morgan, the developer of CAT: "One possibility is to call the IDL function directly. The ATP stuff is in routines atp_nontile.pro and atp_tile.pro. Assuming they’re working with non-tile (like FRS, FRT, HRL etc) data use atp_nontile.pro. The header describes the inputs. It takes a big structure with all the input parameters. Set the batch keyword to avoid halts on trapped errors (that mode is more lightly tested than non-batch, but hopefully will work.) A lot of the apparent complexity in that routine is handling different data format cases, trapping errors, reading ancillary data etc. The real work is fairly straightforward. If they want to maximize efficiency they may want to pull from crism_photom_corr for photometric correction, and scaleatm_pcm and patch_vs_artifact for atmospheric correction." Thanks, Feng Link to comment Share on other sites More sharing options...
Al Emran Posted January 17 Author Share Posted January 17 Thanks Feng! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now