-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new ESA CCI filename specs files. Added more verbose error mess…
…ages to generic.py and updated test_generic.
- Loading branch information
Showing
7 changed files
with
172 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
file-name-format: | ||
func: checksit.generic.check_generic_file_name | ||
params: | ||
vocab_checks: | ||
# ESACCI | ||
field00: __vocabs__:esa-cci-file-name-config:field00 | ||
# CCI Project (e.g. SEAICE) | ||
field01: __vocabs__:esa-cci-file-name-config:field01 | ||
# Processing Level (e.g. L3C) | ||
field02: __vocabs__:esa-cci-file-name-config:field02 | ||
# Data Type (e.g. SICONC): this is the 'alternative label' of those in the vocabulary | ||
# https://vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
field03: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
# Product String (e.g. NIMBUS5_ESMR-EASE2_NH) | ||
# http://vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
field04: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
# Additional segregator (also stored in the 'product' vocabulary) | ||
field05: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
# Date and time | ||
field06: __date__:%Y,%Y%m,%Y%m%d,%Y%m%d%H,%Y%m%d%H%M,%Y%m%d%H%M%S | ||
# File version | ||
field07: __version__:^fv\d?\d.?\d?\d?$ | ||
segregator: | ||
seg: '-' | ||
extension: | ||
ext: '.nc' | ||
spec_verbose: | ||
spec_verb: True |
30 changes: 30 additions & 0 deletions
30
specs/groups/esa-cci-v1.0/esa-cci-file-name-ghrsst-add-seg-gds.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
file-name-format: | ||
func: checksit.generic.check_generic_file_name | ||
params: | ||
vocab_checks: | ||
# Date and time | ||
field00: __date__:%Y,%Y%m,%Y%m%d,%Y%m%d%H,%Y%m%d%H%M,%Y%m%d%H%M%S | ||
# ESACCI | ||
field01: __vocabs__:esa-cci-file-name-config:field00 | ||
# Processing Level (e.g. L3C) | ||
field02: __vocabs__:esa-cci-file-name-config:field02 | ||
# CCI Project (e.g. SEAICE) | ||
field03: __vocabs__:esa-cci-file-name-config:field01 | ||
# Data Type (e.g. SICONC): this is the 'alternative label' of those in the vocabulary | ||
# https://vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
field04: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
# Product String (e.g. NIMBUS5_ESMR-EASE2_NH) | ||
# http://vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
field05: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
# Additional segregator (also stored in the 'product' vocabulary) | ||
field06: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
# GDS version | ||
field07: __version__:^v\d?\d.?\d?\d?$ | ||
# File version | ||
field08: __version__:^fv\d?\d.?\d?\d?$ | ||
segregator: | ||
seg: '-' | ||
extension: | ||
ext: '.nc' | ||
spec_verbose: | ||
spec_verb: True |
28 changes: 28 additions & 0 deletions
28
specs/groups/esa-cci-v1.0/esa-cci-file-name-ghrsst-add-seg.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
file-name-format: | ||
func: checksit.generic.check_generic_file_name | ||
params: | ||
vocab_checks: | ||
# Date and time | ||
field00: __date__:%Y,%Y%m,%Y%m%d,%Y%m%d%H,%Y%m%d%H%M,%Y%m%d%H%M%S | ||
# ESACCI | ||
field01: __vocabs__:esa-cci-file-name-config:field00 | ||
# Processing Level (e.g. L3C) | ||
field02: __vocabs__:esa-cci-file-name-config:field02 | ||
# CCI Project (e.g. SEAICE) | ||
field03: __vocabs__:esa-cci-file-name-config:field01 | ||
# Data Type (e.g. SICONC): this is the 'alternative label' of those in the vocabulary | ||
# https://vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
field04: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
# Product String (e.g. NIMBUS5_ESMR-EASE2_NH) | ||
# http://vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
field05: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
# Additional segregator (also stored in the 'product' vocabulary) | ||
field06: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
# File version | ||
field07: __version__:^fv\d?\d.?\d?\d?$ | ||
segregator: | ||
seg: '-' | ||
extension: | ||
ext: '.nc' | ||
spec_verbose: | ||
spec_verb: True |
28 changes: 28 additions & 0 deletions
28
specs/groups/esa-cci-v1.0/esa-cci-file-name-ghrsst-gds.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
file-name-format: | ||
func: checksit.generic.check_generic_file_name | ||
params: | ||
vocab_checks: | ||
# Date and time | ||
field00: __date__:%Y,%Y%m,%Y%m%d,%Y%m%d%H,%Y%m%d%H%M,%Y%m%d%H%M%S | ||
# ESACCI | ||
field01: __vocabs__:esa-cci-file-name-config:field00 | ||
# Processing Level (e.g. L3C) | ||
field02: __vocabs__:esa-cci-file-name-config:field02 | ||
# CCI Project (e.g. SEAICE) | ||
field03: __vocabs__:esa-cci-file-name-config:field01 | ||
# Data Type (e.g. SICONC): this is the 'alternative label' of those in the vocabulary | ||
# https://vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
field04: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
# Product String (e.g. NIMBUS5_ESMR-EASE2_NH) | ||
# http://vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
field05: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
# GDS version | ||
field07: __version__:^v\d?\d.?\d?\d?$ | ||
# File version | ||
field08: __version__:^fv\d?\d.?\d?\d?$ | ||
segregator: | ||
seg: '-' | ||
extension: | ||
ext: '.nc' | ||
spec_verbose: | ||
spec_verb: True |
26 changes: 26 additions & 0 deletions
26
specs/groups/esa-cci-v1.0/esa-cci-file-name-ghrsst-std.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
file-name-format: | ||
func: checksit.generic.check_generic_file_name | ||
params: | ||
vocab_checks: | ||
# Date and time | ||
field00: __date__:%Y,%Y%m,%Y%m%d,%Y%m%d%H,%Y%m%d%H%M,%Y%m%d%H%M%S | ||
# ESACCI | ||
field01: __vocabs__:esa-cci-file-name-config:field00 | ||
# Processing Level (e.g. L3C) | ||
field02: __vocabs__:esa-cci-file-name-config:field02 | ||
# CCI Project (e.g. SEAICE) | ||
field03: __vocabs__:esa-cci-file-name-config:field01 | ||
# Data Type (e.g. SICONC): this is the 'alternative label' of those in the vocabulary | ||
# https://vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
field04: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/dataType.json | ||
# Product String (e.g. NIMBUS5_ESMR-EASE2_NH) | ||
# http://vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
field05: __URL__vocab.ceda.ac.uk/scheme/cci/cci-content/product.json | ||
# File version | ||
field06: __version__:^fv\d?\d.?\d?\d?$ | ||
segregator: | ||
seg: '-' | ||
extension: | ||
ext: '.nc' | ||
spec_verbose: | ||
spec_verb: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters