Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scripts/update_metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ WARNING: THIS SCRIPT MODIFIES THE ORIGINAL FILE.

See README for details of update specification file (YAML format).
"""
import sys
from argparse import ArgumentParser
import logging

Expand All @@ -27,5 +28,7 @@ if __name__ == '__main__':
help='NetCDF file to update'
)
args = parser.parse_args()
if args.updates == '-':
args.updates = sys.stdin
logger.setLevel(getattr(logging, args.loglevel))
main(args)