Commits

Kana Sugimoto authored a7e91aae486
A workaround fix to 1-based refChan in getRefChan().
No tags

gcwrap/tools/atmosphere/atmosphere_cmpt.cc

Modified
598 598 atmosphere::getNumChan(int spwid)
599 599 {
600 600 auto myfunc = (unsigned int(SpectralGrid::*)(unsigned int) const)&SpectralGrid::getNumChan;
601 601 return DoSpGridSingleIdFuncInt(myfunc, spwid);
602 602 }
603 603
604 604 int
605 605 atmosphere::getRefChan(int spwid)
606 606 {
607 607 auto myfunc = (unsigned int(SpectralGrid::*)(unsigned int) const)&SpectralGrid::getRefChan;
608 - return DoSpGridSingleIdFuncInt(myfunc, spwid);
608 +// return DoSpGridSingleIdFuncInt(myfunc, spwid);
609 +// KS NOTE A WORKAROUND FOR CAS-10228.
610 + return DoSpGridSingleIdFuncInt(myfunc, spwid)-1;
609 611 }
610 612
611 613 /// a private helper function
612 614 int atmosphere::DoSpGridSingleIdFuncInt(SpGridSingleIdFuncInt func, int spwid)
613 615 {
614 616 int rstat(-1);
615 617 try {
616 618 if (pSpectralGrid) {
617 619 assert_spwid(spwid);
618 620 rstat = (pSpectralGrid->*func)(static_cast<unsigned int>(spwid));

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut