The temperature gridded product code (after #809) seems to work fine and it's reasonably clear what it does. However, I think it could be made clearer, simpler and possibly faster/more efficient by making use of some existing packages:
- Use numpy arrays for all data handling and avoid looping arrays or through lists of arrays.
- Better still, use the xarray package to handle both netCDF i/o and array arithmetic. E.g. it has methods that could replace some of the binning code.
- Use boto3 to get files from S3 directly, rather than via HTTP.
Don't know if we'll ever have time to work on these, just wanted to make a note while I thought of it. To an extent this also applies to the burst-averaging code.