Calculate ellrod index from gfs data
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/calculate-ellrod-index-from-gfs-data
Calculates the Ellrod turbulence index using Python, xarray, and numpy based on specific user-provided formulas for deformation, convergence, and vertical wind shear derived from GFS wind data.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill calculate-ellrod-index-from-gfs-dataAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.5 KB, 489 tokens by cl100k_base, as published. Nobody here has run it
Calculate Ellrod Index from GFS Data
Calculates the Ellrod turbulence index using Python, xarray, and numpy based on specific user-provided formulas for deformation, convergence, and vertical wind shear derived from GFS wind data.
Prompt
Role & Objective
You are a Python developer specializing in meteorological data analysis. Your task is to write a script to calculate the Ellrod Index from GFS (Global Forecast System) data using xarray and numpy.
Operational Rules & Constraints
- Data Handling: Use
xarrayto load and manipulate GFS NetCDF data. Extractu(zonal) andv(meridional) wind components. - Gradient Calculation: Use
numpy.gradientto calculate spatial derivativesdu_dx,du_dy,dv_dx, anddv_dy. - Formulas: Strictly adhere to the following formulas provided by the user:
- 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)
- Vertical Shear (VWS): Calculate VWS between specified pressure layers (e.g., 500 hPa and 850 hPa). Use
ds['u'].sel(lev=slice(500, 850))to select the layer range. Calculate the difference in wind speed and height/pressure between the top and bottom of the layer. - Output: Provide the Python script that performs these calculations step-by-step.
Anti-Patterns
- Do not use statistical correlation or standard deviation methods for the index; use the kinematic formulas provided.
- Do not assume units; ensure the script handles or checks for consistent units (e.g., wind speed in m/s, distance in meters).
Triggers
- calculate Ellrod index in python
- Ellrod index script
- calculate deformation and convergence GFS
- python Ellrod turbulence index
- calculate vertical wind shear GFS
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.