Adam,
If you're working with level 2 data, I'd advise you to make your life easy
and use PyART, which is the Python ARM Radar Toolkit:
https://arm-doe.github.io/pyart/
You can install that from the conda-forge channel for conda:
conda install -c conda-forge arm_pyart
At the URL above, they have a good set of examples, including one that
shows multiple variables:
https://arm-doe.github.io/pyart/dev/auto_examples/plotting/plot_nexrad_multiple_moments.html
All you need to do is talk to THREDDS, which you can do by replacing
`read_nexrad_archive` in the example above with `read_nexrad_cdm`, and pass
it the OPeNDAP URL.
Ryan
On Mon, Feb 27, 2017 at 10:46 AM, Lampl, Adam <alampl@xxxxxxxxxx> wrote:
> Hello,
> I have been creating a jupyter notebook to show how to access NEXRAD level
> 2 radar data using opendap accesss. I was wondering is if there is code
> available that i can use to be able to display a 2D map based on the
> variable I choose. The level 3 cdmr access example seems to be too
> different to use to level 2 data. For opendap access on the thredds site I
> take the data url and do ncview in my terminal but how can I do something
> like that in my notebook. As of right now the !ncdump command isn’t working
> and giving me the error *** ncdump: ncopen failed on [the url i used].
> For a while i couldn’t use import Dataset from netCDF4 but created a new
> environment with only the necessary packages and that seemed to do the
> trick.
> Is there also some kind of code where it can output me a data url and then
> i can do something like ncview interactively right in the notebook? If i
> can display a map for each inputted a variable then my notebook is
> complete! Hope someone can help and thanks again.
> Sincerely,
> Adam Lampl
>
--
Ryan May, Ph.D.
Software Engineer
UCAR/Unidata
Boulder, CO