-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance ASCII2NC to read NDBC buoy data #2276
Comments
I'm starting to work on this issue, to put buoy data into ascii2nc so you can input multiple files directly. What would be helpful is sample data files, and a description of the format. @DeannaSpindler-NOAA can you get me going? |
@DeannaSpindler-NOAA thanks! A few questions.
|
I use the Standard Meteorological Data format, which is what is in the
45-day ASCII files.
Here are a couple of docs with the buoy lats/lons listed:
https://sdf.ndbc.noaa.gov/stations.shtml
or
https://www.ndbc.noaa.gov/wstat.shtml
Best,
Deanna
…--
Deanna Spindler, PhD
Physical Scientist III
Lynker at NOAA/NWS/NCEP/Environmental Modeling Center
NOAA Center for Weather and Climate Prediction
On Wed, Sep 28, 2022 at 3:33 PM davidalbo ***@***.***> wrote:
@DeannaSpindler-NOAA <https://github.com/DeannaSpindler-NOAA> thanks! A
few questions.
1. Do you need support for all the formats here
https://www.ndbc.noaa.gov/measdes.shtml , or one particular one? A
subset?
2. Many of the file formats do not have latitude/longitude I assume
because they don't move. Is there a mapping from buoy number to
latitude/longitude?
—
Reply to this email directly, view it on GitHub
<#2276 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK6TDPWC4XM7ZUUHQLTNPZ3WASMRZANCNFSM6AAAAAAQUEKPHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@DeannaSpindler-NOAA the input file names will be things like 410001.txt, correct? If so, @JohnHalleyGotway looks like I'll need to parse these input file names to lookup a lat/lon. The buoy numbers are not inside the file anywhere. What do you think, does it break the design? |
I usually use the buoy ID as the file name, so '41001' or '41001.txt' is
correct.
…--
Deanna Spindler, PhD
Physical Scientist III
Lynker at NOAA/NWS/NCEP/Environmental Modeling Center
NOAA Center for Weather and Climate Prediction
On Wed, Sep 28, 2022 at 4:25 PM davidalbo ***@***.***> wrote:
@DeannaSpindler-NOAA <https://github.com/DeannaSpindler-NOAA> the input
file names will be things like 410001.txt, correct?
If so, @JohnHalleyGotway <https://github.com/JohnHalleyGotway> looks like
I'll need to parse these input file names to get to lookup a lat/lon. The
buoy numbers are not inside the file anywhere. What do you think, does it
break the design?
—
Reply to this email directly, view it on GitHub
<#2276 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK6TDPRY3K7BN3OQTOPYPO3WASSSFANCNFSM6AAAAAAQUEKPHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I found this and downloaded it: https://www.ndbc.noaa.gov/activestations.xml |
@JohnHalleyGotway I can't tell if its working or not. The difference between this and the other ascii input data I worked on (airnow) is that in this case each file has many times, for airnow each file had only one time. When I try to do these things to see if it's working: plot_point_obs it seems like it's not working, yet the code seems identical as far as adding observations no matter how much I look at it. Is it ok to put many times into a single netCDF output file? |
From @hsoh-u, saving for reference: The GRIB code can be saved by creating "obs_gc" variable instead of the "obs_vid". In this case, the global attribute "use_var_id" must be "false". I think MET prefers to use variable_ID over GRIB code. This means what is passed into the Observation constructor as 'grib_code' is actually index into the variables (0,1,2..) |
@jprestop, I have another file that is external and must be read in, just like previously for airnow data, to look up latitude/longitude. It is a table_file. Previously I handed a file to you and it showed up on a web page, if I'm remembering. You did 'something', not sure what. The file I need this time: /scratch/dave/ndbc_stations.xml I did add the file on my development branch here: |
Thanks @davidalbo. The last time I added data for you, I followed the instructions in this comment from @JohnHalleyGotway. However, looking at the content on mohawk at this location, /d2/www/dtcenter/dfiles/code/METplus/MET/MET_unit_test, it does not appear that table_files are considered unit_test data, so I do not believe that any further action is needed other than what you have already done. |
I had it backwards, I needed @jprestop to help to put unit test data into place, not for the table file. That is now done. |
…ork on documentation a bit. And minor tweaks to code comments.
Describe the New Feature
The desire to use buoy data in ASCII format for verification within MET has come up twice recently as seen in this GitHub discussion. This functionality is needed by both NOAA/EMC and NOAA/OPC. While the interim solution is using python embedding of point observations, the task for this issue is to support it directly via the ASCII2NC tool in MET. Please refer to this dtcenter/METplus#1482 issue for a related METplus use case.
Recommend supporting NDBC Buoy data. This issue includes:
-format
option to read this data.Acceptance Testing
List input data types and sources.
Describe tests required for new functionality.
Time Estimate
Estimate the amount of work required here.
Issues should represent approximately 1 to 3 days of work.
Sub-Issues
Consider breaking the new feature down into sub-issues.
None needed.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
2773542
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Likely no impacts, but recommend adding/updating METplus use cases to leverage this new functionality.
New Feature Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Linked 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: