Closed syedhamidali closed 1 year ago
That version of jaxlib may not be compatible with Python 3.8. I would try to uninstall jaxlib to see if you can get it to import. If you are not using Jax for the engine then PyDDA will work without it. It should recognize the lack of Jax and act accordingly.
Hi @rcjackson,
I would like to know how I can use it as it is meant to. Which python version should I use? Should I install JAX, should tensor flow be 2.6 only, or the latest ones should also work?
conda create -n dda python=3.10 tensorflow tensorflow-probability jax arm_pyart jupyter -c conda-forge
How about this command?
Hamid,
Jax and TensorFlow are optional requirements for PyDDA so you don’t need either to run it. However, if you wish to run it with TensorFlow which is my recommendation, you need to install the proper TensorFlow for your version of Python. If you removed jax from that command you should be able to have matching tensorflow and tensorflow-probability, as the TensorFlow you need depends on the Python version and the version of tensorflow-probability you have. Conda should match up the needed versions together if you do that command minus jax.
Bobby
From: Hamid Ali Syed @.> Date: Monday, November 21, 2022 at 2:57 PM To: openradar/PyDDA @.> Cc: Jackson, Robert @.>, Mention @.> Subject: Re: [openradar/PyDDA] import and installation error (Issue #76)
Hi @rcjacksonhttps://github.com/rcjackson, I would like to know how I can use it as it is meant to. Which python version should I use? Should I install JAX, should tensor flow be 2.6 only, or the latest ones should also work? conda create -n dda python=3.10 tensorflow tensorflow-probability jax arm_pyart jupyter -c conda-forge How about this command?
— Reply to this email directly, view it on GitHubhttps://github.com/openradar/PyDDA/issues/76#issuecomment-1322631078, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFIQA5DXUBJFYOS64G53NELWJPO35ANCNFSM6AAAAAASG6BNL4. You are receiving this because you were mentioned.Message ID: @.***>
Dear Bobby, Thank you for this information. I would also like to know a few more things, as listed below;
grid = pyart.map.grid_from_radars([radar1, radar2, radar3, radar4],(41, 501, 501),
((0.,15000.),(-900000.,900000.),(-900000.,900000.)),
weighting_function='Barnes2',
fields=['reflectivity', 'velocity'],
gatefilters=gatefilter)
I was able to install and import it using conda create -n dda python=3.10 tensorflow tensorflow-probability jax arm_pyart jupyter -c conda-forge
.
Thank you for your quick response.
Cool. This looks like it’s a Python 3.8 issue. I am fine with dropping support for Python 3.8 in the next release.
From: Hamid Ali Syed @.> Date: Monday, November 21, 2022 at 3:25 PM To: openradar/PyDDA @.> Cc: Jackson, Robert @.>, Mention @.> Subject: Re: [openradar/PyDDA] import and installation error (Issue #76)
I was able to install and import it using conda create -n dda python=3.10 tensorflow tensorflow-probability jax arm_pyart jupyter -c conda-forge. [Screen Shot 2022-11-21 at 4 21 55 PM]https://user-images.githubusercontent.com/35923822/203160780-77f021b2-6b97-43f2-9c55-3bbfeb40baae.png Thank you for your quick response.
— Reply to this email directly, view it on GitHubhttps://github.com/openradar/PyDDA/issues/76#issuecomment-1322665398, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFIQA5HRIFCE5YNNEQADK5TWJPSCVANCNFSM6AAAAAASG6BNL4. You are receiving this because you were mentioned.Message ID: @.***>
And how about this question https://github.com/openradar/PyDDA/issues/76#issuecomment-1322654642 ?
Dear Bobby, Thank you for this information. I would also like to know a few more things, as listed below;
- to perform a multi-doppler analysis, you are using the readily transformed gridded data in the examples. Should I do gridding to radar data one by one, or should I do gridding and merge multiple radars in one go? gridding and merging all radars like this:
grid = pyart.map.grid_from_radars([radar1, radar2, radar3, radar4],(41, 501, 501), ((0.,15000.),(-900000.,900000.),(-900000.,900000.)), weighting_function='Barnes2', fields=['reflectivity', 'velocity'], gatefilters=gatefilter)
You should grid each radar one by one and make sure that they all have the same grid specification.
grid = pyart.map.grid_from_radars([radar1, radar2, radar3, radar4],(41, 501, 501), ((0.,15000.),(-900000.,900000.),(-900000.,900000.)), weighting_function='Barnes2', fields=['reflectivity', 'velocity'], gatefilters=gatefilter)
@syedhamidali Can I ask you how to grid each radar one by one and make sure that they all have the same grid specification?
@Qxaqq Here is the notebook: https://openradarscience.org/ams-open-radar-2023/notebooks/pydda/Retrieving_winds_with_pydda.html
@syedhamidali Thank you.I saw your codeconda create -n dda python=3.10 tensorflow tensorflow-probability jax arm_pyart jupyter -c conda-forge
.But i cannot successfully create a python=3.10 environment.I've been using a python=3.9 environment.Can you help me?What is your PyDDA version?What system is your computer?
@Qxaqq I am using MacOS, what is the error exactly?
@rcjackson I am using Windows.Packages are not compatible with each other.Example:tensorflow numpy py-art xarray.
UnsatisfiableError:The following specifications were found to be incompatible with each other
@rcjackson @syedhamidali Another question is, what do the black circles and yellow arcs in the plot_horiz of the dual-radar DDA in the example mean?
Dear @rcjackson, I want to say that I was trying to install PyDDA, and it got installed successfully, but I cannot import it. It throws some errors, as listed below. I manually tried to install jaxlib=0.3.7 using conda, and somehow it doesn't install it.
the error is
and the status of the manual installation of jaxlib is