parent
31b26a60f2
commit
2fe0d000a5
1 changed files with 19 additions and 0 deletions
19
glymur/data/__init__.py
Normal file
19
glymur/data/__init__.py
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue