stcorp / harp

Data harmonization toolset for scientific earth observation data
http://stcorp.github.io/harp/doc/html/index.html
BSD 3-Clause "New" or "Revised" License
58 stars 19 forks source link

Allow logarithmic averaging of pressure variables when regridding, binning #251

Open StevenCompernolle opened 3 years ago

StevenCompernolle commented 3 years ago

For pressure variables like cloud_pressure, application of bin_spatial (or other gridding or binning routines) is preferably done with averaging for log10(cloud_pressure) instead of cloud_pressure. One solution is to convert to logarithmic variables (e.g., cloud_pressure_log10), apply then the bin_spatial, and convert back. Currently such operations are not allowed in HARP. Other option could be to have an option in the binning or regridding operations that allow averaging in log space.

svniemeijer commented 3 years ago

Good point. We already use logarithmic-aware treatment of pressure when performing vertical regridding. But we should indeed also apply this for spatial averaging.

StevenCompernolle commented 3 years ago

Any chance to include this for the next release 1.14, or is this a longer-term change? I could use it for my TROPOMI validation work.

svniemeijer commented 3 years ago

I will have a look. It is a busy period, but the change shouldn't be too big.