# API Reference

This page provides comprehensive documentation for all PrecipGen components, automatically generated from the source code docstrings and type hints. The documentation is organized by functional areas to help you find the components you need.

## Core Package

The main precipgen module provides convenient access to all major components:

::: precipgen
    options:
      show_root_heading: true
      show_source: true
      heading_level: 3
      show_signature_annotations: true
      separate_signature: true
      docstring_style: google
      show_bases: true
      show_inheritance_diagram: false
      members_order: source
      filters:
        - "!^_"
        - "!^__"

## Core Engines

The engines module contains the primary analysis and simulation engines:

::: precipgen.engines
    options:
      show_root_heading: true
      show_source: true
      heading_level: 3
      show_signature_annotations: true
      separate_signature: true
      docstring_style: google
      show_bases: true
      members_order: source
      filters:
        - "!^_"
        - "!^__"

## Simulation Components

High-level simulation interfaces and analysis tools:

::: precipgen.simulation
    options:
      show_root_heading: true
      show_source: true
      heading_level: 3
      show_signature_annotations: true
      separate_signature: true
      docstring_style: google
      show_bases: true
      members_order: source
      filters:
        - "!^_"
        - "!^__"

## Data Management

GHCN data handling, validation, and parsing components:

::: precipgen.data
    options:
      show_root_heading: true
      show_source: true
      heading_level: 3
      show_signature_annotations: true
      separate_signature: true
      docstring_style: google
      show_bases: true
      members_order: source
      filters:
        - "!^_"
        - "!^__"

## Configuration Management

Configuration classes and quality presets:

::: precipgen.config
    options:
      show_root_heading: true
      show_source: true
      heading_level: 3
      show_signature_annotations: true
      separate_signature: true
      docstring_style: google
      show_bases: true
      members_order: source
      filters:
        - "!^_"
        - "!^__"

## Standardized API

External integration interfaces and workflow components:

::: precipgen.api
    options:
      show_root_heading: true
      show_source: true
      heading_level: 3
      show_signature_annotations: true
      separate_signature: true
      docstring_style: google
      show_bases: true
      members_order: source
      filters:
        - "!^_"
        - "!^__"

## Convenience API

Simplified interfaces for common workflows:

::: precipgen.convenience
    options:
      show_root_heading: true
      show_source: true
      heading_level: 3
      show_signature_annotations: true
      separate_signature: true
      docstring_style: google
      show_bases: true
      members_order: source
      filters:
        - "!^_"
        - "!^__"

## Utilities

Error handling, logging, and utility functions:

::: precipgen.utils
    options:
      show_root_heading: true
      show_source: true
      heading_level: 3
      show_signature_annotations: true
      separate_signature: true
      docstring_style: google
      show_bases: true
      members_order: source
      filters:
        - "!^_"
        - "!^__"

## Command Line Interface

CLI commands and interfaces:

::: precipgen.cli
    options:
      show_root_heading: true
      show_source: true
      heading_level: 3
      show_signature_annotations: true
      separate_signature: true
      docstring_style: google
      show_bases: true
      members_order: source
      filters:
        - "!^_"
        - "!^__"