Scripts to manage custom DOIs
Requires:
Python 3 (Recommended via Anaconda) with requests library and Dataset.
Set your DataCite password by making a file 'pw' under the directory 'data'
- web_doi.py - Search google sheet for archived web sites that need DOIs
- static_content.py - Takes a CaltechDATA id and url for the web view of an interactive resource stored in CaltechDATA
- Get a .xlsx metadata template (TCCON_Metadata_Template.xlsx) completed by the site PI.
Type
python tccon_doi.py template.xlsx
to generate a .json metadata file. Transfer to TCCON server. Make sure the site has a web site (e.g. https://tccon-wiki.caltech.edu/Sites/Hefei) and add to create_readme_contents_tccon-data. Type ./run_new_site hf
You need some ruby dependencies installed. On a mac type :
sudo gem install base32-url
sudo gem install securerandom
Then you can generate the DOI suffix with:
./gen-cool-doi
or in python
suffix = subprocess.check_output(['./gen-cool-doi'],universal_newlines=True)