Comments (13)
Okay, I will try it like this. Thanks!
(Just for clarification @valeriupredoi: you mean extract_region
instead of select_region
, don't you? Or is this a function I do not know?)
from esmvalcore.
@LisaBock it is very important from the implementation point of view to know which file format your regions are stored in - netCDF/Natural Earth/txt etc and what are the actual parameters of the region ie how it is defined in the file: like a mask of 0s and 1s, like a percentage that we apply a threshold on etc. Without this information I can not implement anything just yet. Cheers!
from esmvalcore.
With regards to the Natural Earth Shapefiles, I can't see anything that names specific marine regions. The closest dataset I can find is the marine indicators, but I suspect that this is simply the national sea boundaries at 200 nautical miles.
I think that the best way to define the oceans right now would be to regrid CMIP models to a standard resolution in the preprocessor, then use an older regional definition mask file in the diagnostic. Do we have a definition file anywhere?
from esmvalcore.
sftof
is used for seas/oceans selection, that is available for most models, for the ones that dont have it we currently use Natural Earth low-res oceans shapefiles; the seas/oceans are not a problem - the problem is continents (and Russia? from the figure above) - we can use shapefiles for those as well but I thought @LisaBock already has a set of region-defining files at hand
from esmvalcore.
I think @LisaBock simply needs to extract regions which are not rectangular, but more generally quadrilateral.
No shapefiles should be required here, but only the possibility of specifying the coordinates of the four (or more) vertices which define the region.
from esmvalcore.
Indeed, for the continental regions it should look like this (polygons with four or five corners):
But for the most diagnostics I would need a combination of this subregions.
And for the oceanic regions, I do not know if they are polygons. I asked already for the definitions but have not received them yet.
from esmvalcore.
We already have the preprocessor function extract_region
which is able to extract rectangular regions, so I think that should be able to extract most regions.
We also have a recipe that extracts regions based on shapefiles, recipe_shapeselect.yml. This could be used for the more complicated shapes, you will just need to define the shapefiles. You can then run this diagnostic before your own diagnostic, using the ancestors
key in the recipe.
from esmvalcore.
from esmvalcore.
actually here's how I see a least-effort/maximum-outcome path to solve this:
- provide the corners of the rough rectangular approximation of your region in the preprocessor, apply
select_region
to that to minimize the amount of data that is passed on to the next preproc steps; - in diagnostic, use the masking with shp from
_mask.py
to select your refined region;
All we'd need in this case is to have the region defined in a shp file and store it somewhere where the diagnostic can see it.
what say you @LisaBock
from esmvalcore.
yes that one sorry, I am starting to pull function names out my arse 😁
from esmvalcore.
hi @LisaBock - is this been done (by you) or you need any help implementing it? 🍺
from esmvalcore.
@LisaBock is this solved? If yes, please close.
from esmvalcore.
closing since it looks to be solved, please re-open if need be 🍺
from esmvalcore.
Related Issues (20)
- Pin `python <3.12` for 2.10 release HOT 9
- [condalock] Lock file is obsolete at the moment while we migrate to support Python=3.12
- Retire support for Python=3.9 HOT 4
- ERA5 hurs or huss derivation
- Add preprocessor that converts time to local solar time
- Version number is hardcoded in conda badge HOT 4
- Missing height coordinates in MPI-ESM1-2-HR and MPI-ESM1-2-XR HOT 1
- New preprocessor: Distance metrics dataset vs. reference HOT 2
- [Circle CI] run tests container environment just got upgraded to Python=3.12, esmvalcore is not 100% ready for 3.12 HOT 1
- Custom location of `index.html` HOT 3
- If custom location for custom CMOR tables is used, default location is ignored HOT 3
- ~/.esmvaltool/config-user.yml is always read even when --config-file is specified HOT 6
- Remove custom concatenation of derived coords now that bug in iris is fixed
- Update iris pin >=3.6.1 in environment.yml and setup.py
- Missing coordinate for sfcWindmax MPI-ESM1-2-XR and HR
- Missing height 2m coordinates in GFDL-CM4 HOT 1
- Missing height 2m coordinate in KIOST-EMS HOT 1
- Special unit conversion for evaporation
- Performance improvement: recipe_easy_ipcc.yml
- Performance improvement: recipe_extremes_wind_3h.yml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esmvalcore.