Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
huard committed Oct 11, 2024
1 parent ac0cec2 commit 03e5738
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion STACpopulator/extensions/cordex6.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class CordexCmip6(DataModel):
external_variables: str | list[str]

_prefix: str = "cordex6"
# Note that this is not a STAC item schema, but a schema for the global attributes of the CMIP6 data.
_schema_uri: FilePath = Path(__file__).parent / "schemas" / "cordex6" / "cmip6-cordex-global-attrs-schema.json"


Expand All @@ -69,7 +70,7 @@ def uid(self) -> str:




# TODO: Remove before merging
def get_test_data():
import requests
from siphon.catalog import TDSCatalog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@

LOGGER = logging.getLogger(__name__)
import argparse
import sys
from typing import Any
from STACpopulator.populator_base import THREDDSRunner
from STACpopulator.populator_base import STACpopulatorBase
from STACpopulator.extensions.cordex6 import Cordex6DataModel

Expand All @@ -35,8 +33,10 @@ def create_stac_item(self, item_name: str, item_data: dict[str, Any]) -> dict[st
return dm.stac_item()



# TODO: This probably doesn't need to be copied for every implementation, right ?
def add_parser_args(parser: argparse.ArgumentParser) -> None:
parser.description="CMIP6 STAC populator from a THREDDS catalog or NCML XML."
parser.description="CMIP6-CORDEX STAC populator from a THREDDS catalog or NCML XML."
parser.add_argument("stac_host", help="STAC API URL")
parser.add_argument("href", help="URL to a THREDDS catalog or a NCML XML with CMIP6 metadata.")
parser.add_argument("--update", action="store_true", help="Update collection and its items")
Expand Down

0 comments on commit 03e5738

Please sign in to comment.