-
Notifications
You must be signed in to change notification settings - Fork 169
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
Mutli-Segment DSKs are not being handled correctly #2632
Comments
This looks like an issue with how we are loading the DSKs. In NaifDskPlateModel::openDSK we are only loading the first segment of the DSK. Since the full release of the DSK software, DSK files can now be furnshd. We can also try and load each segment instead of just the first. |
We will also need to update the DSK intersection calls to the new functions, dskxsi_c and latsrf_c. |
This is additional info David sent. Hi Tim, here's a few examples that will hopefully illustrate the issue. I've attached a few test cubes, and you can get the DSK file at: https://naif.jpl.nasa.gov/pub/naif/DAWN/kernels/dsk/dawn_ceres_grv_m100_m00p03m0p3_v1.bds As I described in the previous email, this DSK covers 0-30 lat and 0-30 lon, but it's actually a compound file consisting of nine individual 10x10 degree panels. The individual subfiles can be listed using the SPICE toolkit "commnt" command commnt -r dawn_ceres_grv_m100_m00p03m0p3_v1.bds | grep dawn_ceres_g ... The first test is to load it into ISIS: dsk2isis from=dawn_ceres_grv_m100_m00p03m0p3_v1.bds to=dawn_ceres_grv_m100_m00p03m0p3_v1_dsk2isis.cub map=equi.map Looking at the loaded cube, though (dawn_ceres_grv_m100_m00p03m0p3_v1_dsk2isis.jpg), only the first of the 9 subfiles, covering 0-10 lat and 0-10 lon, seems to be loaded. The rest of the data is NULL. Another test is to use the DSK file with spiceinit. The first case here uses an image file that's entirely within the range 0-10 lat and 0-10 lon, and it seems to work fine: spiceinit from=FC21B0050527_16007232707F1D.cub spkpredicted=yes shape=user model=dawn_ceres_grv_m100_m00p03m0p3_v1.bds However, with another image that's outside of 0-10 lat and 0-10 lon (but still within the 0-30 lat and 0-30 lon that should still be covered by the DSK file), I get an out of range error: spiceinit from=FC21B0050201_16006200347F1D.cub spkpredicted=yes shape=user model=dawn_ceres_grv_m100_m00p03m0p3_v1.bds So again it seems like ISIS is only reading the first subfile/panel contained in the DSK file. Hopefully this illustrates the issues well enough, let me know if you have any questions. Thanks, Dave |
Successfully reproduced, now to fix |
For ISIS 3.6.2, this has been fixed when using the Bullet ray casting engine. In order to use this, you will need to modify your IsisPreferences file so that your
This will make ISIS use the Bullet library to do all intersections with DSK files. You may notice a small start-up time when working with a lev1 image that has been spiceinit'd with a DSK, but all of the processing after that will be significantly faster than the default NAIF Toolkit routines. |
This is issue has been reported by the Dawn mission team. Their comments follow:
The text was updated successfully, but these errors were encountered: