Hello!!
I am using harp in the S5P/TROPOMI trajectory files, in order to keep from each file the data that are “inside” a circle area. To do so, I use the following command in the harp operations:
point_distance({lat}, {lon}, {point_val}[km])
where lat and lon are the latitude and the longitude of a specific point on Earth, respectively, and point_val is the circle radius.
Using harp, is there a way that I can take a domain box (e.g. square domain box), instead of a circle??
Thank you in advance!!
Yes. This is definitely possible.
The easiest and also fastest to execute by HARP is to provide filters on latitude and longitude. e.g. latitude>=50;latitude<60;longitude>=0;longitude<=20
You can also extract all satellite pixels within a bounding polygon using the point_in_area operation. e.g. point_in_area((38.295,38.104,38.347,38.815,39.979,38.518),(22.700,22.642,19.797,16.969,17.320,22.195)).
There are also other types of geolocation filters that you can use. More information on this can be found in the documentation.