-
Notifications
You must be signed in to change notification settings - Fork 25
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
Application to 1-dim data #133
Comments
No. 🙃 The method is applicable to 1D data. But this package assumes everywhere that the data are 2D. That could be changed, but that may be out of scope. |
I think all we need is a kernel for a 1D Laplacian. You can set |
Ah, I see. Is there a way to use the package to reproduce plots like Figure 11 in the paper? or was that done using code that is not here? Would creating a dimension of size 1 solve it? |
The code for that figure is not here, and it looks like it didn't make it onto the source repository for that paper. That said, all that would be needed to reproduce within gcm-filters it is to define a 1D Laplacian kernel. I think @jakesteinberg might also have the original code on one of his repositories. |
Ok. Thank you for such a quick response. :) |
Hi! Yes, I feel late to the party haha. I used an older version of the code to make that figure (pre gcm-filters but with the same filter kernel idea/process, thanks to @iangrooms help way back at the beginning of this). I can help you make this work if you'd like. I guess I should also try and package up the 1D Laplacian kernel I have and make a pull request. The functions I built are in here and the main one 'Filter()' is applied to 1D data here. It is all a bit simpler (and messier) than gcm-filters, ha. |
It is not something essential to me right now. However, thinking broadly I feel like this example should be within the scope of the package since the paper literally has a section titled "Application to 1-D observational data". Also if we want to use this package with most obs data, we will need it. |
I agree that we should have this. It shouldn't be hard to convert existing 2D kernels to 1D, but we might want to add some extra errors/warnings. E.g. if the user tries to use a kernel that is not consistent with the value of |
Is it possible to apply the package to 1D data? I noticed that there is an example in the paper applying to 1D satellite data (@jakesteinberg).
However, when I try to apply to a 1D data, I get the following error:
Seems like 2-Dimensionality is asserted in the code. Am I missing something?
The text was updated successfully, but these errors were encountered: