Open andreufont opened 4 years ago
Hi @andreufont I'm happy to pick this up, have you tested it works with Simeon's master on fake_spectra
? We could switch to using that instead of my modified fake_spectra
branch. As far as I understand it temperature rescalings are possible on master, but I haven't experimented with using the RateNetwork
class to do this, and we would also have to modify the existing scripts to work with the RateNetwork syntax.
The other thing that would change if we switch branches is the fit range. Currently when I compare the TDR fits between my and Simeon's branches, there's a ~4% difference, likely due to differences in the fit ranges and method.
So I guess we either:
Switch to master and:
Stick with my modified branch and update it to include the multiple-axis commits that you added to fake_spectra
master.
Either way I don't think we need to store the p1d along each axis as part of the emulator data, only the combined p1d.
Lets discuss this tomorrow!
Yes, master branch in fake_spectra works for set_axis, I've used it extensively in Sherwood sims.
Good point about rescalings and fitting ranges, let's chat later today.
Adds option to specify the axis along which we want to extract the skewers and measure p1d.
It also includes book-keeping changes in extract_skewers.py and snapshot_admin.py related to issue #98.
When using axis=None, the code reproduces the current p1d (with the book-keeping changes mentioned above).
Before merging this, we should wait for GriddedSpectra in fake_spectra to be updated: https://github.com/sbird/fake_spectra/issues/42