Skip to main content

A basic package for downloading and processing GSOD data

Project description

gsodpy

Python module to download and work with GSOD data from NOAA

Usage Guide:

Dowload All Data

import gsodpy.gsodDownloader as gdown

gdown.get_data(directory="noaa_gsod")

Process Desired Time Series

import gsodpy.gsodProcess as gsod 
import pandas as pd
import datetime

num_years = 10
num_extremes = 30
target_day = datetime.datetime(2020,3,20)

years, files = gsod.get_years_files(num_years)

df, df_day = gsod.process_all_years(files, target_day)

Save Processed DataFrame

df.to_pickle("df_monthly.pkl")
df_day.to_pickle("df_daily.pkl")

df = pd.read_pickle("df_monthly_fin.pkl")
df_day = pd.read_pickle("df_daily_fin.pkl")

Create Extremes DataFrame

If we want to find the coldest and warmest stations on a given day we can use the create_extremes() function

extremes = gsod.create_extremes(df_day, df_day['DATE'][0], 40)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gsodpy-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gsodpy-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file gsodpy-0.0.1.tar.gz.

File metadata

  • Download URL: gsodpy-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for gsodpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 eaaea5959867e33480116c618acd26c8cea19e9b705ba21f6b855d2b0ea8c2fc
MD5 c7b9e7dddec32eec2f6ac4d82a3a53b6
BLAKE2b-256 fde3603327b0d1cbc6e50b13774265b3b31f96c2dbe7e58c235cbb8d009da913

See more details on using hashes here.

File details

Details for the file gsodpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gsodpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for gsodpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df3a69137488f5079ceab42f28cb5a424b2e3ceb56861471dcfdc861542cd416
MD5 7a86562a0b62ddf463019a47f397ee2d
BLAKE2b-256 ed17884b256b8edeef64b9e0c9063adeae500ba5af960706a5eacf86d92db00b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page