소스 정보
- 저장소
- cxcscmu/SkillLearnBench
- 최근 소스 활동
- 2026년 4월 24일 05:14
- 감지된 SKILL.md 언어
- 영어
- 스타
- 77
- 포크
- 4
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill netcdf-processing명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | netcdf-processing |
| description | Reading, processing, and analyzing NetCDF output from lake simulation models |
NetCDF (Network Common Data Form) is a self-describing binary format commonly used for scientific data. GLM outputs simulation results in NetCDF format containing temperature, mixing, and other variables across time and depth.
pip install netCDF4 numpy pandas
import netCDF4 as nc
import pandas as pd
# Open NetCDF file
ds = nc.Dataset('/path/to/output.nc', 'r')
# List variables
print(ds.variables.keys())
# List dimensions
print(ds.dimensions.keys())
# Read a variable
temp = ds.variables['temp'][:] # Returns numpy array
time = ds.variables['time'][:]
z = ds.variables['z'][:] # depth dimension
Typical GLM NetCDF output contains:
import netCDF4 as nc
import pandas as pd
def extract_glm_temperatures(nc_file, start_date='2009-01-01'):
"""Extract temperature time series from GLM NetCDF output"""
ds = nc.Dataset(nc_file)
# Get data
temp = ds.variables['temp'][:] # [time, depth]
z = ds.variables['z'][:] # depth
time = ds.variables['time'][:] # time since reference
# Get reference date from time variable
time_var = ds.variables['time']
units = time_var.units # e.g., "seconds since 2009-01-01 00:00:00"
# Convert time to datetime
from netCDF4 import num2date
dates = num2date(time, units)
ds.close()
return temp, z, dates
# Get temperature at specific depth
depth_idx = 5 # 5m depth
temp_5m = temp[:, depth_idx]
# Get temperature at specific time
time_idx = 100 # Time step 100
temp_at_time = temp[time_idx, :]
from netCDF4 import num2date
from datetime import datetime
# Convert netCDF time to datetime
dates = num2date(time_values, time_units)
# Filter to specific date range
start = datetime(2009, 1, 1)
end = datetime(2015, 12, 31)
mask = (dates >= start) & (dates <= end)
filtered_temp = temp[mask, :]
# Interpolate to standard depths
from scipy.interpolate import interp1d
# Get simulated temps at exact depths
standard_depths = [0, 5, 10, 15, 20]
interpolator = interp1d(z, temp[time_idx, :], kind='linear')
interp_temps = interpolator(standard_depths)
temp[:, idx]) to avoid unnecessary I/Ods.close()