How to convert L2 TROPOMI data to L3 with coordinate?

when I use the command to convert a region data to grid L3 data,the outfile netcdf don’t have the longitude and lontitude variable.

harpconvert -a “bin_spatial(301,30.0,0.01,251 ,116,0.01);keep(NO2_column_number_density,tropospheric_NO2_column_number_density, stratospheric_NO2_column_number_density,absorbing_aerosol_index,cloud_fraction)” S5P_OFFL_L2__NO2____20210502T035507_20210502T053637_18398_01_010400_20210503T205946.nc 0502.nc
image
I had looked the harp document ,but don’t find some useful operation to handle this, So I want to ask,how to write a command ,that can take coordinate as a variable in the netcdf4 file?
Thanks.

If you don’t include the latitude and longitude variables in your keep() operation then, of course, they will not be included in the output.
If you want to understand what is going on, then first remove the whole keep() operation. It will show you all the variables that are available.

Note that there are also derivations that you can perform (to derive latitude from latitude_bounds for instance). You might want to read through other topics on this forum. There are already many posts regarding the use of bin_spatial.

Thanks! I understand.Thanks