Skip to content

ascii2nc: MET/11.1.0 and METplus/5.1.0 to support multiple variables (Python) #2686

Closed Locked Answered by DanielAdriaansen
pratiman-91 asked this question in File I/O
Discussion options

You must be logged in to vote

Hi @pratiman-91!

Thanks for your question. The netCDF file for point observations generated by PB2NC and other MET tools is specific to MET and very complex in its construction. I would strongly advise against attempting to generate this type of file from scratch.

Instead, you can use Python embedding with ASCII2NC to get the same result. ASCII2NC can support multiple variables via the var column in the 11-column data you provide from Python. Here is an example use case of using Python embedding with ASCII2NC:
https://metplus.readthedocs.io/en/latest/generated/met_tool_wrapper/ASCII2NC/ASCII2NC_python_embedding.html#sphx-glr-generated-met-tool-wrapper-ascii2nc-ascii2nc-python-embedding-py

L…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pratiman-91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants