본문으로 건너뛰기
cccskills
무료GitHub에 공개

marine-carbonate-chemistry

Calculate seawater carbonate chemistry from two independent measurements using PyCO2SYS. Produce pH, carbonate species, and mineral saturation results, convert laboratory conditions to ocean conditions, and propagate measurement uncertainty while recording calculation assumptions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Solves seawater carbonate chemistry with PyCO2SYS for chemical oceanography, ocean acidification, and marine carbon-cycle research. Use for paired total alkalinity, dissolved inorganic carbon, pH, or seawater pCO2/fCO2 measurements; carbonate speciation; aragonite and calcite saturation; Revelle factors; lab-to-in-situ temperature and pressure corrections; and measurement uncertainty propagation. Applies to carbonate-system calculations, not general aqueous speciation or air-sea gas-flux estimation.

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Calculate carbonate chemistry from paired seawater measurements
  • Assess aragonite and calcite saturation
  • Convert laboratory results to ocean temperature and pressure
  • Quantify how measurement uncertainty affects results

포함된 파일(4)

  • SKILL.md9.3 KB
  • references/chemistry-decisions.md6.4 KB
  • references/input-and-results.md4.7 KB
  • scripts/solve_carbonate.py11.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Marine Carbonate Chemistry

Turn two independent seawater carbonate measurements into a reproducible speciation table, mineral saturation estimates, and a record of the calculation assumptions. Targets PyCO2SYS 1.8.3.4, tested with Python 3.13 and NumPy 2.5.3. As reviewed on 2026-10-01, this remains the stable PyPI release. The v2 documentation is for a beta with breaking changes; use the v1 documentation for this pin.

When to use

  • Analyze bottle samples, shipboard carbonate measurements, or acidification experiments.
  • Calculate total-scale pH, seawater pCO2/fCO2, carbonate ion, aragonite/calcite saturation state, or the Revelle factor from a valid measured pair.
  • Convert a system determined at laboratory conditions to specified ocean conditions.
  • Quantify how stated measurement uncertainties affect the calculated results.

This workflow concerns seawater carbonate equilibria. Freshwater, porewaters with substantial uncharacterized alkalinity, brines outside the selected calibration range, and reaction/transport models require additional chemistry and validation. Do not infer an air-sea flux or atmospheric carbon removal from a carbonate equilibrium alone.

Establish the measurement contract

Before running a solver, identify the two measured variables, their units, quality flags, and their temperature/pressure basis. Retain a separate source table containing station, depth, timestamps, methods, reference materials, and original QC codes, joined by sample ID. Do not turn missing values or rejected measurements into zero.

QuantityRequired convention
Total alkalinity (TA), DIC, nutrientsmicromol per kg seawater, not per litre or kg water
SalinityPractical Salinity, not Absolute Salinity in g/kg
TemperatureIn-situ/measurement temperature in degrees Celsius, not potential or Conservative Temperature
PressureSea pressure in dbar; surface sample is 0, not 1 atmosphere
pHDeclared total, seawater, free, or NBS scale, at the declared measurement conditions
pCO2 / fCO2Seawater partial pressure / fugacity in microatm; these are distinct quantities

TA and DIC remain constant during the solver's temperature/pressure conversion for a closed sample. pH and gas parameters change. Two inputs measured at different conditions cannot simply share one temperature value. Establish a consistent measurement basis first. Temperature correction does not repair sample changes caused by gas exchange, biology, evaporation, or mineral dissolution/precipitation.

Use two independent carbonate parameters. pCO2 plus fCO2 is not an independent pair. Three or more measurements enable an overdetermination check: solve independent pairs and compare predicted versus measured third parameters, including their uncertainty. Do not average inconsistent solutions to hide a calibration or scale mismatch.

Install

Create a dedicated environment in the user's working directory:

uv venv --python 3.13 .venv
uv pip install --python .venv/bin/python "PyCO2SYS==1.8.3.4" "numpy==2.5.3"

On Windows the environment's interpreter is .venv/Scripts/python.exe. The commands below use the POSIX interpreter path. Set the shell variable SKILL_DIR to this installed skill's directory. Keep inputs and generated outputs in the working directory.

Workflow

  1. Prepare paired measurements. Use the schema in references/input-and-results.md. Resolve units and quality flags before creating the input file. Supply phosphate and silicate explicitly; zero is an assumption to justify, not a missing-data code.
  2. Choose equilibrium constants. Read references/chemistry-decisions.md for pH scales, carbonic-acid constants, borate, saturation interpretation, and uncertainty limits. Match the study's validated convention and report it. The helper supports carbonic-acid options 10 and 15; other systems require a separately verified direct PyCO2SYS call.
  3. Solve with scripts/solve_carbonate.py. It validates the full input table, solves the pair, checks finite outputs and DIC species balance, then writes carbonate.csv and provenance.json into a new output directory.
  4. Review flags and consistency. Inspect calibration-range and gas-pressure flags, carbonate balance, measured-third-parameter residuals when available, and controls. A successful solve does not validate the sample, constants, or measurement method.
  5. Report at the intended conditions. Results ending _out describe the supplied output temperature/pressure. Unsuffixed results describe input conditions. Gas results retain the helper's uncorrected hydrostatic gas convention (see below). Include parameter pair, pH scale, units, constants, nutrient assumptions, uncertainty scope, software versions, and excluded/flagged samples with the result table.

Worked example: closed-sample condition correction

The following values are synthetic, not field observations. Save this as samples.csv in a working directory. The two samples differ only in DIC; the second represents a fixed-alkalinity CO2-addition comparison. Their measurements are at 25 C and 0 dbar; results are also requested at 10 C and 1000 dbar.

sample_id,par1,par2,salinity,temperature,pressure,total_phosphate,total_silicate,temperature_out,pressure_out,u_par1,u_par2
baseline,2300,2000,35,25,0,0,0,10,1000,2,2
added_co2,2300,2100,35,25,0,0,0,10,1000,2,2

Run from that working directory:

.venv/bin/python "$SKILL_DIR/scripts/solve_carbonate.py" samples.csv \
  --par1-type alkalinity --par2-type dic --k-carbonic 10 \
  --output-dir carbonate-results

For the baseline, the tested version gives input-condition total pH 8.045886, pCO2 396.958 microatm, and aragonite saturation 3.386201. At the specified output conditions, total pH is 8.241241 and aragonite saturation 2.605691. These rounded values are regression checks for this exact setup, not universal seawater benchmarks. With independent 2 micromol/kg uncertainties in TA and DIC only, u_pH_total is about 0.004580. This excludes equilibrium-constant and other input uncertainty. Both rows carry gas_pressure_correction_disabled_output: the output pH and mineral saturation include pressure effects, but the reported pCO2/fCO2 do not include the hydrostatic corrections to CO2 solubility and fugacity. Do not compare those gas values directly with a pressure-corrected subsurface sensor measurement.

For TA + measured pH, use --par2-type ph --ph-scale total only if the source explicitly identifies total-scale pH; replace par2 and u_par2 with the measured pH and its absolute standard uncertainty. A column named merely pH is insufficient to establish its scale.

Uncertainty and interpretation

Optional u_ input columns contain absolute one-standard-deviation uncertainties. They propagate to total pH, pCO2, and aragonite saturation at each requested condition. The helper assumes independent errors and treats unlisted inputs/constants as exact. For covariance, constants uncertainty, or strongly nonlinear uncertainty, follow the decision guide and validate a tailored propagation instead of calling these outputs a complete uncertainty budget.

Omega < 1 indicates thermodynamic undersaturation with respect to the named mineral. It does not establish a dissolution rate or an organism's response. A lower pH across unmatched samples is not by itself evidence of an anthropogenic acidification trend.

Sources and validation boundary

Repository tests exercise the pinned solver, independent-pair round trips, carbon balance, pH-scale equivalence, condition correction, Revelle-factor derivatives, gas-pressure conventions, uncertainty quadrature, CSV errors, and the worked example. The helper calls the local pyco2.sys Python API; it has no HTTP endpoints or authentication. Tests establish software behavior, not independent field-data validation; upstream's validation page also contains historical examples, including a removed pyco2.test interface.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

13c-metabolic-flux

무료요약 있음

정상 상태의 탄소 13 추적 측정값으로 세포 내 대사 플럭스를 추정합니다. 탄소 원자 매핑과 측정 입력을 점검하고 표지 분포를 모의한 뒤, 데이터가 제약할 수 있는 경로 반응 속도를 평가합니다.

  • 탄소 13 측정값으로 대사 플럭스 추정
  • 원자 매핑과 측정 입력의 일관성 확인
  • 지정한 플럭스로 표지 분포 예측
K-Dense-AI/scientific-agent-skills5.4만2026년 10월 19일 업데이트

adaptyv

무료요약 있음

Adaptyv 클라우드 실험실에서 단백질 특성 분석을 계획하고 비용을 추산하며, 서열 제출부터 진행 상황 확인과 결과 수집까지 지원합니다. 결합, 열 안정성, 발현, 형광, 효소 활성을 측정합니다.

  • 후보 단백질 서열의 결합 시험 설계
  • 의뢰 전 실험 비용 추산
  • 실험 진행 상황과 결과 확인
K-Dense-AI/scientific-agent-skills5.4만2026년 10월 19일 업데이트

aeon

무료요약 있음

Python 도구 모음 `aeon`으로 시간에 따라 변하는 데이터를 분석합니다. 분류, 회귀, 군집화, 예측, 이상 탐지, 패턴 검색을 지원하며 전처리, 알고리즘 선택, 평가 방법도 안내합니다.

  • 시계열 분류 또는 연속값 추정
  • 비슷한 시계열 묶기
  • 미래 값 예측
K-Dense-AI/scientific-agent-skills5.4만2026년 10월 19일 업데이트

alphagenome

무료요약 있음

AlphaGenome Atlas의 사전 계산 결과와 모델 예측으로 DNA 변이가 유전자 활동에 미칠 수 있는 영향을 살펴봅니다. 후보 변이를 순위화하고 조직별 영향을 확인하며 점수에 기여한 특징을 검토해 생물학적 기전에 관한 연구 가설을 세울 수 있습니다.

  • VCF 후보 변이를 AVI로 순위화
  • 조직별 유전자 발현 영향 조사
  • 변이 전후 DNA 예측 비교
K-Dense-AI/scientific-agent-skills5.4만2026년 10월 19일 업데이트

analytical-method-validation

무료요약 있음

분석법이 의도한 용도에 적합한지 평가하는 시험의 계획, 통계 계산과 문서화를 지원합니다. 적용 기준을 선택하고 교정, 정확도, 정밀도, 검출 한계를 평가하며 사전 기준으로 분석법을 비교합니다.

  • 검증 시험 계획과 판정 기준 수립
  • 교정, 정확도와 정밀도 평가
  • 검출 한계와 정량 한계 추정 또는 확인
K-Dense-AI/scientific-agent-skills5.4만2026년 10월 19일 업데이트

anndata

무료요약 있음

단일 세포 측정값과 세포·유전자 정보를 함께 정리하고 h5ad 또는 Zarr 파일을 읽고 씁니다. 데이터를 추출·결합하고, 대규모 데이터에서 필요한 부분만 메모리에 올리는 작업도 지원합니다.

  • h5ad·Zarr 파일 읽기와 쓰기
  • 출처 라벨을 붙여 실험 데이터 결합
  • 조건에 따라 세포나 유전자 추출
K-Dense-AI/scientific-agent-skills5.4만2026년 10월 19일 업데이트

K-Dense-AI의 스킬 모두 보기

이 스킬의 문제 신고