Skip to content

Conversation

@dlebauer
Copy link
Member

@dlebauer dlebauer commented Sep 9, 2025

MVP for events based on #3551

use case the primary goal is having an events.json that we can use to start building out write.events.SIPNET and doing runs for the CCMMF project. Closes ccmmf/organization#143

Includes two files:

  • Script builds MVP JSON file from site attributes.
  • MVP JSON schema for events

It generates fixed values for each site (planting, harvest, pruning, tillage, irrigation) according to the PEcAn events schema.

Output: events.json file.

This script uses dummy data and fixed values in order to support development of downstream pipeline. There is much work to do.

  • Currently running for design points
  • Later will need to generate event summaries in a matrix that can be used as inputs to site selection and downscaling.

Discussion ?s:

  • should these go in a new package focused on agronomic data?
  • These quickly get very large - with 10 sites

TODO

  • add optional fraction_area_0to1 to specification
  • make crop required for planting and harvest
  • populate provenance / source information [not for MVP, but should be done when these are created)
  • Add examples with ground cover added to orchards
  • Find a home for JSON schema (inst/extdata? utils?)

@dlebauer dlebauer added the ccmmf issues and pre related to the ccmmf project label Sep 16, 2025
@infotroph infotroph changed the title minimal example events.json for california design points events.json schema + event generation script for california design points Sep 23, 2025
Comment on lines +10 to +11
"geometry_uri": { "type": ["string", "null"], "format": "uri" },
"provenance": { "type": "object", "additionalProperties": true },
Copy link
Member

Choose a reason for hiding this comment

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

How carefully considered is the decision to represent geometry as a uri rather than an object? Might there be cases where geometry wants to be embedded directly like the provenance is?

@infotroph
Copy link
Member

Check failure is saying to move the json schema out of data/ -- I'd be fine with dropping it into inst/ instead, optionally in an events/ subdir.

@infotroph
Copy link
Member

Merging dlebauer#9 should fix the CI failure

@infotroph infotroph enabled auto-merge October 3, 2025 22:35
@infotroph infotroph added this pull request to the merge queue Oct 3, 2025
Merged via the queue into PecanProject:develop with commit 2cf4f29 Oct 3, 2025
19 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ccmmf issues and pre related to the ccmmf project Modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

integrate events into workflow

2 participants