-
Notifications
You must be signed in to change notification settings - Fork 45
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
Something wrong with the computation of Av? #30
Comments
Looking at the code I don't see why it would be ignored. |
diam_min = 0.1 geom_back = (90.0, 90.0, 0.0, 180.0, 0.0, 0.0) wavelength = tmatrix_aux.wl_C psd = GammaPSD(D0=3, Nw=10e3, mu=0, D_max=diam_max) |
radar.Ai(scatterer, h_pol=True) calls scatter.ext_xsect(scatterer, h_pol=h_pol) If the PSD integrator is not None ext_xsect returns: scatterer.psd_integrator.get_angular_integrated( but in this call the information of which polarization you want is lost. By default you get the horizontal polarization regardless of the intended polarization. Am I right or I am missing something? |
Looks like there's indeed a bug. I'm working on a fix. |
Thanks a lot! |
Hi @jfigui, could you check if it works for you with the latest commit? |
Hi @jleinonen , It works for me now. See the output: Could you make a new release soon? I work with the pypi package usually |
I don't manage the conda package (someone created it without my knowledge) so I have little control over it. As I understand it gets updated when I create a new release. |
I think if you create a new Pypi package you should get a new conda package at some point. At least this is how it works for us using conda-forge |
Thanks for being so reactive. Let me know when the new release is ready |
Version 0.3.3 is now on PyPI. The conda package should eventually update automatically, as mentioned. |
Great! Thanks a lot for being so reactive. For info I am using pytmatrix in a software package to compute the scattering properties of different hydrometeors. The code is now public and you can find it here: https://github.com/openradar/hydroscatt I would be grateful if you have a look and report any bug. |
Hi, i tried conda-forge the pytmatrix module using But i keep having the same issue : PackagesNotFoundError: The following packages are not available from current channels:
Current channels: To search for alternate channels that may provide the conda package you're
and use the search bar at the top of the page. I also downloaded the file and |
Hi @jleinonen ,
When I compute Ah and Av of rain with a prescribed canting angle using the psd_integrator I get exactly the same results for Ah and for Av. In fact the parameter h_pol in radar.Ai(scatterer, h_pol=False) seems to be ignored when using the integrator.
I am missing something or is this indeed a bug in the code?
Cheers,
@jfigui
The text was updated successfully, but these errors were encountered: