If one chooses the model as the target space, then the following error is encountered:
IndexError: single positional indexer is out-of-bounds
This happens because orig_def in line 245 is defined incorrectly:
orig_def = pyresample.geometry.SwathDefinition(lons=prlon, lats=AODN['LONGITUDE'].values[indt]); del prlo
The fixed line of code will be:
orig_def = pyresample.geometry.SwathDefinition(lons=prlon, lats=AODN['LATITUDE'].values[indt]); del prlon
This, of course, has no impact on the averaging along-track option (observations as target space) which is used in most of the cases.
If one chooses the model as the target space, then the following error is encountered:
IndexError: single positional indexer is out-of-bounds
This happens because orig_def in line 245 is defined incorrectly:
orig_def = pyresample.geometry.SwathDefinition(lons=prlon, lats=AODN['LONGITUDE'].values[indt]); del prlo
The fixed line of code will be:
orig_def = pyresample.geometry.SwathDefinition(lons=prlon, lats=AODN['LATITUDE'].values[indt]); del prlon
This, of course, has no impact on the averaging along-track option (observations as target space) which is used in most of the cases.