zxdawn / S5P-LNO2

Core code for the TROPOMI lightning NO2 retrievals
GNU General Public License v3.0
2 stars 1 forks source link

Correct longitude conversion between 360 and 180 #53

Closed zxdawn closed 2 years ago

zxdawn commented 2 years ago

https://github.com/zxdawn/S5P-LNO2/blob/542887ea62c8161af1e7257bdba73765ae420086/main/s5p_lnox_functions.py#L330-L344

Converting 0 ~ 360 to -180 ~ 180 should be

(lon+ 180) % 360 - 180

Besides, the TROPOMI longitude should also be converted to check the points inside. wrong: image correct: image