/usr/share/pyshared/drslib/p_cmip5/__init__.py is in python-drslib 0.3.0a3-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # BSD Licence
# Copyright (c) 2011, Science & Technology Facilities Council (STFC)
# All rights reserved.
#
# See the LICENSE file in the source distribution of this software for
# the full license text.
"""
Code to identify the CMIP5 DRS "product" element based on other DRS elements and selection tables.
Author: Martin Juckes (martin.juckes@stfc.ac.uk)
New in this version:
1. cmip5_product.status no longer used
2. additional capability to scan previously published data
3. option to raise a ProductScopeexception instead of providing
"False" return when arguments are inconsistent with selection tables
4. cmip5_product.rc has a return code on exit -- each return code coming
from a unique line of code.
20101004 [0.8]: -- fixed bug which failed on all tables among the special cases.
-- fixed scan_atomic_dataset to scan only files matching
variable, table, and experiment. there is an option to
turn this of (and scan all files in a directory),
without which the legacy test suite will fail.
20101005 [0.9]: -- fixed code to deal with file time spans not aligned
with calendar years.
"""
from . import product
from . import init
# Exception raised by product detection failures
from .product import ProductScope, cmip5_product, version, version_date
|