Hi Sander,
I’m trying to grid L2 OMI SO2 data which is supported by Harp. I can do it fine, but I need to incorporate the following data filters recommended by the data source:
Solar zenith angle < 60
Cloud Radiance Fraction < 0.3
OMI row number 4-54, 0-based
Additionally if you can calculate the air mass factor (from scattering weight and GEOS5 layer weight), you can have an additional filter: air mass factor > 0.3
Currently my code looks like this and I don’t know how to do the last two filters. Could you help me:
product = harp.import_product(r"/Users/varsharao/Downloads/May1_2020_SO2/*.he5", operations=‘solar_azimuth_angle<60;cloud_fraction<0.3;keep(latitude_bounds,longitude_bounds,SO2_column_number_density);bin_spatial(1801,-90,0.1,3601,-180,0.1);derive(SO2_column_number_density [DU])’, post_operations=“bin();squash(time, (latitude_bounds,longitude_bounds));derive(latitude {latitude});derive(longitude {longitude});exclude(latitude_bounds,longitude_bounds,latitude_bounds_weight,longitude_bounds_weight,count,weight)”)