Closed jgliss closed 5 months ago
This issue is stale because it has been open for 365 days with no activity. This issue will be closed in 14 days if no action is taken.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Currently, available binary masks for filtering of data include HTAP regions, which are not part of the installation but are available on the web server and are downloaded automatically upon request in pyaerocom. The downloaded binary masks (NetCDF files) are then stored locally in
For CAMS61 project, filtering of European subregions will be needed, which essentially boils down to getting binary masks for each of the regions needed and registering them in pyaerocom.
@hansbrenna will check with @heikoklein about how this is done in the EMEP tools.
Once these masks are available, they need to be registered in pyaerocom with a unique name in regions.ini and then need to be registered as binary regions in by adding them to attr. HTAP_REGIONS (list) in header of Config class (config.py).
Consider renaming that attribute from HTAP_REGIONS to BINARY_REGIONS (or similar) and if so, don't forget to also update in header of Filter class (filter.py) correspondingly, as well as in actual filtering methods in data objects (UngriddedData, GriddedData, ColocatedData).
Note: Currently, when a binary region mask is requested, pyaerocom looks in the above directory for a netcdf file that matches*.nc where mask_id is the region ID specified in regions.ini (i.e. the name of the mask files need to begin with the corresponding region ID).