Conversation
119daf3 to
cdc7b2d
Compare
|
With the overall caveat that I have the same heebie-jeebies that Vandana has (who will use this? who will trust this? how will people find this? how will people know what (data sets, visualizations, readouts, files) to trust (or initiate this behavior with) and what not to trust?)...
further heebie-jeebies questions include but are not limited to: what will the readout give me in a 3-color hips image? where is it pulling the fits files from (truly original fits files or the pieces that were used to construct the hips image)? why are the point sources often but not always distorted in the pan starrs tiles? how will we convey to users what this is, when it's available, how and when to trust it? (i'm still an advocate for getting this tool's functionality: https://firefly-2058-hips.irsakubedev.ipac.caltech.edu/firefly/onlinehelp/#id=visualization.selectregion |
|
ok, updating now that i know how to see the data that appear in the SPHEREx hips image:
copying from slack conversation so that i don't lose it - more heebie-jeebies from working with PanSTARRS z: Trey says that it works better if you pull tiles from a further zoom in rather than zoom out. this.. doesn't make any sense to me. |
The fits files are east right, so the image has to be fliped to WCS match |
|
But the HiPS aren't East right? |
|
The hips are east left, so the FITS has to be flipped to WCS match them |
- Fits file extraction - Fits readout - Fits cube integration - Wcs lock will support syncing cube planes - Download request can attach to an active download - Improved caching - rEdo flux readout so the the readout data all on the server - Fixed wcs match issue
cdc7b2d to
4cbf278
Compare
|
@lrebull I made some tweeks to the extraction
The new build is ready. |
|
pop-up window punctuation:
pop-up when you're back on the FITS is much better! wcs is now linked for me too. i don't know exactly what was happening for me before, but it wasn't just me before. (we saw it on someone else's screen too!) I'm not sure "hips debug" is as clear as i thought it would be in my head. i bet the others will Have Opinions on what it should be.. |
aventura121
left a comment
There was a problem hiding this comment.
Hi, overall looks good, with a few errors spotted.
| const cell = getHealpixCellAtNorder(norderForFitsReadout, worldPt, plot.dataCoordSys); | ||
| if (!cell || norderForFitsReadout<1) return; | ||
| const hipsTileUrl= makeHipsFitsTilePath(plot,norderForFitsReadout,cell.ipix); | ||
| const {tileImagePt}= getHealpixPixelAtNorder(norderForFitsReadout,worldPt); |
There was a problem hiding this comment.
Trey, will this work on a non-equatorial survey (I'm assuming it's intended to)? Claude pointed me to this code because it doesn't do the conversion from the worldPt. I tried it on IRAC1 for M81's nucleus and it reads 0.058, which is too low; panning around also doesn't read out the values you'd expect (i.e. from lighter to darker, etc.).
There was a problem hiding this comment.
After evaluation. HiPS always has a projection and we can compute a WorldPt. A FITS image may not have projection information and we do support that in other context. When interacting with a HiPS we should always have a valid WorldPt or it is outside of the projection which is also meaningful.
I had not tested with IRAC1. After testing, it mostly seems that brighter source had greater values, though I did see some that did not make sense. Some of the old HiPS repositories seem to have some problems with their backing FITS. Overall I am fairly (sort of ?) confident that is is working.
There was a problem hiding this comment.
The bug is that on a non-equatorial HiPS, the helper function getHealpixPixelAtNorder returns an offset based on the wrong tile, because it never converts the world point coordinates when identifying the tile.
The general flow is that the worldPt comes into makeHiPSPlotAsyncReadout as EQ J2000.
On line 276 getHealpixCellAtNorder(norderForFitsReadout, worldPt, plot.dataCoordSys) converts the coordinates (it calls convertCelestial(wp, dataCoordSys)) before returning the cell from which we construct the tile url.
So far so good because the non-equatorial coordinates were converted and now we have the correct tile url.
But on line 279, getHealpixPixelAtNorder(norderForFitsReadout, worldPt) gets the tile and computes the offset in that cell, but this time it doesn't do the coordinate conversion. It just skips it. So in this helper the tile is wrong.
Fix would be to give getHealpixPixelAtNorder the same conversion the cell version uses, then pass plot.dataCoordSys at the call site:
// HiPSUtil.js
export function getHealpixPixelAtNorder(tileNorder, wp, dataCoordSys) {
if (tileNorder>MAX_SUPPORTED_HIPS_LEVEL-9)
const dataWp = convertCelestial(wp, dataCoordSys);
const polar = radecToPolar(dataWp.x, dataWp.y);
...
}
// MouseReadoutWatch.js:279
const {tileImagePt}= getHealpixPixelAtNorder(norderForFitsReadout, worldPt, plot.dataCoordSys);
There was a problem hiding this comment.
ok, thanks, I will fix it
There was a problem hiding this comment.
After studying the problem I realized I was mis-understanding what you were saying. For whatever reason I misread non-equatorial to mean "hips without a projection". After re-reading you were saying non-equatorial! In the HiPS case you were saying "it is not working when the data coordinate system is galactic".
Yes, you are correct. The point has to converted to the data coordinate system, in case J2000 to galactic, before it can investigate the tile pixel offsets. Most HiPS are in J2000 (an equatorial projection), however the IRAC ones are in galactic.
Actually this has happened before, I need to remember to test against galactic based HiPS.
Thanks for pursuing this issue.
|
@aventura121 - made a new build with the response to feedback |
|
@aventura121 - another new build. |


Firefly-2058: HIPS handling underlying FITS, with extract and readout
FitsReadUtil.javaHiPSListUtil.javaFiles with big changes
Testing
https://firefly-2058-hips.irsakubedev.ipac.caltech.edu/firefly
Test HiPS, there have underlying FITS images as well
PanSTARRS-> choosePansSTARRS DR1 zURL-> enter url belowTesting after the hips is loaded
retrieving...at the beginningExtract Tile