Skip to content

Commit

Permalink
Use Pooch to download sample data
Browse files Browse the repository at this point in the history
Add it to `metpy/cbook.py` and include the dependency on setup.py.
Create the registry file using `pooch.make_registry` and stored it in
the `metpy` package.
  • Loading branch information
leouieda authored and jrleeman committed Aug 23, 2018
1 parent f3f2bda commit b3fc756
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 21 deletions.
1 change: 0 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ install:
build: off

test_script:
- cmd: set TEST_DATA_DIR=%APPVEYOR_BUILD_FOLDER%\\staticdata
- cmd: python setup.py test --addopts "-s --junitxml=tests.xml --flake8 --mpl --cov=metpy"
- cmd: cd docs
- cmd: make overridecheck html
Expand Down
3 changes: 2 additions & 1 deletion .stickler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ linters:
ignore: 'F405'
max-line-length: 95
files:
ignore: ['metpy/_version.py']
ignore:
- 'metpy/_version.py'
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include LICENSE
include CONTRIBUTING.md
include versioneer.py
include metpy/_version.py
include metpy/static-data-manifest.txt
recursive-include examples *.py *.txt
recursive-include tutorials *.py *.txt
recursive-include docs *
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ dependencies:
- cartopy
- doc8
- recommonmark
- pooch=0.1
29 changes: 20 additions & 9 deletions metpy/cbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"""Collection of generally useful utility code from the cookbook."""

import os
import os.path

from matplotlib.cbook import iterable
import numpy as np
import pooch

from . import __version__

try:
string_type = basestring
Expand All @@ -21,16 +23,25 @@ def is_string_like(s):
return isinstance(s, string_type)


def get_test_data(fname, as_file_obj=True):
"""Access a file from MetPy's collection of test data."""
# Look for an environment variable to point to the test data. If not, try looking at
# the appropriate path relative to this file.
data_dir = os.environ.get('TEST_DATA_DIR',
os.path.join(os.path.dirname(__file__), '..', 'staticdata'))
POOCH = pooch.create(
path=pooch.os_cache('metpy'),
base_url='https://github.com/Unidata/MetPy/raw/{version}/staticdata/',
version=__version__,
version_dev='master',
env='TEST_DATA_DIR')

# Check if we're running from a git clone and if so, bash the path attribute with the path
# to git's local data store (un-versioned)
# Look for the staticdata directory (i.e. this is a git checkout)
if os.path.exists(os.path.join(os.path.dirname(__file__), '..', 'staticdata')):
POOCH.path = os.path.join(os.path.dirname(__file__), '..', 'staticdata')

# Assemble the path
path = os.path.join(data_dir, fname)
POOCH.load_registry(os.path.join(os.path.dirname(__file__), 'static-data-manifest.txt'))


def get_test_data(fname, as_file_obj=True):
"""Access a file from MetPy's collection of test data."""
path = POOCH.fetch(fname)
# If we want a file object, open it, trying to guess whether this should be binary mode
# or not
if as_file_obj:
Expand Down
11 changes: 5 additions & 6 deletions metpy/io/tests/test_nexrad.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
"""Test the `nexrad` module."""

from datetime import datetime
import glob
from io import BytesIO
import logging
import os.path

import numpy as np
import pytest

from metpy.cbook import get_test_data
from metpy.cbook import get_test_data, POOCH
from metpy.io import is_precip_mode, Level2File, Level3File

# Turn off the warnings for tests
Expand Down Expand Up @@ -58,7 +56,8 @@ def test_doubled_file():
#
# NIDS/Level 3 Tests
#
nexrad_nids_files = glob.glob(os.path.join(get_test_data('nids', as_file_obj=False), 'K???_*'))
nexrad_nids_files = [get_test_data(fname, as_file_obj=False)
for fname in POOCH.registry if fname.startswith('nids/K')]


@pytest.mark.parametrize('fname', nexrad_nids_files)
Expand All @@ -76,8 +75,8 @@ def test_level3_files(fname):
assert f.filename == fname


tdwr_nids_files = glob.glob(os.path.join(get_test_data('nids', as_file_obj=False),
'Level3_MCI_*'))
tdwr_nids_files = [get_test_data(fname, as_file_obj=False)
for fname in POOCH.registry if fname.startswith('nids/Level3_MCI_')]


@pytest.mark.parametrize('fname', tdwr_nids_files)
Expand Down
150 changes: 150 additions & 0 deletions metpy/static-data-manifest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
AK-REGIONAL_8km_3.9_20160408_1445.gini 4919b80abe95a765a42a6e3904ef1e38b8be804dc52276ef5db6b587f85abd55
HI-REGIONAL_4km_3.9_20160616_1715.gini 30896dda51c9f933027d8086f0a86543efce12ea90a52981eccbce2e0ce1529e
KICX_20170712_1458 94bd4f795832f056f7489a5562acf76de9a9cab1694549562cc3154abb22527c
KTLX19990503_235621.gz 7a097251bb7a15dbcdec75812812e41a86c5eb9850f55c3d91d120c2c61e046e
KTLX20130520_201643_V06.gz 772e01b154a5c966982a6d0aa2fc78bc64f08a9b77165b74dc02d7aa5aa69275
KTLX20150530_000802_V06.bz2 d78689afc525c853dec8ccab4a4eccc2daacef5c7df198a35a3a791016e993b0
Level2_KFTG_20150430_1419.ar2v 77c3355c8a503561eb3cddc3854337e640d983a4acdfc27bdfbab60c0b18cfc1
Level3_Composite_dhr_1km_20180309_2225.gini 19fcc0179c9d3e87c462262ea817e87f52f60db4830314b8f936baa3b9817a44
NHEM-MULTICOMP_1km_IR_20151208_2100.gini c144b29284aa915e6fd1b8f01939c656f2c72c3d7a9e0af5397f93067fe0d952
WEST-CONUS_4km_WV_20151208_2200.gini 6851b49d20de2ee3e6fc0ef86e6c0f8f22170a6bd03bd6940b28c3ec09b8e7f6
barnes_r40_k100.npz a467b14872f4b9e7773c7583a61ad5ff70890e603f712e9a21b2c64fba9bd01c
barnes_test.npz 50870b92fe5cbeedfc70fb0c877b3d84b3e6ba2ba17ebdfe1c407d49e23a0555
cressman_r20_mn1.npz c90fc6d3c8064a4035a2cbae27a744b71f709f3ac333063c893f77bfb91dee9b
cressman_test.npz 7210f390dcc480c071da6bb516928a9c87f0bdf6cb18a858066724904f4d4326
cubic_test.npz bc029043f625145315ad443ae132796303d850650659ad616ff1cc078c703f9f
dec9_sounding.txt 4f60955bee4a59e2da0c225d778b9a04a149e9a17b4dce6bfefc111240b3b165
gfs_output.nc d25cc505204118d8e352b5bae6ff24a50c5e97a554e4f40cc1f0b6f0f84a9755
interpolation_test_grid.npz 6549bf00a8b77a50cd58f07419d1f6a4c629580ad1ef43cecd04eb70b9bd4020
interpolation_test_points.npz 9fb7ccdc62cead528355371c00cad446b68e84be83cec6df5ca9b2c05ef08ee3
irma_gfs_example.nc 98e582bca9467e9c77aafa1e5079d6bedebaa97fabe79711bd911b32d92c32e2
jan20_sounding.txt 3de8c3a9daeffbfec3b6de9c67e14fe42728c4d6c2024d4543e2e74d4fb57315
linear_test.npz f1d22fe85cb602c8997d0008cbc44363da30fed805302c4bbb34bfbc7b37270a
may22_sounding.txt 33cc9a2a6964cc6f0baa6bf9d8893f3d7b164c79953f695c1339e30189de19f0
may4_sounding.txt b3a7c3ee4b1bdb1e1961492265c23f42947dc627156cfacb5fdebac0ad0b4350
narr_example.nc 00bbe42b4dc90cc95cf5d12f3f5e7d5508cb2592d72dc8081ebacea8a526fb1c
natural_neighbor_test.npz df7c07ee4ee05572552831ffea17f56ad664fbd2fc6c261d22a82baeecfa8a7a
nearest_test.npz 85fb955573de48280067efc097b77d1314da88b6af3abc39a02b9540db63ef7f
nids/KABR_NOUS63_FTMABR_201104281331 98854ad65a5b5c3f065d5b422447b3886757eec4adce68a9b52619238ef40866
nids/KOUN_NXUS64_GSMTLX_201305202100 17ed288008309a4d632d965de0700ff21690d0c84b049f711fb4297fb98ec21f
nids/KOUN_SDUS24_N1QTLX_201305202016 0239c505c2d581ac3fed306ce20230538957cda220b0a2f5b9ee8b15e55e6720
nids/KOUN_SDUS24_N1STLX_201305202016 1c3b80de4f1d5103ee3a914f8972de8dc6e69258714b30fe931b0785355154d9
nids/KOUN_SDUS24_N1UTLX_201305202016 82fa677d3fe136ce0ee8a7cfd70d1447a64200136304cfff2b9329f1dc48d527
nids/KOUN_SDUS24_N2QTLX_201305202016 701639d202e6840a2f64122543c5796accbcbd5b5f9907474aff5f4036ef7b20
nids/KOUN_SDUS24_N2STLX_201305202016 2c41e0eb86205a924f08ffbb7571dfefa5c4b5e23c1b329346952653b3851ae1
nids/KOUN_SDUS24_N2UTLX_201305202016 5361c229dd5e7935e940859efef241fbc5127450b56e5d8ae3dece4fe8426d26
nids/KOUN_SDUS24_N3QTLX_201305202016 63afff8a26375f2e6ca3ef11003bccf881370a82e872bfbae42b3f16930148c1
nids/KOUN_SDUS24_N3UTLX_201305202016 9b4245079f5ce479b5ac8eb2c6b7330ae6f85448201715914925c018d8990153
nids/KOUN_SDUS24_NBQTLX_201305202016 507635ebea64e6f902697c7965e854136bab33c100975c16c08135b87e22411f
nids/KOUN_SDUS24_NBUTLX_201305202016 0ac1defd40124c564b83908d16a61237a8eeb0f9196474c4fca89c3e32d59d48
nids/KOUN_SDUS34_N1PTLX_201305202016 38f574cee28c2dd98c76e2ac9722f73519e98fa88b52d3f09b9d9d3caf219a63
nids/KOUN_SDUS34_N3STLX_201305202016 9fb1333f9e383beee753f41c0569a4655f623148de4b006aa7da74a63b5bf6d3
nids/KOUN_SDUS34_NMDTLX_201305202016 64b89ea2f67b53c9e60971cf774eaaf415dc9475b03d0de82e03151f08484e33
nids/KOUN_SDUS34_NSTTLX_201305202016 6093414970436dbae3df3e9f337dd45d4e17d75449d42008b876952e85e6db33
nids/KOUN_SDUS34_NVWTLX_201305202016 76e4e49f0d12181890a0d55447a75e29c5a7a846f0c75de580275cba1b90c8bc
nids/KOUN_SDUS34_PTATLX_201305202016 fad0027f0067113b48e8f2ee1f5a1a05ff73c3ae2d6a945a07aaf184a8beffb4
nids/KOUN_SDUS44_RCMTLX_201305202016 a7da9ba81cb4a888e7f76f75fcd4c2b18a2da9d6c3d5d483f6567a29eecd3aa7
nids/KOUN_SDUS44_RSLTLX_201305202358 4970d44151ab17a1e2aad581c312eba85889b32b4c25aab84c19f64e452cd1b2
nids/KOUN_SDUS54_DHRTLX_201305202016 e9a2609a7ae8b46c309d8f8e31f8cf376124af9630bc861fd75b7eefc16d18a3
nids/KOUN_SDUS54_DPATLX_201305202016 40a0ae0aa53586bfb906566d023b254fd66f7906a2f4a73a62e30df0b97731e7
nids/KOUN_SDUS54_DSPTLX_201305202016 e9e281afe4fdfe60be1e886d6363e4b6eedf515b80fca974b4701a071a873bf6
nids/KOUN_SDUS54_DVLTLX_201305202016 aa36e73551d16907a654174038c93a58c3ab3498935173fe3c575e0dddc13bc0
nids/KOUN_SDUS54_N0QTLX_201305202016 058aa3a5b354b8bf576a50850713589eff2b5c1b3802bbf03406c48b8d6df172
nids/KOUN_SDUS54_N0RTLX_201305202016 4a1bd852ac3fae23166afe38dbe59394cf56566dd50478f471a8068467ff804b
nids/KOUN_SDUS54_N0STLX_201305202016 f8c8b7851ab0ba34719211486b71f1765b8aed3e0572f14b03a03a364ff9f5ce
nids/KOUN_SDUS54_N0UTLX_201305202016 15000460b55fb0cf571078da41e905b3b1e667a2ce277ef00876ffc93a260032
nids/KOUN_SDUS54_N0VTLX_201305202016 50dfc22173261b75b43319a4358f9c2a0014543ad20652780cbafc6558cf54b5
nids/KOUN_SDUS54_NAQTLX_201305202016 0acf9552da57e0fe66856c18b47f3091d203e735306bbbff5dcc4271079b0e75
nids/KOUN_SDUS54_NAUTLX_201305202016 e14d7c037ce5dd01e9a8dd35d66538b0d87d7ab85a467b1cbd9dbf863194b715
nids/KOUN_SDUS54_NCRTLX_201305202016 104295bfe8e27440bf760fc3b7baf5a8a5453ec58a1f71185901e98e515ebc61
nids/KOUN_SDUS54_NTPTLX_201305202016 e898ded66a490d00cc96b9dbb158d9d1ab1af009c7b69ad2dac282629fe94113
nids/KOUN_SDUS54_NVLTLX_201305202012 54544de9b569639b7ae48e9550f7813e2d29036b85af6d867ed73b183f072195
nids/KOUN_SDUS64_N3PTLX_201305202012 55cf4db4d8b114a8c9f6a71f18ba0f3753bb7604b72e80942e2b49a4b0f79ecf
nids/KOUN_SDUS64_NC1TLX_201305202354 499ad24ba32cef78d4d255e954dfa650caa0ec07f70b0866608890067b493355
nids/KOUN_SDUS64_NC2TLX_201305202354 459e87c2a8e2c6e1a23b74f2fa3b8d0f4ac762f3459ad215edfa5fb4a51c4e7a
nids/KOUN_SDUS64_NC3TLX_201305202354 f62b7bcaad44de31b488c7b39a46bf87e5feb85e541d45f60877d51e46cbaff7
nids/KOUN_SDUS64_NC4TLX_201305202354 fc7c5e4cee7e816c86d5db790dbda090fa7bf8305537c574d042291e92e1502f
nids/KOUN_SDUS64_NC5TLX_201305202354 f7c28cc18243536f541fdce08bab98fa5fee438b09315fa429bd04282cd00e03
nids/KOUN_SDUS64_NCOTLX_201305201816 ed06e9faab55ca17417300bb1e18ac9e993ff787e848e54dae801202706bd0f1
nids/KOUN_SDUS64_NCZTLX_201305202016 4b6805f3de1b85cac5a2d53dc5d6efe07400a74f25966e52a67604bfbcc59be4
nids/KOUN_SDUS64_NHITLX_201305202016 a61a945ed55090e2ac9fe2d92c0c9edeab62927169099a2a9943000263d4accd
nids/KOUN_SDUS64_NHLTLX_201305202016 4a39c036cfb1ffa9ecaa43ad7891a3402521e46d35694a9d8f9586556454658e
nids/KOUN_SDUS64_NLATLX_201305202016 dfbc7963eb49f8b273e16200b82456854fd9ab0318d60302e9d3879ac67dc370
nids/KOUN_SDUS64_NLLTLX_201305202016 aa81d897d6684066267e60ca9debad88b4cad60582937049d938cd5ad8bb32a6
nids/KOUN_SDUS64_NMLTLX_201305202016 b4ffffa2ff300f90d7af77941814cff97779b86a08c7455dc90cfff57079e70c
nids/KOUN_SDUS64_NSPTLX_201305202016 d62d9478fb571ca2800f7e533a2467af33608be3c1969a8ca7444d8383ece9fe
nids/KOUN_SDUS64_NSSTLX_201305202016 c9281d0c0e5f445c4fb9b4fb69da74ff8901fb977f16d6e17e8d71c6024d449c
nids/KOUN_SDUS64_NSWTLX_201305202016 d294d3eeba794361f9efcb8659a4db83722ce34e96575d640435a29676df24cc
nids/KOUN_SDUS64_NTVTLX_201305202016 c173af3dc03600fc1c9c1fc793e5a5b891a4d6f1f9cb27aeef84608cedb164e4
nids/KOUN_SDUS64_SPDTLX_201305202016 0ccec9a9ec29f2ad6d64c623392fcd82c16bff64aebdeccc99b6c7059898b18f
nids/KOUN_SDUS74_EETTLX_201305202016 7fbde8aca50c242631eaf128270b8c2e00e861cc0096bd676c6f437d6cb5fb27
nids/KOUN_SDUS74_N0ZTLX_201305202016 110d50d6fa155efb5ade3b3e960bddac55c959aea0bdb4a7953e861f2d3339e7
nids/KOUN_SDUS74_NETTLX_201305202016 df223be7ff44ed61ae1c5caed2432d1b09440f79c4c18a94d8e2a8e96f3b4e80
nids/KOUN_SDUS84_DAATLX_201305202016 5e035d3978acd2e70f3dda427cb43cd56ab861f23898e24958b106fc75445fb5
nids/KOUN_SDUS84_DODTLX_201305202016 f4ff0249516cd53ec7de6d66f703a76638e00f70d96a1f5a3792adb2bd29d148
nids/KOUN_SDUS84_DPRTLX_201305202016 99b246b13712133beea70c752d2ab5094549b3784b178167681e907a72205fdf
nids/KOUN_SDUS84_DSDTLX_201305202016 a3ba9672b172eb1d6aabf3f4895ad4d86e7bbe170831c6fb9528b9923aa8f45e
nids/KOUN_SDUS84_DTATLX_201305202016 f3c0a60d27eae7a844f0bff0ce159df79e67065b87605fad2a38740f0ef23113
nids/KOUN_SDUS84_DU3TLX_201305202008 c8c8ca3fbb5e79455e1ccad1a73d0d6e4eb78d31e4ff0e17fe753b6c7ea6bdfc
nids/KOUN_SDUS84_HHCTLX_201305202016 5d2a9b5db2f0c696f2bf42c88fdd45a7dadcde9d96eadd5e41bd21f96244775a
nids/KOUN_SDUS84_N0CTLX_201305202016 b809f834bd3bc72a638864f1a6f05214a20bba2078681e2f76d949ba27848e36
nids/KOUN_SDUS84_N0HTLX_201305202016 c72fad4f2bbe6f454c3dc45572a71b094def44522694fa06f3dab1189124d44d
nids/KOUN_SDUS84_N0KTLX_201305202016 51e2a1153f4e092bae478bda2f9ae5f83e0ba54766d91a6ef61eb95bafe8d992
nids/KOUN_SDUS84_N0MTLX_201305202016 8b2460045d5548092fd5d9a2a81e5d1816961bc79a5c50af6eb77ee88e3e7877
nids/KOUN_SDUS84_N0XTLX_201305202016 a084b17a01eb3150e53698be3e585d6cf9866455ad2bf39994f22de80ed1a605
nids/KOUN_SDUS84_N1CTLX_201305202016 a3d651132db07ea2ae1840aee2c266bd54ef310ddb9bdd7ec00899199613bd06
nids/KOUN_SDUS84_N1HTLX_201305202016 b891f43f602c099c2db65678ac208fbde2263aad29a82cf49650fa35ea87e363
nids/KOUN_SDUS84_N1KTLX_201305202016 4f47d7cab68307488e7c241fe5fa7070a9e5662a395bd6a21dd18476271a334e
nids/KOUN_SDUS84_N1MTLX_201305202016 9f8b8851f0e7a491e51bf857af5feb21719dc79a96bf73a8315d73bcc887e47f
nids/KOUN_SDUS84_N1XTLX_201305202016 1816ef125a76d91a00cafeb8d171eea1e24bc232ecae27ac78b7e3f080752417
nids/KOUN_SDUS84_N2CTLX_201305202016 589f2e689355856841e51dc1cb1b5c8ecfb90aed068240d7a53a04f3551c912c
nids/KOUN_SDUS84_N2HTLX_201305202016 f47b95791fd1f6ce0574043a2559e9317c8cf9c1e02a0f5e21ab8c019dcbdd58
nids/KOUN_SDUS84_N2KTLX_201305202016 65d875e0331d352af4c068321c686ad600cb99caf2b46e3e8215314f0c0fa013
nids/KOUN_SDUS84_N2MTLX_201305202016 62d42b466a4a2d18c9d78815b6b05ba31136cc1fe49e117f50303b99f2b686b4
nids/KOUN_SDUS84_N2XTLX_201305202016 3f24b2503c2793745dd3bf8e2685084b967cba80801d907f258d8dec4b597fa0
nids/KOUN_SDUS84_N3CTLX_201305202016 d6f5f599e94b8bbfab75c79d211ae97ad08e9dcb29f907bc82c08f929be75216
nids/KOUN_SDUS84_N3HTLX_201305202016 e1b8d6f585c0f0dd5a5c77ba8c39da4d4c2b82c120536bf7c25ddfdbc2f83240
nids/KOUN_SDUS84_N3KTLX_201305202016 7c676e395fb00084a9a4f9428a34ef6b95386e9cb1629ba98a623e5d0aea2a4d
nids/KOUN_SDUS84_N3MTLX_201305202016 a116ee12cc0f31f268e7008b1b80dea43087b362f1de030f99156d56580bfc5a
nids/KOUN_SDUS84_N3XTLX_201305202016 312f3d41e5f3fc3c659376c30388554081daf381cafd49c7cf366351eb2cc913
nids/KOUN_SDUS84_NACTLX_201305202016 346757931bc940b0b7414b475deea0932fb8ad53efe35420afc149abc87832e5
nids/KOUN_SDUS84_NAHTLX_201305202016 6efe83c1b1279475229b49420f1e56dcc6f96b24a7324a076e817b3b6618b444
nids/KOUN_SDUS84_NAKTLX_201305202016 b11f8929220671b5f15b73250fff6dcc11a47c1a466979ea0116451b559a84f5
nids/KOUN_SDUS84_NAMTLX_201305202016 173e1d6a0886d3e37a2290318052bca20c4e290a1b7aa0cba407a4e075fb5e74
nids/KOUN_SDUS84_NAXTLX_201305202016 d0491ced0c0b000d82212eec07a66579eb48968a66c5cad7c23cde7f2f333764
nids/KOUN_SDUS84_NBCTLX_201305202016 5a832218d41016462092afb821afa9e8b770c5a4c83363e7cddc3d3b2639b297
nids/KOUN_SDUS84_NBHTLX_201305202016 4ae4769b52d72034a083a17e109226a5313f7f404c47aea008cb3ec3f39ed84e
nids/KOUN_SDUS84_NBKTLX_201305202016 2ee283755ca2e9ecb0e81de89c4c5b3d904edbc50c71d99a1e90241d0620837e
nids/KOUN_SDUS84_NBMTLX_201305202016 f4f52f17d55ddc088da733e17b96bb5312939c68618f1cfffec6994ef40f94b3
nids/KOUN_SDUS84_NBXTLX_201305202016 bdf8097d664f63c6c230c7b3bb614639bc05155a5b867f6c15e934f3c8dadd2e
nids/KOUN_SDUS84_OHATLX_201305202016 66b15c84cb269f773926b02528a317e0f7d187463f70cc5e7ae2e67cc4c99dd7
nids/Level3_FFC_N0Q_20140407_1805.nids 2136983638939449c20bf43cb5bb5d007a20d15cb258a72f011a9188609dc775
nids/Level3_MCI_DHR_20160526_2154.nids 5b13169c46a288427d47f8810b94f426aff7b7eec4fb9fbcbec626619d17d414
nids/Level3_MCI_DPA_20160526_2154.nids 7840a4e469c4538763122991bf203734bf3ce8f757b211a4e4739dddf12ecb3c
nids/Level3_MCI_DSP_20160526_2154.nids bedc6764be3156bda510162e72059ae9ff214029bbcd7a654062afd36be66bdf
nids/Level3_MCI_N1P_20160526_2154.nids 6c1f332d85ead72cd9833b18ece6f44780f05bd8130cfe4511f55fcf0773e49f
nids/Level3_MCI_NCR_20160526_2154.nids 9e1678e9ecd446d272476ddd63edd09746b0e143812b8dfeb4723fbd65dbdc71
nids/Level3_MCI_NET_20160526_2154.nids 12809036606b0af57ad98a0da0c427ef8a8958df87bc0991a723ee2118f205f0
nids/Level3_MCI_NMD_20160526_2154.nids 04ecffde253fb24fea0e7305f5c41cc52613774e60dd0d34a96903cacd3f3a39
nids/Level3_MCI_NST_20160526_2154.nids c1c00e3a19c4a086e85367e9d5a0df32f24e11e077d71d352448fb34dfe6de76
nids/Level3_MCI_NTP_20160526_2154.nids d8d3da8b2ebf219e8200e1aa8cb761990ba00e8fd7310d9269724b5586d4a002
nids/Level3_MCI_NVL_20160526_2154.nids ec125b431c0ac434b085958eb5d1f2c1beff2a32e1c86c0c224cef1161dbd4ea
nids/Level3_MCI_NVW_20160526_2154.nids 86dc39fe8256e1c7631988cb81d6e414c1cfdecffac6067aa13de6dd2e829588
nids/Level3_MCI_TR0_20160526_2154.nids 29498932592dd82dba10100a8cb76ce7145503afd6c26ce266c41c70f561cb88
nids/Level3_MCI_TR1_20160526_2154.nids 0e8c8fa9aa297565d7436a48b18a56c1ee07a12bad38e3dcb07f9e1ff9cfa6e0
nids/Level3_MCI_TR2_20160526_2154.nids a1faea84828e15d30a322aae59d57b5ff9f25709496ec654d9f893856aee6d65
nids/Level3_MCI_TV0_20160526_2154.nids 65eee8eb19c215d173721c45835bf291195fdb83ddc833bd666acc41a25335b1
nids/Level3_MCI_TV1_20160526_2154.nids 24898fc178d46faba60da2820c63e62297e581170ff9cfa3935c3304ae8f6348
nids/Level3_MCI_TV2_20160526_2154.nids 58f03a6707624cf3d6c08e88cf6a0303bf1fc55da794d0ab0d7907152eb167ba
nids/Level3_MCI_TZL_20160526_2154.nids 7f4676864c698e4c1d8ce6f5eb2de93f196285f52cb7ab184e6c800208582508
nids/Level3_SLC_TV0_20160516_2359.nids 3083ed0c3b19ef22e4fe0becff961065239ed919ebffb81505ace2511fbd13c8
nids/sn.last e086870fe5b4c441f613e62004ffe9b96c56819b1eefbcb05dc98b63f4aa4163
nn_bbox0to100.npz 36fbc982f7a42519172c2310afa5f7c312309f34f10d6a5e99030ad35ce7af13
nov11_sounding.txt 6fa3e0920314a7d55d6e1020eb934e18d9623c5fb1a40aaad546a25ed225e215
rbf_test.npz f035f4415ea9bf04dcaf8affd7748f6519638655dcce90dad2b54fe0032bf32d
station_data.txt 3c1b71abb95ef8fe4adf57e47e2ce67f3529c6fe025b546dd40c862999fc5ffe
timeseries.csv 2d79f8f21ad1fcec12d0e24750d0958631e92c9148adfbd1b7dc8defe8c56fc5
us_counties_20m.shp 8acb8bfbcf670028f7ce6c1c11ae08b21844b1c882c26ef397df33231831dee9
us_counties_500k.shp 06463cf329d6f412d7f3323748225aca1ca495a8c04af58cfaf169fc3a8c8df4
us_counties_5m.shp be255ca37625e5feef7808ef996e803c6412ee67e52c29ee0b603b569eba083c
wrf_example.nc dcc1444db327507730334fd94dcb223025f77791448dd394f3ba06391ddbf98f
4 changes: 2 additions & 2 deletions metpy/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ def get_upper_air_data(date, station):
dict : upper air data
"""
soudning_key = '{0:%Y-%m-%dT%HZ}_{1:}'.format(date, station)
sounding_key = '{0:%Y-%m-%dT%HZ}_{1:}'.format(date, station)
sounding_files = {'2016-05-22T00Z_DDC': 'may22_sounding.txt',
'2013-01-20T12Z_OUN': 'jan20_sounding.txt',
'1999-05-04T00Z_OUN': 'may4_sounding.txt',
'2002-11-11T00Z_BNA': 'nov11_sounding.txt',
'2010-12-09T12Z_BOI': 'dec9_sounding.txt'}

fname = sounding_files[soudning_key]
fname = sounding_files[sounding_key]
fobj = get_test_data(fname)

def to_float(s):
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@
package_data={'metpy.plots': ['colortable_files/*.tbl', 'nexrad_tables/*.tbl',
'fonts/*.ttf', '_static/metpy_75x75.png',
'_static/metpy_150x150.png', '_static/unidata_75x75.png',
'_static/unidata_150x150.png']},
'_static/unidata_150x150.png'],
'metpy': ['static-data-manifest.txt']},

python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
install_requires=['matplotlib>=1.4', 'numpy>=1.11.0', 'scipy>=0.14',
'pint>=0.8', 'xarray>=0.10.7', 'enum34;python_version<"3.4"'],
'pint>=0.8', 'xarray>=0.10.7', 'enum34;python_version<"3.4"',
'pooch==0.1'],
extras_require={
'cdm': ['pyproj>=1.9.4'],
'dev': ['ipython[all]>=3.1'],
Expand Down

0 comments on commit b3fc756

Please sign in to comment.