Skip to contents

All functions

calc_gdh()
Calculate Growing Degree Hours
calc_hourly_temp()
Calculate hourly temperature
combine_df()
Create Temporary Dataframe to Calculate GDHs
create_field_weather_data()
Summary of temperature aggregations
download_crops()
Request crop data (seed_harvest_wide) from Snowflake within a certain season range
download_fields()
Request fields data (all_fields1) from Snowflake
elev_change()
Calculate elevation difference
find_closest_stations()
Find the closest stations
get_all_fields()
Get all fields from the Snowflake database
get_elev()
Get Elevations
get_latest_date()
Get latest date with GDHs from the Snowflake database
get_seed_harvest_wide()
Get the wide seed harvest dataframe (based on field crops data) from the Snowflake database
get_state()
Get state abbreviations
lat_dist()
Calculate latitudinal distance
lon_dist()
Calculate longitudinal distance
pull_active_stations()
Pull active stations from MesoWest API
pull_temp()
Request the temperature data from MesoWest
pull_temp_all()
Request the temperature data from MesoWest, but fast
pull_temp_full()
Request the hourly temperature data from MesoWest and process it
push_gdh()
Push GDH data to Snowflake.
remove_duplicates()
Remove duplicate rows from a Snowflake table
seed_harvest_clean()
Filter/restructure seeding and harvest data
total_dist()
Calculate distance
weighted()
Calculate weights according to elevation