Differentiate between DSI-CAPE and DSI-LI #163
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Starting on June 30, 2023, NOAA started downlinking two DSI files on the HRIT downlink: DSI CAPE, and DSI Lifted Index. Before, only DSI CAPE was downlinked. You can read about DSI types at http://cimss.ssec.wisc.edu/goes/OCLOFactSheetPDFs/ABIQuickGuide_BaselineDerivedStabilityIndices.pdf?fbclid=IwAR1T5jTfYOtjZ3S8LWRbK8aDdZH2TGW_-UdK0ePc30LJSbq4tqKLQFAzCfQ.
Unlike other GOES-R products, this product is not differentiated in the file name. Both DSI files have the same name, and even the same timestamp. The only differentiating factor is _NAME in the ImageDataFunctionHeader. As such, the current version of goestools cannot differentiate and save both images.
This PR fixes the problem by parsing the ImageDataFunctionHeader if the product is DSI. It then updates the product name to DSI-CAPE or DSI-LI, depending on the _NAME value. If a DSI image is downlinked without the header, or if it has a different _NAME, the product will stay as DSI.
Users' goesproc.conf files will need to be updated to handle the distinction. Here are some LRIT files for testing: zip