# Path: ciao_contrib/logger_wrapper.py
# def initialize_module_logger(name):
#     """Create a logger for the module with an id of name.
# 
#     Returns the logger. Unlike initialize_logger, no handler
#     is set up.
# 
#     """
# 
#     return get_module_logger(name)
# 
# Path: ciao_contrib/smooth.py
# def mk_gauss(sigma, hwidth):
# def mk_tophat(radius):
# def mk_boxcar(radius):
# def ismooth(image, kernel, origin=None, norm=True):
# def gsmooth(image, sigma, hwidth=5):
# def tsmooth(image, radius):
# def bsmooth(image, radius):
# def fsmooth(image, filename):


import os
import time
import collections
import numpy as np
import pycrates
from ciao_contrib.logger_wrapper import initialize_module_logger
from ciao_contrib import smooth as sm
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

"""Utility routines for Crates.
"""




__all__ = (
    "make_table_crate", "make_image_crate",
    "add_colvals",
    "write_columns", "write_arrays",
    "scale_image_crate",
    "smooth_image_crate",
    "SimpleCoordTransform",
    "read_ds9_contours",
)


# Path: ciao_contrib/logger_wrapper.py
# def initialize_module_logger(name):
#     """Create a logger for the module with an id of name.
# 
#     Returns the logger. Unlike initialize_logger, no handler
#     is set up.
# 
#     """
# 
#     return get_module_logger(name)
# 
# Path: ciao_contrib/smooth.py
# def mk_gauss(sigma, hwidth):
# def mk_tophat(radius):
# def mk_boxcar(radius):
# def ismooth(image, kernel, origin=None, norm=True):
# def gsmooth(image, sigma, hwidth=5):
# def tsmooth(image, radius):
# def bsmooth(image, radius):
# def fsmooth(image, filename):


# Path: crates_contrib/utils.py
import os
import time
import collections
import numpy as np
import pycrates
from ciao_contrib.logger_wrapper import initialize_module_logger
from ciao_contrib import smooth as sm

#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

"""Utility routines for Crates.
"""




__all__ = (
    "make_table_crate", "make_image_crate",
    "add_colvals",
    "write_columns", "write_arrays",
    "scale_image_crate",
    "smooth_image_crate",
    "SimpleCoordTransform",
    "read_ds9_contours",
)


logger = initialize_module_logger("crates_utils")