Skip to content

Commit

Permalink
Add simple license header to all of our source. (Fixes Unidata#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Nov 23, 2015
1 parent 86a5122 commit 98e24c1
Show file tree
Hide file tree
Showing 30 changed files with 117 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2008-2014, MetPy Developers.
Copyright (c) 2008-2015, MetPy Developers.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 4 additions & 0 deletions metpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

# What do we want to pull into the top-level namespace?

from ._version import get_versions
Expand Down
4 changes: 4 additions & 0 deletions metpy/calc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from .basic import * # noqa
from .kinematics import * # noqa
from .thermo import * # noqa
Expand Down
4 changes: 4 additions & 0 deletions metpy/calc/basic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import division
import numpy as np
from numpy.ma import masked_array
Expand Down
4 changes: 4 additions & 0 deletions metpy/calc/kinematics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import division
import numpy as np
from ..package_tools import Exporter
Expand Down
4 changes: 4 additions & 0 deletions metpy/calc/tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
from numpy.testing import assert_array_equal

Expand Down
4 changes: 4 additions & 0 deletions metpy/calc/tests/test_kinematics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from metpy.testing import assert_array_equal
import numpy as np
from metpy.calc.kinematics import * # noqa
Expand Down
4 changes: 4 additions & 0 deletions metpy/calc/tests/test_thermo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
from metpy.calc.thermo import * # noqa
from metpy.units import units
Expand Down
4 changes: 4 additions & 0 deletions metpy/calc/tests/test_turbulence.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
from numpy.testing import assert_array_equal, assert_almost_equal
from metpy.calc.turbulence import * # noqa
Expand Down
4 changes: 4 additions & 0 deletions metpy/calc/thermo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import division
import numpy as np
import scipy.integrate as si
Expand Down
4 changes: 4 additions & 0 deletions metpy/calc/turbulence.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
from ..package_tools import Exporter

Expand Down
5 changes: 5 additions & 0 deletions metpy/cbook.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
'''Collection of generally useful utility code from the cookbook'''

# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import os
import os.path
from matplotlib.cbook import iterable, is_string_like, Bunch
Expand Down
4 changes: 4 additions & 0 deletions metpy/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
======================== ======= ======== =====================================
'''

# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from .units import units
from .package_tools import Exporter

Expand Down
4 changes: 4 additions & 0 deletions metpy/io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from .nexrad import * # noqa
__all__ = []
__all__.extend(nexrad.__all__) # pylint: disable=undefined-variable
4 changes: 4 additions & 0 deletions metpy/io/nexrad.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import print_function
import bz2
import datetime
Expand Down
3 changes: 3 additions & 0 deletions metpy/io/nexrad_msgs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
4 changes: 4 additions & 0 deletions metpy/io/nexrad_msgs/msg18.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

# flake8: noqa
# Generated file -- do not modify
descriptions = {"ADAP_FILE_NAME": "NAME OF ADAPTATION DATA FILE",
Expand Down
4 changes: 4 additions & 0 deletions metpy/io/nexrad_msgs/msg3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

# flake8: noqa
# Generated file -- do not modify
descriptions = {"T1_Output_Frames": "The number of octets received on interface, including frame octets (octet)",
Expand Down
3 changes: 3 additions & 0 deletions metpy/io/nexrad_msgs/parse_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ def field_fmt(item):
def write_file(fname, info):
with open(fname, 'w') as outfile:
# File header
outfile.write('# Copyright (c) 2008-2015 MetPy Developers.\n')
outfile.write('# Distributed under the terms of the BSD 3-Clause License.\n')
outfile.write('# SPDX-License-Identifier: BSD-3-Clause\n\n')
outfile.write('# flake8: noqa\n')
outfile.write('# Generated file -- do not modify\n')

Expand Down
4 changes: 4 additions & 0 deletions metpy/io/tests/test_nexrad.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import glob
import logging
import os.path
Expand Down
5 changes: 5 additions & 0 deletions metpy/io/tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
'A collection of general purpose tools for reading files'

# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import print_function
import logging
from collections import namedtuple
Expand Down
4 changes: 4 additions & 0 deletions metpy/package_tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
'Collection of tools for managing the package'

# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

# Used to specify functions that should be exported--i.e. added to __all__
# Inspired by David Beazley and taken from python-ideas:
# https://mail.python.org/pipermail/python-ideas/2014-May/027824.html
Expand Down
4 changes: 4 additions & 0 deletions metpy/plots/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from .skewt import * # noqa
__all__ = []
__all__.extend(skewt.__all__) # pylint: disable=undefined-variable
4 changes: 4 additions & 0 deletions metpy/plots/ctables.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import ast
import glob
import os.path
Expand Down
4 changes: 4 additions & 0 deletions metpy/plots/skewt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
import matplotlib.transforms as transforms
import matplotlib.axis as maxis
Expand Down
4 changes: 4 additions & 0 deletions metpy/plots/tests/test_ctables.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import os.path
import tempfile
try:
Expand Down
4 changes: 4 additions & 0 deletions metpy/plots/tests/test_skewt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import tempfile
import numpy as np
from matplotlib.figure import Figure
Expand Down
4 changes: 4 additions & 0 deletions metpy/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Currently, this consists of unit-aware test functions
'''

# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import numpy.testing
from pint import DimensionalityError
from .units import units
Expand Down
4 changes: 4 additions & 0 deletions metpy/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
import this registry and use it to grab units.
'''

# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import division
import pint
import numpy as np
Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import print_function
from setuptools import setup, find_packages, Command
import versioneer
Expand Down

0 comments on commit 98e24c1

Please sign in to comment.