We are going to setup a pipeline for acquiring public domain climatological data from…
- User
We are going to setup a pipeline for acquiring public domain climatological data from National Centers for Environmental Information (https://www.ncei.noaa.gov/) and perform analytics on the dataset. The archive (https://www.ncei.noaa.gov/data/local-climatological-data/access/YYYY/) contains data collected from over 13400 stations from YYYY=1901 to YYYY=2024. Each year in every station the data is collected every hour on Altimeter, DewPointTemperature, DryBulbTemperature, Precipitation, PresentWeatherType, PressureChange, PressureTendency, RelativeHumidity, SkyConditions, SeaLevelPressure, StationPressure, Visibility, WetBulbTemperature, WindDirection, WindGustSpeed, WindSpeed,Sunrise, Sunset readings. Given the base URL (https://www.ncei.noaa.gov/data/local-climatological-data/access/) and the year YYYY, create a pipeline in Apache Beam for
- Fetch the page containing the location wise datasets for that year.
- Based on the required number of data files, select the data files randomly from the available list of files. (Python Operator)
- Fetch the individual data files (Bash or Python Operator)
- Extract the contents of the CSV into a data frame and filter the dataframe based on the required fields such Windspeed or BulbTemperature, etc. Extract also the Lat/Long values from the CSV to create a tuple of the form <Lat, Lon, [[ArrayOfHourlyDataOfTheReqFields]]>. (PythonOperator using Apache Beam)
- Report the percent of missing values in the each file, columns who have at least 25% missing values.
- Setup another PythonOperator to compute the monthly averages of the required fields. The output will be of the form <Lat, Long, [[Avg_11, ..., Avg_1N] .. [Avg_M1, ..., Avg_MN]]> for N fields and M months.
- Store the files with average values in a folder
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.