Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft for Nicks Review #30

Draft
wants to merge 61 commits into
base: main
Choose a base branch
from
Draft

Draft for Nicks Review #30

wants to merge 61 commits into from

Conversation

sray014
Copy link
Collaborator

@sray014 sray014 commented Dec 2, 2024

No description provided.

Copy link
Collaborator

Choose a reason for hiding this comment

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

General note for STAC extension schema JSON documents: the terms defined should follow the format of extension_alias:property_name. For example, with the proj extension, every property defined in that extension will be proceeded by proj (ex: proj:wkt2). In this document, the required properties have no extension alias and other properties have different aliases than one another

Copy link
Collaborator

Choose a reason for hiding this comment

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

For example, the term structures:lateral_structure_count and the term 2d_flow_areas:cell_minimum_size have 2 different aliases (structures and 2d_flow_areas), which means that they should be contained within 2 separate schemas (one for terms related to structures and one for terms related to 2d flow areas). I would suggest instead just using a single uniform alias

"description": "Unit system used (ex. US Customary)."
},
"plan_information:project_filename": {
"type": ["string", "null"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Using this as an example of a property which has a type with the value "null" included - is the intention here to force the user to provide a plan_information:project_filename property every time that they use the extension, and in cases where there is no project filename to allow a null value?

If so, this property should be added to the required properties for the extension. If not, this property should just have the type "string" as that would basically say that when the property is defined, which it does not have to be, it should be a string.

prj_ext.bbox = list(perimeter_polygon.bounds)
prj_ext.centroid = mapping(perimeter_polygon.centroid)

stor_ext = StorageExtension.ext(self, add_if_missing=True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will the items used by this class always have content on s3 and will the region always be us-east-1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants