Update ASCAT obs reader to work with both new and old filename format #69
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.
The bufr ASCAT soil moisture product we assimilate is no longer available with the filename format we have historically downloaded/used, although the file content is unchanged.
Example name change:
M02-ASCA-ASCSMO02-NA-5.0-20160101005700.000000000Z-20160101023821-1344690.bfr ->
W_XX-EUMETSAT-Darmstadt,SOUNDING+SATELLITE,METOPA+ASCAT_C_EUMC_20160101005700_47740_eps_o_250_ssm_l2.bin
From 1 June 2023 the names used will switch from the old (ASCA-ASCSMO02) to the new (W_XX-EUMETSAT-Darmstadt) format.
Code modifications required:
Honestly, the checks might be overkill as things will crash very quickly if anything other than 14 numeric characters are read into date_time_tmp (and the chances of those 14 numeric characters being anything other than a legitimate timestamp are minimal).