Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
app_common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CEOTR Public
app_common
Merge requests
!29
Cd 228
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Cd 228
CD-228
into
master
Overview
0
Commits
4
Pipelines
0
Changes
2
Merged
xiang
requested to merge
CD-228
into
master
3 years ago
Overview
0
Commits
4
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Viewing commit
fa5b9c9f
Prev
Next
Show latest version
2 files
+
22
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
fa5b9c9f
finished readme
· fa5b9c9f
xaingling
authored
2 years ago
app_common/cf_xml_reader/README.md
0 → 100644
+
28
−
0
Options
# CF_XML_READER
A simple python tool which can access CF-standard table 1.6
## Useage
```
py
from
app_common.cf_xml_reader
import
cf_xml_reader
# cf_xml_reader has property dict which save cf standard table as dictionary format
The
structure
of
the
cf_xml_reader
.
dict
looks
like
this
example_dict
=
{
standard_name
:{
"
canonical_units
"
:
unit_str
,
"
grib
"
:
grib_str
,
"
amip
"
:
amip_str
,
"
description
"
:
description_str
,
},
.
...
}
# example usage for get cf unit by standard name
standard_name
=
'
air_pressure
'
cf_unit_str
=
cf_xml_reader
.
dict
[
standard_name
][
"
canonical_units
"
]
print
(
cf_unit_str
)
Pa
# example usage for get cf description by standard name
description
=
cf_xml_reader
.
dict
[
standard_name
][
"
description
"
]
print
(
description
)
Air
pressure
is
the
force
per
unit
area
which
would
be
exerted
when
the
moving
gas
molecules
of
which
the
air
is
composed
strike
a
theoretical
surface
of
any
orientation
.
```
\ No newline at end of file
Loading