From 2fe0d000a531e03d4e0b5d0be0a6f380befb3cac Mon Sep 17 00:00:00 2001 From: jevans Date: Mon, 17 Jun 2013 20:35:20 -0400 Subject: [PATCH] File should have been added as a part of fdf73da to close #20 --- glymur/data/__init__.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 glymur/data/__init__.py diff --git a/glymur/data/__init__.py b/glymur/data/__init__.py new file mode 100644 index 0000000..ff39c0e --- /dev/null +++ b/glymur/data/__init__.py @@ -0,0 +1,19 @@ +"""Shipping JPEG 2000 files. + +There is only one JP2 file at the moment, "nemo.jp2", converted from the +original JPEG photo of the aftermath of NEMO, the nor'easter that shutdown +Boston in February of 2013. +""" +import pkg_resources + + +def nemo(): + """Shortcut for specifying path to nemo.jp2. + + Returns + ------- + file : str + Platform-independent path to nemo.jp2. + """ + file = pkg_resources.resource_filename(__name__, "nemo.jp2") + return file