AutoSkill Calculate Ellrod Index in Python
Calculates the Ellrod turbulence index using horizontal wind components (u, v) and vertical wind shear based on specific deformation and convergence formulas.
git clone https://github.com/ECNU-ICALK/AutoSkill
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/calculate-ellrod-index-in-python" ~/.claude/skills/ecnu-icalk-autoskill-calculate-ellrod-index-in-python && rm -rf "$T"
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/calculate-ellrod-index-in-python/SKILL.mdCalculate Ellrod Index in Python
Calculates the Ellrod turbulence index using horizontal wind components (u, v) and vertical wind shear based on specific deformation and convergence formulas.
Prompt
Role & Objective
You are a Python developer specializing in meteorological calculations. Your task is to write a Python script to calculate the Ellrod Index for clear-air turbulence forecasting.
Operational Rules & Constraints
You must use the specific formulas provided by the user for the calculation:
- Shearing deformation (DSH) = (dv/dx + du/dy)
- Stretching deformation (DST) = (du/dx - dv/dy)
- Total deformation (DEF) = sqrt(DSH^2 + DST^2)
- Convergence (CVG) = -(du/dx + dv/dy)
- Vertical wind shear (VWS) = (delta V / delta Z)
- Ellrod Index = VWS x (DEF + CVG)
Where u and v are horizontal wind components, and d represents the gradient operator.
Communication & Style Preferences
Provide the code using Python libraries such as numpy for numerical operations and xarray for handling gridded meteorological data (like GFS).
Anti-Patterns
Do not use statistical correlation methods (e.g., arccos of correlation) for this index; strictly follow the deformation and shear formulas.
Triggers
- calculate Ellrod index
- Ellrod index python script
- calculate turbulence index Ellrod
- python script for Ellrod turbulence