-
Hello, I am trying to convert a txt file to a NetCDF file so I can use the point-stat tool. I am trying to modify the Ascii2NcConfig_default and getting it to work but it doesn't. ascii2nc Some help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, and thank you for your question. It looks like you've already done a good job of getting the data into a proper format for ASCII2NC. In your post, it seems like the error is in relation to a character space that makes the script try and read line 14 as a line of code, which is possibly the fault of line 1 where you have "Ascii2NcConfig/usr/local/share//usr/local/share/////" without a "//" at the beginning of the line to comment it out. I also saw you're utilizing the MET User's Guide for version 9.0.4. I strongly recommend that you begin using the latest version of the User's Guide, which is online for your convenience. Luckily, the ASCII2NC tool does not require the configuration file to run. And the
|
Beta Was this translation helpful? Give feedback.
-
@YakelynRJ I apologize for the VERY long delay in responding to this issue! @TaraJensen notified us about this orphaned issue. We're still figuring out these sort of details after transitioning from direct email support (met_help@ucar.edu) over to GitHub discussions. Once we answered your initial question about ascii2nc, I marked it as being ANSWERED which caused us to miss your follow up question about point_stat. Of course, it's often the case that one question leads to another! Our team has decided to start LOCKING conversations once they've come to a natural conclusion and the user has confirmed the answer. That should help us avoid this in the future. Locking a discussion prevents future posts and encourages users to ask new questions in new discussions. Our hope is that keeping each discussion topic as focussed as possible will make them more helpful to other users. But that's a digression. On to your question about Point-Stat. Basically, you're requesting that Point-Stat read "LHTFL/L0" data from an ECMWF GRIB2 file named forecast_october_2019.grib2 but MET can't find the requested data in that file. Whenever getting started with new datasets in MET, I always start by running MET's plot_data_plane utility. That confirms that MET can read data for the "name" and "level" requested, that it plots the data at the right spot on the earth, and that its oriented correctly. For GRIB2 data, there are seldom issues with the grid definition or orientation. Those issues are more common for custom NetCDF files. Regardless, plot_data_plane is a quick and easy way of getting the name and level settings right. But I need some sample data for testing. So I created an account with ECMWF and followed your instructions to retrieve data from apps.ecmwf.int/datasets/data/tigge/levtype=sfc/type=cf. Data for the month of October 2019 contains a whopping 3782 records. Here's the first 5 of them, as reported by wgrib2:
Running plot_data_plane...
It find 1891 matching records! One for each date:
So I reran to select only a single initialization and lead time:
Here's the resulting image:
But that's just an example, its really up to you to determine how to handle the actual forecast values and make them comparable to the observation values. In doing that, you may find the convert function to be useful. For example, if you need to divide the forecast values by 1000 before comparing them to the observations, you'd do so using the convert(x) function, like this:
Hope that helps. Please give plot_data_plane a try and let me know if you're able to make progress. |
Beta Was this translation helpful? Give feedback.
Hello, and thank you for your question. It looks like you've already done a good job of getting the data into a proper format for ASCII2NC. In your post, it seems like the error is in relation to a character space that makes the script try and read line 14 as a line of code, which is possibly the fault of line 1 where you have "Ascii2NcConfig/usr/local/share//usr/local/share/////" without a "//" at the beginning of the line to comment it out.
I also saw you're utilizing the MET User's Guide for version 9.0.4. I strongly recommend that you begin using the latest version of the User's Guide, which is online for your convenience.
Luckily, the ASCII2NC tool does not require the configuration …