Skip to content

aria.calcGUNW: TROPO_GROUP.split() appears to do nothing #675

@nate-kean

Description

@nate-kean

In RAiDER.aria.calcGUNW.py, TROPO_GROUP is defined as follows:
https://github.com/dbekaert/RAiDER/blob/87efdce2246419878983d7606338f8fb0f04d54b/tools/RAiDER/aria/calcGUNW.py#L112-L18

Later, it is used like this, where it is split into a list by spaces:

for k in TROPO_GROUP.split():
h5 = h5[k]

However, TROPO_GROUP has no spaces so this always produces a list with just one element. Is this meant to split by slashes instead? Or is the value of TROPO_GROUP wrong?

To add to the confusion, the basename is also taken of this variable as if it is a path, although nothing else seems to indicate it is a path.

logger.info('Updated %s group in: %s', os.path.basename(TROPO_GROUP), path_gunw)

What is TROPO_GROUP supposed to be? Is all this code behaving as expected?

Desktop (please complete the following information):

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions