Skip to content
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

Implement support for three-dimensional input data #129

Open
pulkkins opened this issue Dec 1, 2019 · 2 comments
Open

Implement support for three-dimensional input data #129

pulkkins opened this issue Dec 1, 2019 · 2 comments
Assignees
Labels
discussion an open discussion for whole community enhancement New feature or request

Comments

@pulkkins
Copy link
Member

pulkkins commented Dec 1, 2019

Using three-dimensional input data from full radar volumes (instead of lowest-angle PPI or a low-level CAPPI) for extrapolation-based nowcasting is showing great promise. A number of papers have already been published about this. Therefore, it would be highly useful to implement support for three-dimensional input data into pysteps. There are several interesting ideas that could be implemented:

  1. Computation of the vertically integrated liquid (VIL), which results into a two-dimensional field. This can be easily implemented into pysteps. However, an estimate for the freezing level height is needed for this. Also, if the VIL is used as the forecast variable, it needs to be converted into an estimate of surface rain rate. This can be done by simple linear regression.
  2. Extension of advection field estimation into three dimensions. As far as I know, the OpenCV implementation of Lucas-Kanade does not support three-dimensional inputs, and a custom version needs to be implemented from scratch. For the other optical flow methods, the extension should be straightforward.
  3. Extension of the cascade decomposition and the autoregressive model into three dimensions. A vector autoregressive (VAR) model, where the rain rate/reflectivity at each altitude level is a separate variable, could also be tried.
  4. Three-dimensional noise generators.

What do you think?

@pulkkins pulkkins added enhancement New feature or request discussion an open discussion for whole community labels Dec 1, 2019
@pulkkins pulkkins self-assigned this Dec 1, 2019
@dnerini
Copy link
Member

dnerini commented Dec 1, 2019

Hi Seppo

This sounds all very exciting and would represent an excellent contribution to pysteps!
Similar developments are also being explored in machine learning approches to nowcasting (eg. this paper from Tran and Song).

Concerning point 1, I'm not sure how this fits within pysteps: computing the VIL is somewhat equivalent to computing the QPE field, as it represents a 2d analysis field from volumetric radar observations. In this sense, I would not consider it within the scope of pystpes. The 2d field of VIL can already be used for nowcasting with the current pysteps routines.

Concerning point 2, it is true that the OpenCV LK implementation does not support 3d arrays, but I don't think that it will be necessary to support 3d inputs in all the optical flow methods. Clearly, it would be interesting to implement a custom version of LK which supports it, but this should not slow down the rest of the developments.

Point 3 is really interesting and relates to #115. Maybe we should add a new nowcasting method instead of trying to include this idea as an option in the existing STEPS routine (in the same way SSEPS represents the localization of STEPS).

Point 4 is fairly straightforward for the non-parametric generator (assuming a regular spacing in the vertical dimension, too). The parametric generator currently will assume the same resolution on all dimensions, but this won't be difficult to generalize, I assume.

We should also think whether the pysteps.utils routines can ingest volumetric arrays, but my guess is that in most cases this is already possible.

Just one general concern: there are now quite a number of important developments still open (e.g. #115 for advanced AR models, including the use of an ARI model for STEPS, #78 for the spectral implementation and #12 for the xarray support). Perhaps it could be wise to complete those before opening yet another new large development?

What do you think?

@pulkkins
Copy link
Member Author

pulkkins commented Dec 2, 2019

Hi,

Thanks for your insightful comments. I have been thinking this a little bit more and came up with the following.

Point 1: I completely agree that computation of the VIL should be kept outside pysteps. I just wanted to point out that if you have reflectivity interpolated to a 3d grid, computation of the VIL is trivial to implement.

Point 2: Computation of a 3d advection field is an interesting idea but probably not very practical. In my opinion, the best approach is to model the horizontal advection and the vertical evolution separately to keep the computational requirements reasonable.

Point 3: Yes, this should be implemented in a separate module. In fact, I have already done this. The new method is called autoregressive nowcasting using VIL (ANVIL). The paper has been submitted to IEEE TGRS, and I will implement ANVIL to pysteps in the near future.

Finally, I agree that this issue should be addressed after the ones you mentioned have been completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion an open discussion for whole community enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants