Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions windIO/schemas/plant/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,21 @@ properties:

#~
bathymetry:
title: Bathymetry
description: x, y, and depth field of water depth
type: object
required:
- coordinates
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose having a oneof definition with both coordinates and the x/y definitions to support the simpler implementation and to add the xarray support.

- x
- y
- depth
properties:
coordinates:
$ref: "./common.yaml#/definitions/coordinates"
description: "An array of x and y coordinates associated with different depths"
x:
$ref: "./common.yaml#/definitions/multi_dimensional_coordinate"
description: "West-East coordinate axis"
y:
$ref: "./common.yaml#/definitions/multi_dimensional_coordinate"
description: "South-North coordinate axis"
depth:
type: array
items:
type: number
units: m
description: "An array of depth values"
$ref: "./common.yaml#/definitions/multi_dimensional_data"
description: "2D depth field indexed by (y, x)"

elevation:
title: Elevation
Expand Down