https://github.com/access-nri/addmeta
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.9%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: ACCESS-NRI
- License: apache-2.0
- Language: Python
- Default Branch: master
- Size: 34.2 KB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
- Releases: 0
Metadata Files
README.md
addmeta
Add meta data to netCDF files.
Metadata
The metadata is stored in attribute files in YAML format.
The metadata is in key-value pairs and is a global attribute if defined in a
global section, or applied to a specific named variable in the variables
section.
If an attribute is listed with a missing value that attribute is deleted from the file.
For example the following is an example of an attribute file:
yaml
global:
# Mandatory since it gives a key to all the other attributes
Conventions: "CF-1.7, ACDD-1.3"
# The url of the license applied to the data
license: "http://creativecommons.org/licenses/by-nc-sa/4.0/"
variables:
yt_ocean:
_FillValue:
long_name: "latitude in rotated pole grid"
units: "degrees"
geolat_t:
long_name: "latitude coordinate"
units: "degrees_north"
standard_name: "latitude"
It will create (or replace) two global attributes: Conventions and license.
It will also create (or replace) attributes for two variables, yt_ocean and
geolat_t, and delete the _FillValue attribute of yt_ocean.
The information is read into a python dict. Multiple attribute files can be
specified. If the same attribute is defined more than once, the last attribute
file specified takes precedence. Like cascading style sheets this means default
values can be given and overridden when necessary.
Invocation
addmeta is a command line program. Invoking with the -h flag prints
a summay of how to invoke the program correctly.
$ addmeta -h
usage: addmeta [-h] [-m METAFILES] [-l METALIST] [-v] files [files ...]
Add meta data to one or more netCDF files
positional arguments:
files netCDF files
optional arguments:
-h, --help show this help message and exit
-m METAFILES, --metafiles METAFILES
One or more meta-data files in YAML format
-l METALIST, --metalist METALIST
File containing a list of meta-data files
-v, --verbose Verbose output
Multiple attribute files can be specified by passing more than one file with
the -m option. For a large number of files this can be tedious. In that case
use the -l option and pass it a text file with the names of attribute files,
one per line.
Multiple meta list files and meta files can be specified on one command line.
Owner
- Name: ACCESS-NRI
- Login: ACCESS-NRI
- Kind: organization
- Email: access.nri@anu.edu.au
- Website: https://www.access-nri.org.au/
- Repositories: 17
- Profile: https://github.com/ACCESS-NRI
Australian Earth System Simulator - National Research Infrastructure
GitHub Events
Total
- Issues event: 2
- Issue comment event: 1
- Push event: 6
- Pull request review event: 2
- Pull request review comment event: 1
- Pull request event: 1
Last Year
- Issues event: 2
- Issue comment event: 1
- Push event: 6
- Pull request review event: 2
- Pull request review comment event: 1
- Pull request event: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- aidanheerdegen (1)
Pull Request Authors
- CodeGat (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- netCDF4 *
- pyyaml *
- xarray *