ACRG-Bristol / acrg

Repository containing ACRG analysis code
MIT License
8 stars 0 forks source link

Add footprint attributes #2

Closed hanchawn closed 2 years ago

hanchawn commented 2 years ago

Description: When processing NAME footprints add attributes for public use: author: “Met Office/University of Bristol” contact: “Alistair Manning” file_created_by: (this is the current author field) funder: “BEIS” publication_acknowledgement: “Please acknowledge the Met Office/University of Bristol in any publications that use these files.”

Type of Change: [ ] Bug fix [ ] New feature [ ] Code-breaking change

Checklist: [ ] Code documentation has been updated if needed [ ] If new tests are needed, they have been added [X] All tests pass [X] No merge conflicts [ ] /CHANGELOG.md has been updated if change is significant

rt17603 commented 2 years ago

This was the relevant part of an email from @ag12733 on 22/03/2022 ("NAME footprints to public folder") regarding these updates:

2) Update the attributes on all of our footprints already processed to include: a. author: “Met Office/University of Bristol” b. contact: “Alistair Manning” c. file_created_by: (this is the current author field) d. funder: “BEIS” e. publication_acknowledgement: “Please acknowledge the Met Office/University of Bristol in any publications that use these files.”

Comparing against the following updates:

ncF.__setattr__("author", 'Met Office/University of Bristol')
ncF.__setattr__("contact", 'Alistair Manning')
ncF.__setattr__("file_created_by", getpass.getuser())
ncF.__setattr__("funder", 'BEIS')
ncF.__setattr__("publication_acknowledgement", 'Please acknowledge the Met Office/University of Bristol in any publications that use these files.')

these match up.