Enhance ASCII2NC to support a wider variety of NDBC buoy data types #2571
Labels
alert: NEED ACCOUNT KEY
Need to assign an account key to this issue
alert: NEED CYCLE ASSIGNMENT
Need to assign to a release development cycle
MET: PreProcessing Tools (Point)
priority: medium
Medium Priority
requestor: NOAA/OPC
NOAA Ocean Prediction Center
type: enhancement
Improve something that it is currently doing
Milestone
Describe the Enhancement
This issue is based on the dtcenter/METplus#2209 discussion. MET issue #2276 enhanced ASCII2NC to add support for
-format ndbc_standard
to read NDBC buoy data in the 19-column "Standard Meteorological Data" format.As described on this NDBC website, several other buoy data formats exist that are very similar to the standard one. However the name, number, and units of the data columns vary. ASCII2NC errors out when parsing any NDBC dataset using
-format ndbc_standard
when the number of columns differs from 19:This issue is to generalize the logic of the
-format ndbc_standard
. Rather than hard-coding the number and contents of the input data, parse the header lines to retrieve that metadata (observation names and, optionally, units).Doing so would enable support for:
Note, need to evaluate whether or not spectral wave data can be parsed in this way. It does include the use of parenthesis, so those would need to be properly ignored.
Note that the missing data value varies from source to source. It may be
MM
,N/A
,99
, or some other string or value. Consider whether hard-coded those is sufficient or does it need to be made configurable?Note that some columns or non-numeric. For example, in https://www.ndbc.noaa.gov/data/realtime2/41008.spec,
SwD WWD STEEPNESS
are all strings. Ideally, make the code smart enough to ignore these non-numeric observations.Parsing details:
YY
,MM
, andDD
. Most also havehh
andmm
(for hours and minutes), but at least one hashhmm
lumped together. Make the code smart enough to allow forhh
andmm
ORhhmm
.#
but 9. does not. Recommend identifying header lines by looking forYY MM DD
.RATE
appears in 24-hour and 10-minute rain measurements. Recommend adding anobs_var_map
configuration file entry to enable them to rename input observation variable names, as needed.Time Estimate
1 week?
Sub-Issues
Consider breaking the enhancement down into sub-issues.
None needed.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
No impacts.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Development issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: