🐍 Python SDK gomd v2.0.0 📓 10 Downloadable Google Colab Real-Data Case Studies (.ipynb & .py) 🔬 6 Domain Modules · 48 Peer-Reviewed Scientific Functions · 100% Live GOMD Data 🏛️ Piri Reis University · COP31 Türkiye

GOMD Official Python Package (gomd v2.0.0) Documentation & 10 Real-Data Google Colab Case Studies

All 10 peer-reviewed scientific and data mining case studies (CS01–CS10) below contain zero synthetic data—every series is fetched live from the GOMD server (https://gomd.pirireis.edu.tr). Download them individually as Google Colab Jupyter Notebooks (.ipynb) or standalone Python scripts (.py), launch them directly in Google Colab, and explore the complete 6-module API reference of gomd v2.0.0.

📊 10 Case Studies Visual & Policy Report 📦 Download Python Wheel (.whl · 66 KB) 🗂️ Download Source Tarball (.tar.gz) 📄 Scientific Reference Paper (sdk_paper.php)

1️⃣ Google Colab Installation (Recommended · Zero-Cache)

!pip install -q --force-reinstall --no-cache-dir https://gomd.pirireis.edu.tr/sdk/dist/gomd-2.0.0-py3-none-any.whl
import importlib, sys, gomd
for _m in list(sys.modules.keys()):
    if _m == "gomd" or _m.startswith("gomd."):
        importlib.reload(sys.modules[_m])
import gomd
print("GOMD SDK:", gomd.__version__)

2️⃣ PEP 503 Official Simple Index Install (Terminal)

pip install --upgrade --no-cache-dir gomd \
  --extra-index-url https://gomd.pirireis.edu.tr/sdk/dist/simple/

# Doğrulama / Verify:
python -m gomd cite --style apa

3️⃣ How to Open a Case Study (.ipynb) in Google Colab?

  1. Click the orange "📥 Download Colab Notebook (.ipynb)" button on any case study card below.
  2. Click "🚀 Open Google Colab" (colab.research.google.com) and select File > Upload Notebook to upload the .ipynb file.
  3. Alternatively, click "📋 Copy Colab Code" and paste it directly into any Colab cell (Shift+Enter)!

📓 Downloadable Real-Data Google Colab Scientific & Data Mining Case Studies (10 Case Studies · CS01–CS10)

Every case study fetches 100% real observational time series and multi-country panels directly from the live GOMD API (Copernicus CMEMS, NOAA GML, SOCAT, IMO GISIS, IUMI, UNCTAD, World Bank CWON/WDI, FAO/MEDITS, Global Carbon Budget, Open-Meteo Marine, IEA/EDGAR, and UN A/74/757 Mavi Vatan) with zero synthetic data and publication-grade 4-panel Matplotlib figures.

🚀 Launch Blank Google Colab Notebook 🐍 Master Data Mining Script (.py)
CASE STUDY 01 · PHYSICAL OCEANOGRAPHY & CLIMATE MINING (REAL GOMD DATA)

Eastern Mediterranean & Türkiye Multivariate Ocean-Climate Data Mining: Spectral PCA, K-Means++, Walk-Forward Ridge CV & Shannon Transfer Entropy (1990–2026)

gomd.client gomd.ocean gomd.stats

End-to-end 1990–2026 workflow on 8 real GOMD oceanographic series (296 observations) combining UNESCO EOS-80 density, Garcia & Gordon AOU, Lueker carbonate chemistry, Hobday MHW detection, Spectral PCA, K-Means++, Walk-Forward Ridge CV & Shannon transfer entropy.

Functions Used: GOMDClient.get_series() seawater_density_eos80() oxygen_solubility() carbonate_system() marine_heatwave_detect() compound_mhw_oax_event() multivariate_data_mining_pipeline() mann_kendall_sen() pettitt_changepoint() transfer_entropy_causal()
CASE STUDY 02 · NATIONAL FLEET DECARBONIZATION & UNCTAD/IMO ANALYTICS (REAL GOMD DATA)

National Merchant Fleet Decarbonization Mining: Real UNCTAD Fleet DWT, IMO CII, Maritime EU ETS (2023/959), FuelEU Maritime & AIS Speed-Power Optimization (1990–2026)

gomd.client gomd.maritime gomd.stats

Multi-country commercial fleet audit on real GOMD UNCTAD DWT capacity, fleet age, imo_cii_fleet_aer, eu_ets_shipping_surrender_mt_co2, and fueleu_maritime_wtw_intensity series across 8 maritime nations (1990–2026).

Functions Used: GOMDClient.get_series() calculate_imo_cii() calculate_eu_ets_exposure() calculate_fueleu_maritime() imo_2023_strive_trajectory() ais_speed_power_emissions() poseidon_principles_alignment() psc_detention_risk_score()
CASE STUDY 03 · BLUE FINANCE, IUMI ACTUARIAL INSURANCE & CWON NATURAL CAPITAL (REAL GOMD DATA)

Global Blue Finance, IUMI/PPMI Marine Actuarial Underwriting, UNEP FI PSI Coastal Insurance & World Bank CWON Natural Capital Accounting (1995–2025)

gomd.client gomd.maritime gomd.ocean

Actuarial H&M + P&I underwriting, 99.5% Solvency II VaR, UNEP FI PSI coastal wave attenuation, and World Bank CWON wealth accounting computed directly on real 1995–2025 GOMD Blue Finance and CWON series.

Functions Used: GOMDClient.get_series() marine_insurance_actuarial_pricing() sustainable_insurance_cat_var() blue_carbon_sequestration_valuation() cwon_wealth_accounting()
CASE STUDY 04 · SEA OF MARMARA MUCILAGE, TURKISH STRAITS & HYPOXIA (REAL GOMD DATA)

Sea of Marmara & Turkish Straits Two-Layer Hydrodynamics, Mucilage Hazard Index, Vollenweider TRIX Eutrophication & Sub-Halocline Hypoxia Mining (1990–2026)

gomd.client gomd.ocean gomd.stats

Two-layer Turkish Straits hydrographic exchange (Q₁, Q₂), TEOS-10 pycnocline stratification, Vollenweider TRIX eutrophication, and sub-halocline hypoxia dynamics on real 1990–2026 GOMD observations.

Functions Used: GOMDClient.get_series() mucilage_risk_index() trophic_state_index() teos10_gsw_stratification() mann_kendall_sen() pettitt_changepoint() transfer_entropy_causal()
CASE STUDY 05 · MAVI VATAN ICJ DELIMITATION, CHOKEPOINTS & REAL PANEL SDID (REAL GOMD DATA)

Mavi Vatan (UN A/74/757) ICJ Equitable Delimitation Audit, Global Chokepoint Geodesics & Real-Data Synthetic Difference-in-Differences (SDID) Policy Evaluation

gomd.client gomd.spatial gomd.stats

ICJ 3-stage maritime delimitation audit on live GOMD Mavi Vatan telemetry and Arkhangelsky et al. (2021) Synthetic Difference-in-Differences (SDID) causal evaluation on real multi-country GOMD panel series (TUR vs. DEU, FRA, ITA, ESP, GRC).

Functions Used: GOMDClient.get_mavi_vatan_jurisdiction() GOMDClient.analyze_gomd_policy() mavi_vatan_eez_audit() chokepoint_proximity() synthetic_did_ate()
CASE STUDY 06 · FISHERIES STOCKS, AQUACULTURE TRANSITION & MEDITS BIOMASS (REAL GOMD DATA)

Black Sea, Marmara & Mediterranean Fisheries Production, Aquaculture Transition & MEDITS Demersal Biomass Dynamics (1970–2025)

gomd.client gomd.stats

Structural aquaculture transition analysis on real 1970–2024 FAO fisheries series and Kobe stock status / Shannon transfer entropy / fixed-effects panel on real 1995–2025 MEDITS bottom-trawl demersal biomass, SSB ratio, and SAR series across 5 sea basins.

Functions Used: GOMDClient.get_series() mann_kendall_sen() pettitt_changepoint() transfer_entropy_causal() panel_fixed_effects()
CASE STUDY 07 · GLOBAL CARBON BUDGET, MAUNA LOA CO₂, OHC & ARCTIC ICE (REAL GOMD DATA)

Global Carbon Budget (GCB 2025), NOAA Mauna Loa Atmospheric CO₂, NCEI Ocean Heat Content & NSIDC Arctic Sea Ice Cointegration Mining (1958–2026)

gomd.client gomd.stats

Engle–Granger (1987) cointegration, Runge et al. (2023) Shannon transfer entropy, and Şen (2020) IPTA executed directly on real 1958–2026 NOAA Mauna Loa CO₂, Global Carbon Budget 2025, NCEI OHC 0–700m, and NSIDC Arctic sea ice series.

Functions Used: GOMDClient.get_series() cointegration_eg_test() transfer_entropy_causal() innovative_polygon_trend() mann_kendall_sen()
CASE STUDY 08 · HIGH-FREQUENCY MET-OCEAN, GUMBEL WAVE EXTREMES & CHOKEPOINTS (REAL GOMD DATA)

High-Frequency Met-Ocean Telemetry Across Mediterranean Basins & Global Chokepoints: Gumbel Return Levels, Ornstein–Uhlenbeck Thermal Memory & Fixed-Effects Panel

gomd.client gomd.ocean gomd.stats

Gumbel EV1 100-year return wave heights, Ornstein–Uhlenbeck thermal memory timescale, Arrhenius Q₁₀ metabolic stress, and fixed-effects panel regression across 5,580 real daily Met-Ocean observations in 10 basins and chokepoints.

Functions Used: GOMDClient.get_series() extreme_return_levels() stochastic_sst_memory_ou() ectotherm_thermal_shock_index() panel_fixed_effects()
CASE STUDY 09 · COP31 ENERGY TRANSITION, JRC EDGAR GHG & BIST TRANSITION VaR (REAL GOMD DATA)

COP31 Energy Transition, JRC EDGAR Sectoral GHG Inventory, IEA Renewable Energy & BIST Maritime Climate Transition VaR Analysis (1970–2026)

gomd.client gomd.stats

Fixed Effects (FE Within) panel econometrics and Engle–Granger cointegration on real 1970–2026 JRC EDGAR sectoral GHG emissions, IEA renewable energy shares, and BIST maritime climate transition VaR across 6 economies.

Functions Used: GOMDClient.get_series() panel_fixed_effects() cointegration_eg_test() mann_kendall_sen() pettitt_changepoint()
CASE STUDY 10 · MARITIME TRADE, PORT TEU, UNCTAD LSCI & WB LPI PANEL (REAL GOMD DATA)

Global Maritime Trade, Container Port Throughput (TEU), UNCTAD LSCI, World Bank LPI & OECD Ocean Economy GDP Panel (1970–2025)

gomd.client gomd.stats

Multi-country maritime trade and port logistics panel econometrics on real 1970–2025 WTO merchandise trade, container port throughput (TEU), UNCTAD LSCI, World Bank LPI, and OECD ocean economy GDP share series.

Functions Used: GOMDClient.get_series() panel_fixed_effects() cointegration_eg_test() mann_kendall_sen() pettitt_changepoint()

📚 GOMD Python SDK (v2.0.0) Complete API Reference Manual (6 Modules · 45 Functions & CLI)

All functions are exported both at the top-level package namespace (gomd.<function>) and under their respective domain submodules (gomd.ocean, gomd.maritime, gomd.stats, gomd.spatial, gomd.client).

MODULE 1 · REST/BULK CLIENT, PANEL BUILDER & SHA-256 PROVENANCE

import gomd.client

Core client module providing authenticated and open-access REST/Bulk data retrieval, multi-indicator econometric panel assembly, local disk caching, and SHA-256 cryptographic lineage verification.

Function Signature & Example Call Scientific Description & Methodology Returned Dictionary Keys / Output
GOMDClient(base_url, api_key, timeout, cache_dir) client = gomd.GOMDClient(base_url="https://gomd.pirireis.edu.tr", api_key=None, timeout=30) Primary GOMD API client class with session pooling and local SHA-256 disk caching. GOMDClient instance (.get_series, .build_panel, .query, .timeseries, .bulk_export)
get_public_catalog() cat = gomd.get_public_catalog() Returns platform-wide metadata covering 109 verified sources, 764 indicators, and observation counts. dict {'sources_count', 'indicators_count', 'total_records', 'categories'}
get_public_sources(as_df=True) df_src = gomd.get_public_sources(as_df=True) Retrieves all verified data sources with provider, license, domain, and record counts. pandas.DataFrame | list[dict]
search_indicators(keyword="", category=None, source_key=None) df_ind = gomd.search_indicators(keyword="sst", category="ocean") Searches across 764 harmonized scientific indicators by keyword, category, or source key. pandas.DataFrame | list[dict]
get_series(indicator, entity="WLD", period_from=None, period_to=None) df_s = gomd.get_series("gml_mauna_loa_co2_ppm", entity="WLD", period_from=1990, period_to=2025) Fetches chronological observations for a given indicator and country/sea-basin entity. pandas.DataFrame ['indicator', 'entity', 'period', 'value', 'unit', 'source']
build_panel(indicators, entities, period_from=1990, period_to=2025) panel = gomd.build_panel(indicators=["copernicus_med_sst_anomaly_c"], entities=["TUR","GRC","ITA"], period_from=2000, period_to=2025) Merges multiple indicators across multiple entities into a wide econometric panel DataFrame. pandas.DataFrame ['entity', 'period', '<indicator_1>', '<indicator_2>', ...]
get_blue_finance_atlas(indicator, entities, period_from=1995, period_to=2025) df_bf = gomd.get_blue_finance_atlas(indicator="iumi_marine_insurance_total_premium_usd_mn") Retrieves IUMI marine insurance premiums, UNCTAD maritime trade, OECD blue economy & World Bank CWON series. pandas.DataFrame | list[dict]
get_mavi_vatan_jurisdiction(indicator, entities, period_from=1986, period_to=2026) df_mv = gomd.get_mavi_vatan_jurisdiction(entities=("TUR","TRNC","LBY","EGY","GRC")) Retrieves UN-registered Turkish maritime jurisdiction (A/74/757) and comparative EEZ/continental shelf series. pandas.DataFrame | list[dict]
verify_provenance(payload, expected_sha256=None) ok = gomd.verify_provenance(payload_bytes, expected_sha256="...") Computes and validates the SHA-256 cryptographic digest of a dataset payload. dict {'sha256', 'verified', 'bytes_length'}
cite(style="apa") print(gomd.cite("bibtex")) # "apa" | "ieee" | "tr" | "bibtex" Returns formatted mandatory academic citation strings in APA 7th, IEEE, Turkish, or BibTeX format. str
MODULE 2 · PHYSICAL & BIOGEOCHEMICAL OCEANOGRAPHY (15 FUNCTIONS)

import gomd.ocean

UNESCO EOS-80, TEOS-10 Gibbs seawater thermodynamics, Garcia & Gordon DO solubility, Lueker carbonate chemistry, Hobday MHW detection, Gruber/Burger triple compound extremes, TRIX/TSI eutrophication, Marmara mucilage risk, and blue carbon valuation.

Function Signature & Example Call Scientific Description & Methodology Returned Dictionary Keys / Output
seawater_density_eos80(salinity_psu, temp_c, pressure_dbar=0.0) eos = gomd.seawater_density_eos80(salinity_psu=38.6, temp_c=21.4, pressure_dbar=15.0) Computes in-situ seawater density (kg/m³), sigma_t, and secant bulk modulus via UNESCO EOS-80. dict {'rho_kg_m3', 'density_kg_m3', 'sigma_0_kg_m3', 'sigma_t_kg_m3', 'secant_bulk_modulus_bar'}
teos10_gsw_stratification(salinity_psu, temp_c, pressure_dbar=100.0, lat=36.0, ...) gsw = gomd.teos10_gsw_stratification(38.5, 14.6, pressure_dbar=35.0, lat=40.7, surface_salinity_psu=22.4, surface_temp_c=18.0) Computes TEOS-10 Absolute Salinity (S_A), Conservative Temperature (Θ), Brunt–Väisälä N², and pycnocline barrier regime. dict {'absolute_salinity_sa_g_kg', 'conservative_temperature_ct_c', 'delta_sigma_kg_m3', 'brunt_vaisala_n2_s2', 'stratification_regime'}
oxygen_solubility(temp_c, salinity_psu, observed_do_umol_kg=None) oxy = gomd.oxygen_solubility(temp_c=20.5, salinity_psu=38.6, observed_do_umol_kg=210.0) Computes Garcia & Gordon (1992) DO saturation, Apparent Oxygen Utilization (AOU), and hypoxia classification. dict {'do_sat_umol_kg', 'do_sat_mg_l', 'aou_umol_kg', 'oxygen_saturation_pct', 'hypoxia_status'}
carbonate_system(ph_total, temp_c, salinity_psu=35.0, ta_umol_kg=2320.0) carb = gomd.carbonate_system(ph_total=8.06, temp_c=21.2, salinity_psu=38.6, ta_umol_kg=2610.0) Solves surface ocean carbonate equilibrium for pCO₂, DIC, HCO₃⁻, CO₃²⁻, Ω_aragonite, and Ω_calcite. dict {'pCO2_uatm', 'dic_umol_kg', 'hco3_umol_kg', 'co3_umol_kg', 'omega_aragonite', 'omega_calcite', 'ecological_status'}
marine_heatwave_detect(sst_series, dates_or_steps=None, pct_threshold=90.0, min_duration=5) mhw = gomd.marine_heatwave_detect(sst_series, dates_or_steps=years, pct_threshold=90.0, min_duration=1) Detects and categorizes Marine Heatwave (MHW) events (Categories I–IV) following Hobday et al. (2016, 2018). dict {'climatology_mean_c', 'threshold_sst_c', 'event_count', 'events'}
compound_mhw_oax_event(sst_series, ph_series, do_mg_l_series, labels=None) comp = gomd.compound_mhw_oax_event(sst_list, ph_list, do_list, labels=years) Detects triple compound extremes (MHW + Acidification + Deoxygenation) and Clarke et al. (2021) Aerobic Growth Index (AGI). dict {'dual_compound_steps', 'triple_compound_steps', 'triple_likelihood_multiplier', 'mean_aerobic_growth_index', 'compound_events'}
trophic_state_index(chl_a_ug_l, din_ug_l=None, tp_ug_l=None, do_saturation_pct=None, secchi_m=None) eut = gomd.trophic_state_index(chl_a_ug_l=4.2, din_ug_l=140.0, tp_ug_l=28.0, do_saturation_pct=72.0, secchi_m=3.5) Computes Carlson (1977) TSI and Vollenweider et al. (1998) TRIX coastal eutrophication index (UN SDG 14.1.1). dict {'carlson_tsi_chla', 'carlson_tsi_secchi', 'carlson_tsi_tp', 'vollenweider_trix', 'trix_water_quality'}
mucilage_risk_index(sst_anomaly_c, n_p_molar_ratio, wind_speed_ms, residence_time_days=30.0, chl_a_ug_l=2.5) muc = gomd.mucilage_risk_index(sst_anomaly_c=2.4, n_p_molar_ratio=32.0, wind_speed_ms=2.1, chl_a_ug_l=6.8) Computes the composite Marine Mucilage Hazard Index (0–100) for stratified semi-enclosed basins. dict {'mucilage_risk_score', 'risk_level', 'components'}
blue_carbon_sequestration_valuation(seagrass_ha, saltmarsh_ha, mangrove_ha, ...) bc = gomd.blue_carbon_sequestration_valuation(seagrass_ha=95000, saltmarsh_ha=50000, scc_usd_per_tco2=185.0) Quantifies blue carbon sequestration, top-1m sediment stock, Social Cost of Carbon (SCC) NPV, and Article 6 VCM revenue. dict {'annual_sequestration_tco2e_yr', 'top_1m_sediment_stock_tco2e', 'natural_capital_npv_scc_usd', 'annual_article6_vcm_revenue_usd'}
sustainable_insurance_cat_var(coastal_exposed_value_usd, reef_mangrove_seagrass_ha, observed_wave_hs_m, parametric_trigger_hs_m) psi = gomd.sustainable_insurance_cat_var(500_000_000, 1500.0, observed_wave_hs_m=5.4, parametric_trigger_hs_m=4.8) UNEP FI PSI & Beck et al. (2022) nature-based wave attenuation, PML_100/250, and parametric catastrophe insurance payout model. dict {'wave_attenuation_reduction_pct', 'avoided_annual_damage_usd', 'pml_100yr_usd', 'parametric_trigger_activated', 'parametric_payout_usd'}
cwon_wealth_accounting(gni_usd, gross_national_savings_usd, ...) cwon = gomd.cwon_wealth_accounting(gni_usd=1.15e12, gross_national_savings_usd=2.95e11) World Bank Changing Wealth of Nations (CWON 2024) & UN SEEA Blue-Inclusive Adjusted Net Savings (ANS) model. dict {'cwon_adjusted_net_savings_usd', 'blue_inclusive_adjusted_net_savings_usd', 'blue_inclusive_ans_pct_gni', 'wealth_sustainability_regime'}
sst_warming_velocity_profile(sst_series, dt_days=1.0, mixed_layer_depth_m=25.0) vel = gomd.sst_warming_velocity_profile(sst_series, dt_days=years) Computes dSST/dt warming rate, MHW onset/decline velocity, and mixed-layer net heat flux (W/m²). dict {'decadal_trend_c_per_decade', 'warming_acceleration_c_per_decade2', 'peak_mixed_layer_heat_flux_wm2'}
ocean_climate_velocity(temporal_trend_c_per_year, meridional_grad_c_per_km, zonal_grad_c_per_km) ocv = gomd.ocean_climate_velocity(0.046, -0.0042, 0.0015, species_max_dispersal_km_per_year=8.5) Computes ocean isotherm migration velocity (km/decade) and species dispersal lag ratio. dict {'climate_velocity_km_per_year', 'climate_velocity_km_per_decade', 'species_dispersal_lag_ratio', 'biogeographic_regime'}
ectotherm_thermal_shock_index(sst_series, acclimation_tau_days=14.0, q10_coefficient=2.3) tsi = gomd.ectotherm_thermal_shock_index(daily_sst_series, acclimation_tau_days=14.0) Models marine ectotherm thermal acclimation lag and Van 't Hoff Q10 metabolic thermal shock (Genin et al., PNAS 2020). dict {'max_acclimation_lag_c', 'max_q10_metabolic_demand_multiplier', 'max_thermal_shock_index', 'physiological_risk_status'}
stochastic_sst_memory_ou(sst_anomaly_series, dt_days=1.0, mixed_layer_depth_m=25.0) ou = gomd.stochastic_sst_memory_ou(sst_anom_series, dt_days=30.0) Estimates stochastic Ornstein–Uhlenbeck damping rate λ, thermal memory τ_mem, and air-sea heat feedback. dict {'damping_rate_lambda_per_day', 'thermal_memory_tau_days', 'air_sea_feedback_wm2_per_k', 'predictability_horizon_days_95pct'}
MODULE 3 · MARITIME DECARBONIZATION, GREEN FINANCE & UNDERWRITING (8 FUNCTIONS)

import gomd.maritime

IMO CII rating (A–E), Directive EU 2023/959 Maritime ETS, Regulation EU 2023/1805 FuelEU Maritime WtW, IMO MEPC.377(80) Stranded Asset trajectory, AIS Admiralty speed-power, Poseidon Principles, Paris MoU PSC, and IUMI/PPMI underwriting.

Function Signature & Example Call Scientific Description & Methodology Returned Dictionary Keys / Output
calculate_imo_cii(fuel_consumption_tonnes, dwt_or_gt, distance_nm, ship_type="bulk_carrier", year=2026) cii = gomd.calculate_imo_cii({"vlsfo": 7450}, dwt_or_gt=82000, distance_nm=58000, ship_type="bulk_carrier", year=2026) Computes IMO Attained AER (gCO₂/DWT·nm), Required CII, and A/B/C/D/E operational rating. dict {'total_co2_tonnes', 'attained_aer_g_dwt_nm', 'required_cii_g_dwt_nm', 'cii_rating', 'boundaries_g_dwt_nm', 'regulatory_action_required'}
calculate_eu_ets_exposure(co2_tonnes, ch4_tonnes=0.0, n2o_tonnes=0.0, voyage_scope="intra_eu", year=2026, eua_price_eur=75.0) ets = gomd.calculate_eu_ets_exposure(co2_tonnes=23400, ch4_tonnes=4.2, n2o_tonnes=0.8, voyage_scope="intra_eu", year=2026, eua_price_eur=78.5) Calculates Directive (EU) 2023/959 maritime CO₂e liability, phase-in EUA allowances, and carbon cost in EUR. dict {'total_co2e_tonnes', 'scoped_co2e_tonnes', 'surrender_euas_required', 'estimated_ets_cost_eur'}
calculate_fueleu_maritime(fuel_mix_tonnes, year=2025, voyage_scope_share=1.0, ops_shore_power_mj=0.0) feu = gomd.calculate_fueleu_maritime({"VLSFO": 6500, "BIO_METHANOL": 1200}, year=2026, voyage_scope_share=0.8) Computes Regulation (EU) 2023/1805 Well-to-Wake (WtW) GHG intensity, RFNBO 2x reward, compliance balance, and financial penalty. dict {'target_wtw_gco2e_mj', 'attained_wtw_gco2e_mj', 'compliance_balance_tco2e', 'fueleu_penalty_eur', 'compliance_status'}
imo_2023_strive_trajectory(baseline_2008_aer, current_aer, annual_emissions_tco2e, ...) ghg = gomd.imo_2023_strive_trajectory(baseline_2008_aer=6.2, current_aer=4.8, annual_emissions_tco2e=22000) Evaluates vessel trajectory against IMO MEPC.377(80) 2030/2040 checkpoints, identifying the Stranded-Asset Year and 10-yr Carbon VaR. dict {'reduction_vs_2008_pct', 'mepc80_checkpoints', 'stranded_asset_year_strive', 'maritime_carbon_var_10yr_usd'}
ais_speed_power_emissions(mcr_kw, design_speed_kn, observed_speed_kn, ...) ais = gomd.ais_speed_power_emissions(mcr_kw=12400, design_speed_kn=14.8, observed_speed_kn=12.8, voyage_hours=320) Bottom-up AIS Admiralty-Cube propulsion power, fuel consumption, CO₂ emissions, and 10% slow-steaming abatement model. dict {'main_engine_power_kw', 'fuel_consumption_tonnes', 'co2_emissions_tonnes', 'slow_steaming_10pct_co2_saved_tonnes'}
poseidon_principles_alignment(attained_aer, required_trajectory_aer, loan_outstanding_usd=25e6) pp = gomd.poseidon_principles_alignment(attained_aer=4.35, required_trajectory_aer=4.65, loan_outstanding_usd=45_000_000) Evaluates Poseidon Principles climate alignment delta (%) and Sustainability-Linked Loan (SLL) margin ratchet in basis points. dict {'alignment_delta_pct', 'poseidon_aligned', 'sll_margin_adjustment_bps', 'annual_interest_saving_or_penalty_usd'}
psc_detention_risk_score(ship_age_years, flag_tier="white", ro_performance="high", deficiencies_36m=0, detentions_36m=0) psc = gomd.psc_detention_risk_score(ship_age_years=14, flag_tier="white", deficiencies_36m=6, detentions_36m=1) Computes Paris/Med MoU New Inspection Regime (NIR) risk points, HRS/SRS/LRS profile, and logistic detention probability. dict {'nir_risk_points', 'ship_risk_profile', 'estimated_detention_probability', 'estimated_detention_risk_pct'}
marine_insurance_actuarial_pricing(hull_value_usd, gross_tonnage, cargo_value_usd, vessel_age_years, cii_rating, ...) uw = gomd.marine_insurance_actuarial_pricing(hull_value_usd=58e6, gross_tonnage=62000, cii_rating="B") Actuarial marine underwriting model computing H&M, P&I mutual call, cargo, war-risk surcharge, PPMI alignment, and Solvency II 99.5% VaR. dict {'hull_machinery_premium_usd', 'pi_club_mutual_call_usd', 'total_annual_premium_usd', 'ppmi_status', 'solvency_ii_var995_capital_usd'}
MODULE 4 · CLIMATE ECONOMETRICS, CAUSAL INFERENCE & DATA MINING (9 FUNCTIONS)

import gomd.stats

Multivariate data mining pipeline (PCA + K-Means++ + Walk-Forward Ridge CV), Mann–Kendall/Theil–Sen, Pettitt change-point, Gumbel return levels, Engle–Granger cointegration, Fixed Effects panel, Synthetic DiD (SDID), Şen IPTA, and Shannon Transfer Entropy.

Function Signature & Example Call Scientific Description & Methodology Returned Dictionary Keys / Output
multivariate_data_mining_pipeline(feature_matrix, feature_names, period_labels, target_index=0, k_clusters=3) res = gomd.multivariate_data_mining_pipeline(X_mat, feature_names=cols, period_labels=years, k_clusters=3) End-to-end multivariate data mining pipeline executing Spectral PCA, deterministic K-Means++ clustering with Silhouette score, and expanding-window CV Lag-1 Ridge forecasting. dict {'correlation_matrix', 'pca', 'kmeans_regimes', 'ridge_ml_forecast'}
mann_kendall_sen(y, t=None) mk = gomd.mann_kendall_sen(sst_series, t=years) Non-parametric Mann–Kendall trend test with tie-variance correction and Theil–Sen robust slope estimator. dict {'mann_kendall_s', 'kendall_tau', 'z_stat', 'p_value', 'theil_sen_slope', 'trend_classification'}
pettitt_changepoint(y, labels=None) pt = gomd.pettitt_changepoint(sst_series, labels=years) Detects structural regime shifts using the non-parametric Pettitt (1979) rank statistic. dict {'changepoint_index', 'changepoint_label', 'pettitt_k_stat', 'p_value_approx', 'pre_regime_mean', 'post_regime_mean'}
extreme_return_levels(annual_maxima, return_periods=(10, 25, 50, 100)) gev = gomd.extreme_return_levels(annual_max_hs, return_periods=(10, 25, 50, 100)) Fits an Extreme Value Type I (Gumbel) distribution to annual maxima and computes 10, 25, 50, and 100-year return levels. dict {'gumbel_location_mu', 'gumbel_scale_beta', 'return_levels'}
cointegration_eg_test(x, y) eg = gomd.cointegration_eg_test(co2_series, ph_series) Executes the Engle & Granger (1987) two-step cointegration test with MacKinnon 5% critical value evaluation. dict {'long_run_intercept_alpha', 'long_run_slope_beta', 'engle_granger_adf_t_stat', 'cointegrated_at_5pct'}
panel_fixed_effects(records, entity_col, y_col, x_col) fe = gomd.panel_fixed_effects(panel_rows, entity_col="entity", y_col="omega_arag", x_col="sst_anom") Estimates Within-Transformation One-Way Fixed Effects (FE) panel regression controlling for unobserved entity heterogeneity. dict {'n_obs', 'n_entities', 'beta_fe', 'std_error', 't_stat', 'p_value', 'r_squared_within'}
synthetic_did_ate(treated_pre, treated_post, control_matrix_pre, control_matrix_post, ridge_zeta=0.05) sdid = gomd.synthetic_did_ate(t_pre, t_post, c_pre, c_post) Estimates causal Average Treatment Effect on the Treated (ATT) via Arkhangelsky et al. (2021, AER) Synthetic Difference-in-Differences. dict {'sdid_att_estimate', 'classic_did_estimate', 'pre_treatment_rmspe', 'unit_weights_omega', 'time_weights_lambda'}
innovative_polygon_trend(y) ita = gomd.innovative_polygon_trend(sst_series) Computes Şen (2020, 2021) Innovative Trend Analysis (ITA) across low, medium, and extreme-high quantile sub-regimes. dict {'ita_slope_per_step', 'ita_relative_change_pct', 'subregime_shifts', 'tail_amplification_ratio'}
transfer_entropy_causal(x, y, bins=3) te = gomd.transfer_entropy_causal(sst_series, arag_series, bins=3) Computes directional Shannon Transfer Entropy (T_{X→Y} and T_{Y→X} in bits) and net nonlinear causal information flow. dict {'transfer_entropy_x_to_y_bits', 'transfer_entropy_y_to_x_bits', 'net_information_flow_bits', 'dominant_causal_direction'}
MODULE 5 · GEODESICS, CHOKEPOINTS & MAVI VATAN ICJ DELIMITATION AUDIT (5 FUNCTIONS)

import gomd.spatial

WGS84 orthodromic Haversine distance & bearing, IHO sea-basin classifier, 10 global maritime chokepoint proximity engine, ICJ 3-stage Mavi Vatan equitable delimitation audit, and OGC CRS84 GeoJSON exporter.

Function Signature & Example Call Scientific Description & Methodology Returned Dictionary Keys / Output
haversine_distance(lat1, lon1, lat2, lon2) d = gomd.haversine_distance(41.01, 28.97, 36.89, 30.71) Computes exact great-circle distance in km and nautical miles (nm) plus initial bearing (deg). dict {'distance_km', 'distance_nm', 'initial_bearing_deg'}
classify_sea_basin(lat, lon) basin = gomd.classify_sea_basin(40.75, 28.20) # -> MARMARA Classifies a geographic coordinate into its canonical GOMD / IHO regional sea or ocean basin. dict {'basin_code', 'basin_name', 'ocean'}
chokepoint_proximity(lat, lon) cp = gomd.chokepoint_proximity(36.15, 29.60) Computes distances (km & nm) and bearings to all 10 strategic global maritime chokepoints. dict {'query_point', 'sea_basin', 'nearest_chokepoint', 'chokepoints'}
mavi_vatan_eez_audit(mainland_coast_km, opposite_coast_km, un_registered_area_km2, provider_polygon_area_km2, ...) icj = gomd.mavi_vatan_eez_audit(mainland_coast_km=1577.0, opposite_coast_km=19.0, un_registered_area_km2=462000.0) Audits maritime delimitation scenarios under ICJ 3-stage jurisprudence and UN Letter A/74/757 coastal proportionality. dict {'coastal_length_proportionality_ratio', 'equitable_mainland_share_pct', 'provider_underattribution_pct', 'icj_island_effect_weight_0_1', 'seville_map_disproportionality_factor', 'equitable_delimitation_compliance_score'}
to_geojson(records, lat_col="latitude", lon_col="longitude") fc = gomd.to_geojson(obs_records, lat_col="lat", lon_col="lon") Converts coordinate observation dictionaries into an OGC CRS84 GeoJSON FeatureCollection. dict {'type': 'FeatureCollection', 'crs': ..., 'features': [...]}
MODULE 6 · COMMAND-LINE INTERFACE (CLI)

import gomd.cli

Provides zero-boilerplate terminal commands (`python -m gomd ...`) for CII rating, carbonate chemistry, sea-basin lookup, and citations.

Function Signature & Example Call Scientific Description & Methodology Returned Dictionary Keys / Output
python -m gomd cite [--style apa|ieee|tr|bibtex] !python -m gomd cite --style bibtex Prints the official GOMD academic citation string from the terminal. STDOUT formatted citation
python -m gomd cii --fuel-tonnes <T> --dwt <DWT> --distance-nm <NM> --ship-type <TYPE> !python -m gomd cii --fuel-tonnes 7450 --dwt 82000 --distance-nm 58000 --ship-type bulk_carrier Computes IMO CII AER and A–E rating directly from the command line as JSON. STDOUT JSON
python -m gomd carbonate --ph <PH> --temp <C> --salinity <PSU> --ta <UMOL> !python -m gomd carbonate --ph 8.06 --temp 21.4 --salinity 38.6 --ta 2610 Solves surface ocean carbonate equilibrium and Ω_aragonite from the command line. STDOUT JSON