@@ -196,9 +196,10 @@ def _process_instrument_product(
196196 input_files = input_folder
197197 case ("mwr-l1c" , _id ):
198198 fun = instruments .hatpro2l1c
199- coefficients = _fetch_coefficient_files (calibration , tmpdir )
200199 site_meta = {** site_meta , ** calibration }
201- site_meta ["coefficientLinks" ] = coefficients
200+ coefficients , links = _fetch_coefficient_files (calibration , tmpdir )
201+ site_meta ["coefficientFiles" ] = coefficients
202+ site_meta ["coefficientLinks" ] = links
202203 input_files = input_folder
203204 case ("mrr" , _id ):
204205 fun = instruments .mrr2nc
@@ -221,7 +222,9 @@ def _concatenate_(input_files: list[Path], tmpdir: str) -> Path:
221222 return input_files [0 ]
222223
223224
224- def _fetch_coefficient_files (calibration : dict , tmpdir : str ) -> list [str ]:
225+ def _fetch_coefficient_files (
226+ calibration : dict , tmpdir : str
227+ ) -> tuple [list [str ], list [str ]]:
225228 msg = "No calibration coefficients found"
226229 if not (coeffs := calibration .get ("retrieval_coefficients" )):
227230 raise ValueError (msg )
@@ -234,7 +237,7 @@ def _fetch_coefficient_files(calibration: dict, tmpdir: str) -> list[str]:
234237 filepath = Path (tmpdir ) / Path (filename ).name
235238 filepath .write_bytes (res .content )
236239 coefficient_paths .append (str (filepath ))
237- return coefficient_paths
240+ return coefficient_paths , links
238241
239242
240243def _get_calibration (
0 commit comments