Skip to content

Commit

Permalink
Merge pull request #254 from ecmwf/docs/change_collection_examples
Browse files Browse the repository at this point in the history
Docs/change collection examples
  • Loading branch information
mathleur authored Nov 15, 2024
2 parents 40af1a4 + 1f901cd commit 85412fc
Show file tree
Hide file tree
Showing 13 changed files with 339 additions and 6,811 deletions.
49 changes: 49 additions & 0 deletions docs/Service/Data_Portfolio.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Data Portfolio

Polytope feature extraction only has access to data that is stored on an FDB. The dataset currently available via Polyope feature extraction is the operational forecast. We plan to add Destination Earth Digital Twin data in the future.

## Operational Forecast Data

The following values available for each field specified are:

* `class` : `od`
* `stream` : `enfo` `oper`
* `type` : `fc` `pf` `cf`
* `levtype` : `sfc` `pl` `ml`
* `expver` : `0001`
* `domain` : `g`
* `step` : `0/to/360` (All steps may not be available between `0` and `360`)

If `type` is `enfo`:

* `number` : `0/to/50`

If `levtype` is `pl` or `ml` a `levelist` must be provided:

* `levelist` : `1/to/1000`

`pl` and `ml` also only contain a subset of parameters that are available in grid point. These are:

* `pl`
* `o3`
* `clwc`
* `q`
* `pv`
* `ciwc`
* `cc`
* `ml`
* `q`
* `cat`
* `o3`
* `clwc`
* `ciwc`
* `cc`
* `cswc`
* `crwe`
* `ttpha`

For `sfc` most `param`s should be available.

Only data that is contained in the operational FDB can be requested via Polytope feature extraction, the FDB usually only contains the last two days of forecasts.

We sometimes limit the size of requests for area features such as bounding box and polygon to maintain quality of service.
194 changes: 127 additions & 67 deletions docs/Service/Examples/boundingbox_example.ipynb

Large diffs are not rendered by default.

19 changes: 15 additions & 4 deletions docs/Service/Examples/polygon_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
"# Polygon Example"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from datetime import date, timedelta\n",
"\n",
"\n",
"yesterday = (date.today() - timedelta(1)).strftime('%Y%m%d')"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -19,10 +31,10 @@
" \"class\": \"od\",\n",
" \"stream\" : \"enfo\",\n",
" \"type\" : \"pf\",\n",
" \"date\" : \"20240917\",\n",
" \"date\" : yesterday, # Note: date must be within the last two days\n",
" \"time\" : \"1200\",\n",
" \"levtype\" : \"sfc\",\n",
" \"expver\" : \"0079\",\n",
" \"expver\" : \"0001\",\n",
" \"domain\" : \"g\",\n",
" \"param\" : \"167/169\",\n",
" \"number\" : \"1\",\n",
Expand All @@ -33,8 +45,7 @@
" },\n",
"}\n",
"\n",
"ds = earthkit.data.from_source(\"polytope\", \"ecmwf-mars\", request, stream=False, address='polytope-test.ecmwf.int')\n",
"data_1 = ds.to_xarray()"
"ds = earthkit.data.from_source(\"polytope\", \"ecmwf-mars\", request, stream=False, address='polytope.ecmwf.int')"
]
},
{
Expand Down
Loading

0 comments on commit 85412fc

Please sign in to comment.