No better to avoid it. Their is Sajda e Shukar in Islam not salah for Shukar is their
That way 31 guns salute should also be avoided. Offer a Sajda e Shukar and thats all.
I've given you ref. from Imam Zain ul Abideen for namaz e shukrana.
@Spring Onion ma'am i am surprized you have thanked this post. You better review this '+ve' rating.