{"id":5727,"library":"stactools-met-office-deterministic","title":"stactools-met-office-deterministic","description":"stactools-met-office-deterministic is a Python package designed for generating SpatioTemporal Asset Catalog (STAC) metadata specifically for data originating from the Met Office Deterministic Numerical Weather Prediction model. It is part of the broader stactools ecosystem, which provides utilities for working with STAC. The current version is 0.4.2, and it typically sees rapid releases within the stactools-packages organization.","status":"active","version":"0.4.2","language":"en","source_language":"en","source_url":"https://github.com/stactools-packages/met-office-deterministic","tags":["stac","geospatial","meteorology","weather prediction","met office","numerical weather prediction"],"install":[{"cmd":"pip install stactools-met-office-deterministic","lang":"bash","label":"Default installation"}],"dependencies":[{"reason":"Core STAC object model and utilities.","package":"pystac","optional":false},{"reason":"Geospatial operations, likely for bounding box and geometry handling.","package":"shapely","optional":false}],"imports":[{"note":"The primary module for generating STAC objects.","symbol":"stac","correct":"from stactools.met_office_deterministic import stac"}],"quickstart":{"code":"import pystac\nfrom stactools.met_office_deterministic import stac\n\n# Placeholder for your Met Office Deterministic NWP data file path\n# Replace with an actual path to a NetCDF file from the Met Office UKV 2km deterministic forecast.\ninput_data_path = \"/path/to/your/met_office_deterministic_data.nc\"\n\n# Assuming a 'create_item' function exists to generate a STAC Item from a data file\n# The exact parameters may vary; this is a common pattern in stactools packages.\ntry:\n    item = stac.create_item(input_data_path)\n    print(f\"Successfully created STAC Item: {item.id}\")\n    print(f\"Item datetime: {item.datetime}\")\n    # Optionally, save the item to a file\n    # item.save_object(dest_href='/tmp/met_office_item.json')\nexcept AttributeError:\n    print(\"Error: 'stac.create_item' or similar function not found or failed. \"\n          \"Please refer to the actual library source or a more detailed example if available.\")\nexcept FileNotFoundError:\n    print(f\"Error: Input data file not found at {input_data_path}. Please provide a valid path.\")\nexcept Exception as e:\n    print(f\"An unexpected error occurred: {e}\")","lang":"python","description":"This quickstart demonstrates how to use `stactools-met-office-deterministic` to create a STAC Item from a Met Office Deterministic Numerical Weather Prediction model data file. It assumes the existence of a `stac.create_item` function, which is a common pattern across `stactools` dataset packages. Users should replace `/path/to/your/met_office_deterministic_data.nc` with the actual path to their NetCDF data file."},"warnings":[{"fix":"Review the source code on GitHub (stactools-packages/met-office-deterministic) for function signatures and expected inputs, or refer to other stactools dataset package examples for analogous patterns.","message":"Specific API documentation, detailed usage examples, and explicit breaking change logs for `stactools-met-office-deterministic` are not readily available in public search results (GitHub README or official docs). Users should consult the source code for precise API usage or refer to general `stactools` patterns.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Ensure the `input_data_path` points to a valid and compatible Met Office Deterministic NWP NetCDF file. Verify the internal structure and metadata of your input files if errors persist.","message":"The library relies on raw Met Office NWP data, typically NetCDF files. Incorrect file paths, unsupported data formats, or deviations from the expected Met Office data structure will lead to failures during STAC item generation.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-13T00:00:00.000Z","next_check":"2026-07-12T00:00:00.000Z"}