process_sidecar_data#
- astro_metadata_translator.indexing.process_sidecar_data(content, force_metadata=False)#
Process the content read from a JSON sidecar file.
- Parameters:
content (
dict) – Data structure stored in JSON sidecar file converted to simple python form.force_metadata (
bool, optional) – By default the content returned will match the original form that was used for the sidecar. If this parameter isTruea sidecar ofObservationInfowill be returned as if it was simple dict content.
- Returns:
info – If the sidecar file referred to
ObservationInfothis will return anObservationInfo, otherwise adictwill be returned. This can be overridden using theforce_metadataparameter in which case adictwill always be returned.- Return type:
ObservationInfoordictof [str,Any]