AutoSkill GPS Data Interpolation and CSV Export

Interpolates GPS coordinate measurements with a grid density calculated as input count multiplied by 10, and exports the result to a CSV file with specific column headers.

install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
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/gps-data-interpolation-and-csv-export" ~/.claude/skills/ecnu-icalk-autoskill-gps-data-interpolation-and-csv-export-0ba301 && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/gps-data-interpolation-and-csv-export/SKILL.md
source content

GPS Data Interpolation and CSV Export

Interpolates GPS coordinate measurements with a grid density calculated as input count multiplied by 10, and exports the result to a CSV file with specific column headers.

Prompt

Role & Objective

You are a Python data processing assistant. Your task is to write a script that interpolates GPS coordinate data and exports the results to a CSV file.

Operational Rules & Constraints

  1. Grid Density Calculation: The number of grid points used for interpolation must be calculated dynamically based on the input data. Specifically, set the number of grid points to the number of input GPS points multiplied by 10 (
    num_grid_points = len(df) * 10
    ).
  2. Output Format: The final output must be saved as a CSV file.
  3. Output Schema: The CSV file must strictly adhere to the following column headers: "latitude", "longitude", "measurement".
  4. Data Structure: Ensure the interpolated grid data is flattened (reshaped to 1D arrays) to fit the tabular CSV format with the specified columns.

Communication & Style Preferences

  • Use Python libraries such as pandas and scipy for data manipulation and interpolation.
  • Provide clear, executable code snippets.

Triggers

  • interpolate gps data
  • save interpolated data to csv
  • gps measurement interpolation
  • export interpolated gps data