pysteps
pysteps copied to clipboard
Optimizing the parameters for the optical flow calculation
[RMI/ KNMI / site specific] Is more better, and how to check this? Number of frames, other parameters
This can be done using ray as suggested by @dnerini
see example: https://colab.research.google.com/drive/1pMAJZ8AZe7gUDgCogenfdlc-ayX6kVVM?usp=sharing
Lukas-Kanade from openCV provides some uncertainty information about the u,v components, can we use this?
see example: https://colab.research.google.com/drive/1pMAJZ8AZe7gUDgCogenfdlc-ayX6kVVM?usp=sharing
if possible, one by product of this issue could be adding this example as a tutorial to the pysteps documentation
Hi!! As I mentioned yday ... I implemented in this example the INCA motion which uses the errors of previous nowcating to correct the latest kind-of-TREC motion vector computation. It uses numba but I am not sure this is required as a new library in pySTEPS but maybe we can think if these errors are useful for task 8 (velocity perturbation settings) or can help in optimizing the optical flow calculation. Here is the link to the example
Hi!! As I mentioned yday ... I implemented in this example the INCA motion which uses the errors of previous nowcating to correct the latest kind-of-TREC motion vector computation. It uses numba but I am not sure this is required as a new library in pySTEPS but maybe we can think if these errors are useful for task 8 (velocity perturbation settings) or can help in optimizing the optical flow calculation. Here is the link to the example
wouldn't this be rather a new feature to be implemented?
Hi!! As I mentioned yday ... I implemented in this example the INCA motion which uses the errors of previous nowcating to correct the latest kind-of-TREC motion vector computation. It uses numba but I am not sure this is required as a new library in pySTEPS but maybe we can think if these errors are useful for task 8 (velocity perturbation settings) or can help in optimizing the optical flow calculation. Here is the link to the example
wouldn't this be rather a new feature to be implemented?
I am not sure if you want me to implement these things in pySTEPS or not. I think the kind-of-TREC (using numba, so adding this dependency thing you mentioned) can be implemented in motion sublibrary. The previous nowcast errors computation and the introduction of those into the final vector motion can be also added but I am not sure the best place to do so. So any recommendation is welcome 😄 The think is that can be done and also understood as a correction to the error vector (so again in motion sublibrary) or as a preprocessing step (feature sublibrary). Also, in operations, this is not the way is done ... these errors are saved from the previous time steps. And last but not least, do we want to introduce the NWP wind correction as well?
Hi!! So, this is the link to the colab code. Can @dnerini tell me if I should link it in the repo or upload the notebook? And @sidekock, please have a look at let me know what would you change in the explanation 🤝
thanks! essentially the colab needs to be exported as jupyter notebook (.ipynb) and saved in the examples/ folder, same as with the my_first_nowcast.ipynb file. Rember to clear all output cells before exporting the jupyter from colab.
Then we can link it in the docs, same as the existing tutorial, see here: https://github.com/pySTEPS/pysteps/blob/d77fe738a98ac3f647d977e998a3c218192228ca/doc/source/index.rst?plain=1#L35
All this can be done in one PR, can you open one? I'll be happy to review it!
Looks good. Maybe we can change Note to Caution? It's a bit more alerting, no? But this is a very minor comment