pytroll / pytroll-pps-runner

Pytroll runner for PPS
GNU General Public License v3.0
1 stars 8 forks source link

Fix missing metadata in messages #15

Closed adybbroe closed 3 years ago

adybbroe commented 3 years ago

We were missing variant in output messages. This is now fixed. Also all metadata (except description) in the hook is now being added as a dict, like this example (pps_hooks.yaml):

pps_hook:
    post_hook: !!python/object:nwcsafpps_runner.pps_posttroll_hook.PPSMessage
      description: "This is a pps post hook for PostTroll messaging"
      metadata:
        posttroll_topic: "PPSv2018"
        station: "norrkoping"
        output_format: "CF"
        level: "2"
        variant: DR

This means it is easier to add new metadata to the message if needed.

Also fixing a couple of bugs from previous PR #13