Skip to content
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

What is src/sort_params_grib2_tbl.f90? #40

Closed
edwardhartnett opened this issue Dec 9, 2021 · 6 comments · Fixed by #101
Closed

What is src/sort_params_grib2_tbl.f90? #40

edwardhartnett opened this issue Dec 9, 2021 · 6 comments · Fixed by #101
Assignees
Labels
question Further information is requested

Comments

@edwardhartnett
Copy link
Contributor

What is the purpose of this program?

@edwardhartnett edwardhartnett added the question Further information is requested label Dec 9, 2021
@edwardhartnett
Copy link
Contributor Author

@BoiVuong-NOAA what is the purpose of this program?

Why can a regular unix sort command not be used?

@BoiVuong-NOAA
Copy link
Contributor

The purpose of this program is to sort all parameters in the file params_grib2_tbl_new. Jeff gave us a sort routine. Please ask Jeff.

@edwardhartnett
Copy link
Contributor Author

@jbathegit can you shed some light on this question?

@BoiVuong-NOAA
Copy link
Contributor

The params_grib2_tbl_new.text is a text format and all parameters is unsorted to a file params_grib2_tbl_new. This file will be used in g2tmpl library.

@edwardhartnett
Copy link
Contributor Author

OK, that raises the question: why not just keep the sorted list, and add new entries in their proper sorted places?

@BoiVuong-NOAA
Copy link
Contributor

Good question. Some users try to add new entries for their testing in the sorted file but not in the proper places. Therefore, it caused the program runs slow. The purpose of the file params_grib2_tbl_new.text is used to keep a log of information for adding or removing any parameters or adding new grib2 tables, etc. (it is same as a log file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants