-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from ecmwf/develop
Minor release 0.5.13
- Loading branch information
Showing
42 changed files
with
879 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
########### | ||
orog_to_z | ||
########### | ||
|
||
The ``orog_to_z`` filter converts orography (in meters) to surface | ||
geopotential height (m^2/s^2) using the equation: | ||
|
||
.. math:: | ||
z &= g \cdot \textrm{orog}\\ | ||
g &= 9.80665\ m \cdot s^{-1} | ||
This filter needs to follow a source that provides orography, which is | ||
replaced by surface geopotential height. | ||
|
||
.. literalinclude:: yaml/orog_to_z.yaml | ||
:language: yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
##### | ||
sum | ||
##### | ||
|
||
The ``sum`` filter computes the sum over multiple variables. This can be | ||
useful for computing total precipitation from its components (snow, | ||
rain) or summing the components of total column integrated water. This | ||
filter needs to follow a source that provides the list of variables to | ||
be summed up. These variables are removed by the filter and replaced by | ||
a single summed variable. | ||
|
||
.. literalinclude:: yaml/sum.yaml | ||
:language: yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
######### | ||
wz_to_w | ||
######### | ||
|
||
The ``wz_to_w`` filter converts geometric vertical velocity (provided in | ||
m/s) to vertical velocity in pressure coordinates (Pa/s). This filter | ||
needs to follow a source that provides geometric vertical velocity. | ||
Geometric vertical velocity is removed by the filter and pressure | ||
vertical velocity is added. | ||
|
||
.. literalinclude:: yaml/wz_to_w.yaml | ||
:language: yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
input: | ||
pipe: | ||
- source: # mars, grib, netcdf, etc. | ||
# source attributes here | ||
# ... | ||
# Must load an orography variable | ||
|
||
- orog_to_z: | ||
orog: orog # Name of orography (input) variable | ||
z: z # Name of z (output) variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
input: | ||
pipe: | ||
- source: # mars, grib, netcdf, etc. | ||
# source attributes here | ||
# ... | ||
# Must load the variables to be summed | ||
|
||
- sum: | ||
params: # List of input variables | ||
variable1 | ||
variable2 | ||
variable3 | ||
output: variable_total # Name of output variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
input: | ||
pipe: | ||
- source: # mars, grib, netcdf, etc. | ||
# source attributes here | ||
# ... | ||
# Must load geometric vertical velocity | ||
|
||
- wz_to_w: | ||
wz: wz # Name of geometric vertical velocity (input) variable | ||
x: z # Name of pressure vertical velocity (output) variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
input: | ||
accumulations: | ||
accumulations_period: 6 | ||
accumulation_period: 6 | ||
class: ea | ||
param: [tp, cp, sf] | ||
levtype: sfc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
input: | ||
accumulations: | ||
accumulations_period: [6, 12] | ||
accumulation_period: [6, 12] | ||
class: od | ||
param: [tp, cp, sf] | ||
levtype: sfc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
open_dataset( | ||
complement=dataset1, | ||
source=dataset2, | ||
what="variables", | ||
interpolate="nearest", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
open_dataset( | ||
cutout=[ | ||
{ | ||
"complement": lam_dataset, | ||
"source": global_dataset, | ||
"interpolate": "nearest", | ||
}, | ||
{ | ||
"dataset": global_dataset, | ||
}, | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
open_dataset( | ||
complement=dataset1, | ||
source=dataset2, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ds = open_dataset( | ||
dataset, | ||
number=1, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ds = open_dataset( | ||
dataset, | ||
number=[1, 3, 5], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. _selecting-members: | ||
|
||
################### | ||
Selecting members | ||
################### | ||
|
||
This section describes how to subset data that are part of an ensemble. | ||
To combine ensembles, see :ref:`ensembles` in the | ||
:ref:`combining-datasets` section. | ||
|
||
.. _number: | ||
|
||
If a dataset is an ensemble, you can select one or more specific members | ||
using the `number` option. You can also use ``numbers`` (which is an | ||
alias for ``number``), and ``member`` (or ``members``). The difference | ||
between the two is that ``number`` is **1-based**, while ``member`` is | ||
**0-based**. | ||
|
||
Select a single element: | ||
|
||
.. literalinclude:: code/number1_.py | ||
:language: python | ||
|
||
... or a list: | ||
|
||
.. literalinclude:: code/number2_.py | ||
:language: python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.