Using Your Python Embedding Script with MET Tools
This section will largely follow the instructions in section titled "Python Embedding for Gridded Data", except you will be using your own Python Embedding script.
Recall the four Required Elements for Python Embedding with gridded data:
- The path to the MET tool executable you will be using
- The Python Embedding keyword
- The required argument for the MET tool you are using that must be modified for Python Embedding
- Any additional required arguments for the MET tool you are using
In this section, you will use plot_data_plane to run your Python Embedding script. The script you wrote in the "Writing A Python Script For Python Embedding" section supports both PYTHON_NUMPY and PYTHON_XARRAY.
First, verify you are in the Python Embedding practice directory:
Now try both of the sample commands below to run your Python Embedding script:
PYTHON_NUMPY
PYTHON_XARRAY
The resulting image, regardless of which approach you take (except for the string annotation which will change), should look like the following: