metno / pyaerocom

Python tools for climate and air quality model evaluation
https://pyaerocom.readthedocs.io/
GNU General Public License v3.0
25 stars 13 forks source link

Add more binary regions for filtering of European regions / countries #89

Closed jgliss closed 5 months ago

jgliss commented 4 years ago

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

~/MyPyaerocom/filtermasks

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).

github-actions[bot] commented 7 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.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.