To avoid affecting the original test data file, copy the OCO3 test data file (I chose this file because it has groups) from tests/data/OCO3/OCO3_L2_LITE_SIF.EarlyR/oco3_LtSIF_200226_B10206r_200709053505s.nc4 to a new directory, let's say ~/test_temp/oco3_LtSIF_200226_B10206r_200709053505s.nc4.
Then run the subsetter — without any variables specified — at the command line:
poetry run l2ss-py ~/test_temp/oco3_LtSIF_200226_B10206r_200709053505s.nc4 ~/test_temp/oco3_LtSIF_200226_B10206r_200709053505s_subsetted.nc4 --bbox -180 -90 180 90
The following error is raised:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/dkaufma3/projects/l2ss-py/podaac/subsetter/run_subsetter.py", line 116, in main
run_subsetter(sys.argv[1:])
File "/Users/dkaufma3/projects/l2ss-py/podaac/subsetter/run_subsetter.py", line 95, in run_subsetter
subset.subset(
File "/Users/dkaufma3/projects/l2ss-py/podaac/subsetter/subset.py", line 1080, in subset
variables = ['/' + var if not var.startswith('/') else var for var in variables]
TypeError: 'NoneType' object is not iterable
To reproduce:
To avoid affecting the original test data file, copy the OCO3 test data file (I chose this file because it has groups) from
tests/data/OCO3/OCO3_L2_LITE_SIF.EarlyR/oco3_LtSIF_200226_B10206r_200709053505s.nc4
to a new directory, let's say~/test_temp/oco3_LtSIF_200226_B10206r_200709053505s.nc4
.Then run the subsetter — without any variables specified — at the command line:
The following error is raised: