Project

General

Profile

Bug #4586

grid application not working on multi-band ISIS cubes

Added by Lucille Le 11 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
Applications
Target version:
-
Impact:

grid will now work on multi-band cubes without camera models

Test Reviewer:

Description

The grid routine does not seem to work with a multi-band ISIS cube. I tried to run it on a mosaic with 4 bands and I got an error. It works fine on a mosaic with only one band.

Here are the error messages:

Group = Error
Program = grid
Code = 1
Message = "Unable to initialize camera model from group [Instrument]"
File = CameraFactory.cpp
Line = 100
End_Group

Group = Error
Program = grid
Code = 1
Message = "Unable to find PVL group [Instrument] in file
[color_mosaic.cub]"
File = PvlObject.cpp
Line = 93
End_Group

I applied the grid routine on a mosaic cube with one band only and no instrument group in the label and it worked fine. So the missing PVL group Instrument does not seem to be the reason for the error. I have this issue only with multi-band ISIS mosaic cubes. If I add an Instrument group in the label it produced a new error saying the PVL group Kernels is missing, which is usually not there for a mosaic. For a single band mosaic cube that does not have Instrument or kernels group the grid routine ran fineā€¦


Related issues

Related to ISIS - Bug #2191: grid does not produce a valid lat/lon grid for multi-band cubes with a band dependent camera Closed

History

#1 Updated by Tammy Becker 11 months ago

  • Status changed from New to Acknowledged

Thank you for reporting this. We will begin with reproducing this problem internally.

Updates will be added to this ticket.

#2 Updated by Tammy Becker 11 months ago

  • Related to Bug #2191: grid does not produce a valid lat/lon grid for multi-band cubes with a band dependent camera added

#3 Updated by Tammy Becker 11 months ago

we have been able to reproduce the problem as you describe.

It was most likely introduced when grid was modified about 2 years ago for band-dependent cameras. grid works fine on a multi-band mosaic under a 2013 version of isis3.

This might not be scheduled to fix until the July release. In the meantime, a workaround (though annoying) is running
grid on each band separately as follows and restack into a multiple band cube (you might have already figured this out):

grid from=4bandmosaic.cub+1 to=band1mosaic.cub
grid from=4bandmosaic.cub+2 to=band2mosaic.cub
and so on for bands +3 and +4.

Create a single column list of filenames for band1mosaic.cub, band2mosaic.cub...
ls band*mosaic.cub > separate-band-mosaics-with-grid.lis

cubeit fromlist=separate-band-mosaics-with-grid.lis to=4bandmosaic-with-grid.cub

thank you again, for reporting this.

#5 Updated by Makayla Shepherd 10 months ago

  • Assignee set to Makayla Shepherd

#6 Updated by Makayla Shepherd 10 months ago

  • Status changed from Acknowledged to In Progress

#7 Updated by Makayla Shepherd 10 months ago

  • Status changed from In Progress to Resolved

#8 Updated by John Shinaman 10 months ago

A User Test has been developed and the fix has been successfully tested. The User Test resides in /work/projects/usertests/UserTestPlans/Apps/grid/m04586. Please close this ticket.

#9 Updated by Tammy Becker 9 months ago

  • Status changed from Resolved to Closed

#10 Updated by Makayla Shepherd 9 months ago

  • Impact updated (diff)

#11 Updated by Makayla Shepherd 9 months ago

  • Impact updated (diff)

Also available in: Atom PDF