DOI-USGS / DOI-USGS/ISIS3

cam2map USEPROJ mode writes misspelled EquitorialRadius keyword (missing "a")

Open Beginner friendly
#6,155 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
245
Forks
181
Avg merge
1d 22h
Merged PRs (30d)
15

Description

**ISIS version(s) affected**: 10.0.0

**Description**

`cam2map`'s `USEPROJ` branch builds its own `Mapping` group in C++ and writes the radius keyword as `EquitorialRadius` (missing the "a") instead of `EquatorialRadius`:

```cpp
mappingGroup.addKeyword(PvlKeyword("EquitorialRadius", toString(equatorialRadius, 15)));
```

https://github.com/DOI-USGS/ISIS3/blob/10.0.0/isis/src/base/apps/cam2map/cam2map.cpp#L81

**How to reproduce**

Run any `cam2map ... useproj=yes projstring="..."` invocation and inspect the intermediate `userMap`/`print.prt` output, or add a debug print in `cam2map.cpp` before the "copy defaults from camGrp" loop that follows it.

**Possible Solution**

Fix the spelling to `EquatorialRadius` at cam2map.cpp:81.

Contributor guide

Open the contributing guide

Research direction

Open isis/src/base/apps/cam2map/cam2map.cpp around line 81 and inspect the USEPROJ branch that builds the Mapping group. Run a cam2map invocation with useproj=yes and a projstring, then inspect the intermediate userMap or print.prt output. Done means the generated keyword is spelled EquatorialRadius.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
92/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.