Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,22 @@ namespace Isis {
// Set proper end frame
int tmcFrame(0);
if (naifIkCode() == -152210) {
// Frame DAWN_VIR_VIS : DAWN_VIR_VIS_ZERO
tmcFrame = -152220;
}
else if (naifIkCode() == -152211) { // (channelId == "IR)
// Frame DAWN_VIR_IR : DAWN_VIR_IR_ZERO
else if (naifIkCode() == -152211) {
QString msg = "Cube [" + cube.fileName() + "] has instrument [" + inst["InstrumentId"] + "]. "
"Support for AFT or FORE cubes is not available in the Chandrayaan2 TMC-2 ISIS camera model. Please use the CSM camera model by running csminit."
"For more information, see: "
"https://astrogeology.usgs.gov/docs/concepts/missions/chandrayaan2/";
throw IException(IException::User, msg, _FILEINFO_);
tmcFrame = -152221;
}
else if (naifIkCode() == -152212) {
QString msg = "Cube [" + cube.fileName() + "] has instrument [" + inst["InstrumentId"] + "]. "
"Support for AFT or FORE cubes is not available in the Chandrayaan2 TMC-2 ISIS camera model. Please use the CSM camera model by running csminit."
"For more information, see: "
"https://astrogeology.usgs.gov/docs/concepts/missions/chandrayaan2/";
throw IException(IException::User, msg, _FILEINFO_);
tmcFrame = -152222;
}
else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Unit test for Chandrayaan2TMC camera.
FileName: ch2_tmc_ncf_20231030T1757326391_d_img_d18.cub
CK Frame: -152221
CK Frame: -152220

Kernel IDs:
CK Frame ID = -152001
Expand All @@ -15,25 +15,25 @@ Instrument Name Short: TMC-2

For upper left corner ...
DeltaSample = 0.000000000
DeltaLine = -0.000855841
DeltaLine = 0.000000000

For upper right corner ...
DeltaSample = 0.000000000
DeltaLine = -0.000855841
DeltaLine = 0.000000000

For lower left corner ...
DeltaSample = 0.000000000
DeltaLine = 0.000496502
DeltaLine = 0.000000000

For lower right corner ...
DeltaSample = 0.000000000
DeltaLine = 0.000496502
DeltaLine = 0.000000000

For center pixel position ...
DeltaSample = 0.000000000
DeltaLine = 0.000000000

Universal latitude: -88.685764645
Universal longitude: 161.291870743
RightAscension: 276.119202527
Declination: 40.856287254
Universal latitude: -87.603907998
Universal longitude: 189.674455379
RightAscension: 280.344745141
Declination: 65.563417917
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(void) {

try {

std::string pref = "ch2_tmc_ncf_20231030T1757326391_d_img_d18";
std::string pref = "ch2_tmc_ncn_20231030T1757326423_d_img_d18-crop";
std::string path = "../../../../tests/data/chandrayaan2/" + pref + ".cub";
Cube c(path.c_str(), "r");
Camera *cam = CameraFactory::Create(c);
Expand Down

Large diffs are not rendered by default.