def __init__(self, output_params, readonly=False):
self.pixelbuffer = output_params["<STR_LIT>"]<EOL>if "<STR_LIT:type>" in output_params:<EOL><INDENT>warnings.warn(DeprecationWarning("<STR_LIT>"))<EOL>if "<STR_LIT>" not in output_params:<EOL><INDENT>output_params["<STR_LIT>"] = output_params.pop("<STR_LIT:type>")<EOL><DEDENT><DEDENT>self.pyramid = TilePyramid(<EOL>grid=output_params["<STR_LIT>"],<EOL>metatiling=output_params["<STR_LIT>"]<EOL>)<EOL>self.crs = self.pyramid.crs<EOL>self._bucket = None<EOL>if not readonly:<EOL><INDENT>write_output_metadata(output_params)<EOL><DEDENT>
Initialize.