-
Notifications
You must be signed in to change notification settings - Fork 6
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
NDcube "rebin" method applied to eiscube replaces uncertainty array with None #81
Comments
Hello, I am terribly sorry for the long delay! I somehow missed the notification for this issue. It looks like the As as side note, the uncertainty type in EISCube was initially left undefined since, at the time, there was no appropriate type for instrumental uncertainties (being, as they are, neither the standard deviation nor variance of the actual data values). However, I see that Astropy now allows for arbitrary uncertainty arrays. We will take a look into them and see if we can use them for the EISCubes. Thanks for using eispac! Please do not hesitate to let us know if you encounter any issues or have suggestions for how we can improve the code or documentation. |
Hi, Thank you very much for your help! Setting propagate_uncertainties=True to the rebin method returns the following warning : I will look into the smooth_cube function. Bests, |
Hi @adolliou. This issue was mentioned in the ndcube matrix chat last week but I was on vacation. @MJWeberg is right in answering your first question. HOWEVER, this will only work so long as NONE of the following conditions true:
These conditions are checked in the A Quick Note on Uncertainty TypesAstropy currently supports two known uncertainty types: Suggested Solutions
I would recommend option 2, although it does require a little detailed knowledge of how |
Thanks for checking in on this issue, @DanRyanIrish! I have not had the time to work on this recently, but I would be happy to look into adding a proper propagation function in a week or two after I get back from a conference. On this topic, would it make sense to add some kind of |
Dear all,
I tried to apply a spatial binning over the vertical axis before fitting the data. I tried the "rebin" method from the NDcube class, but it replaces the uncertainty array by none, making it impossible to perform a fitting afterwards. I suspect it might have something to do with the fact that uncertainty_type is not defined.
I wanted to know if there is a specific way to perform a binning with eispac ?
Thank you very much for your help.
As an example :
returns :
data_cube.data.shape=(152, 25, 32)
data_cube.uncertainty=UnknownUncertainty([[[ 34.06817081, 53.28593618, 49.9920177 ,
..., 43.90691806, 43.88902026,
-2112.19711304],
...
[ 42.82511634, 40.77855076, 51.64254604,
..., 55.3329251 , 43.88857749,
53.80620185]]])
data_cube_binned.data.shape=(76, 25, 32)
data_cube_binned.uncertainty=None
The text was updated successfully, but these errors were encountered: