Return (identifier for) construct added by compute_vertical_coordinates
#802
Labels
enhancement
New feature or request
compute_vertical_coordinates
#802
When using
compute_vertical_coordinates
to compute the non-parametric vertical coordinates from the coordinate reference and parameters on the field, the method returns (when not in-place) the field that was operated on, but this does not include information about the specific coordinate created, or indeed whether a coordinate construct was successfully created, since running the method on fields without the necessary information returns the same field (see snippet 2 below).I'm requesting a means to access either the coordinate itself that gets created, via the object itself or an identifier e.g. the unique key for it, either as:
By returning
None
(orFalse
, butNone
seems more appropriate) for cases where no such coordinate could be created, this would also enable a null operation to be identified directly.Examples
Snippet 1: successful operation
In this case, I would like to have the
air_pressure
auxiliary coordinate, or its key, returned by the method, since this is the one that is computed and created on the field.Snippet 2: null operation
No coordinates can be created here, so the field is unchanged, but we can't tell that without comparing fields:
In this case, I would like:
None
to indicate that no new coordinate construct was added;-1
log level I am not told anything (see above).The text was updated successfully, but these errors were encountered: