Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add script to make md5 sums and md5s #9

Merged
merged 2 commits into from
May 3, 2017
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions air_temperature.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de5b9d45db48cf6b7034de1a4a6d6c98
17 changes: 17 additions & 0 deletions make_check_sums.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python

import glob

from xarray.tutorial import file_md5_checksum


def main():
files = glob.glob('*.nc')
for ncf in files:
prefix = ncf.split('.')[0]
outf = '{}.md5'.format(prefix)
with open(outf, 'w') as f:
f.write(file_md5_checksum(ncf))

if __name__ == '__main__':
main()
1 change: 1 addition & 0 deletions rasm.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12abf748b48e2ca22ca2d47d363d80c3
1 change: 1 addition & 0 deletions tiny.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1f0a4b6f768d49c226cfc2a8d0bbb8e3