Magics++
========

Copyright 2007-2012 ECMWF

This product mainly includes software developed by the 

  Meteorological Visualisation Section

at the 

  "European Centre for Medium-Range Weather Forecasts" 
           (ECMWF - http://www.ecmwf.int ).

Below is a list of software packages which are used inside Magics++:


Terralib
========

This software contains code derived from the Terralib library developed by 
National Institute for Space Research (INPE, Brazil). More information about Terralib
can be found at http://www.terralib.org . The library is distributed under 
the LGPL but special permission was granted to allow ECMWF the distribution 
of the code within Magics++.

ECMWF has a close co-operation with INPE regarding the development of 
visualisation software.


CalcStreamlines
===============

/*
  CalcStreamlines is a function for calculating streamlines for wind field

  Copyright (C) 2010 Hungarian Meteorological Service

  Author: Mark Rajnai (rajnai.m@met.hu)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/


shapelib
========
http://shapelib.maptools.org/license.html

Copyright (c) 1999, Frank Warmerdam

This software is available under the following "MIT Style" license, or at the option 
of the licensee under the LGPL (see LICENSE.LGPL). This option is discussed in more 
detail in shapelib.html.

Permission is hereby granted, free of charge, to any person obtaining a copy of this 
software and associated documentation files (the "Software"), to deal in the Software 
without restriction, including without limitation the rights to 
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
of the Software, and to permit persons to whom the Software is furnished to do so, 
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies 
or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 
USE OR OTHER DEALINGS IN THE SOFTWARE.


MINIZIP
=======

   http://www.winimage.com/zLibDll/minizip.html


/* zip.h -- IO for compress .zip files using zlib
   Version 1.01e, February 12th, 2005

   Copyright (C) 1998-2005 Gilles Vollant

   This unzip package allow creates .ZIP file, compatible with PKZip 2.04g
     WinZip, InfoZip tools and compatible.
   Multi volume ZipFile (span) are not supported.
   Encryption compatible with pkzip 2.04g only supported
   Old compressions used by old PKZip 1.x are not supported

  For uncompress .zip file, look at unzip.h

   I WAIT FEEDBACK at mail info@winimage.com
   Visit also http://www.winimage.com/zLibDll/unzip.html for evolution

   Condition of use and distribution are the same than zlib :

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

*/


JSON_SPIRIT_READER
==================

/* Copyright (c) 2007-2009 John W Wilkinson

   json spirit version 4.00

   This source code can be used for any purpose as long as
   this comment is retained. */


NATURAL EARTH
=============
http://www.naturalearthdata.com/

Natural Earth is a public domain map dataset available at 
1:10m, 1:50m, and 1:110 million scales. 
Featuring tightly integrated vector and raster data, with Natural Earth 
you can make a variety of visually pleasing, 
well-crafted maps with cartography or GIS software.

Natural Earth was built through a collaboration of many volunteers  
and is supported by NACIS  (North American Cartographic Information Society), 
and is free for use in any type of project (see Terms of Use  page for more information).
http://www.naturalearthdata.com/about/terms-of-use/


Boost Software License - Version 1.0 - August 17th, 2003
========================================================

Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:

The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.



EUMETSAT Image Navigation Code
==============================

http://www.eumetsat.int/website/home/Data/DataDelivery/SupportSoftwareandTools/index.html

(c)(2014) EUMETSAT

Freeware -  freely available software, which doesn't require a signed licence
or the formal acceptance of licensing conditions.

The navigation software incorporates source code written in Fortran 90 and C-Code,
for the conversion of image coordinates (pixel column and row) into the corresponding
geographical coordinates (Latitude and Longitude) of all MSG Satellites
(Meteosat-8, Meteosat-9 and Meteosat-10) Level 1.5 VIS/IR data. The theoretical
basis for the software is the CGMS (Coordination Group for Meteorological Satellites)
LRIT/HRIT Global Specifications (PDF, 260 KB) . Additional information about how to
use the software is given as comments in the source code.

* COPYRIGHT AND LICENCE INFORMATION
* 
* Freeware Licence Disclaimer
* 
* The user acknowledges and shall at all times respect EUMETSAT's
* intellectual property rights in the software. EUMETSAT shall at all
* times retain such intellectual property rights in the software and in
* all copies thereof regardless of form.
* 
* The user may freely use, copy, modify and/or distribute the software.
* The user agrees when using the software in any recognisable form to
* name EUMETSAT as the source by including "(c)(year)
* EUMETSAT". Furthermore, In any distributed version of the software,
* including modifications or derivatives, the present licence text shall
* be included.  The user of the software may provide feedback, report
* problems and suggest enhancements to the software to EUMETSAT. In
* addition, the user shall grant to EUMETSAT unrestricted use of this
* information.
* 
* Neither EUMETSAT nor its Member States are liable for the usefulness
* or proper functioning of software, nor do they accept any liability
* for any consequences, whether direct or indirect, of any use of
* software or for any results related to the use of software or for any
* right or claims by third parties related to all or any part of
* software or its use. Where the source code is made available to users
* this is done without any warranty, and EUMETSAT will not provide any
* support for its use and customisation."
*

Note that we (ECMWF) have made some small modifications to the code in order to allow
it to be used also for non-MSG satellite images.

--------------------------------------------------------------

libimagequant
=============

The quantization and dithering code in pngquant is lifted from Jef Poskanzer's
'ppmquant', part of his wonderful PBMPLUS tool suite.

Greg Roelofs hacked it into a (in his words) "slightly cheesy" 'pamquant' back
in 1997 (see http://pobox.com/~newt/greg_rgba.html) and finally he ripped out
the cheesy file-I/O parts and replaced them with nice PNG code in December
2000. The PNG reading and writing code is a merged and slightly simplified
version of readpng, readpng2, and writepng from his book "PNG: The Definitive
Guide."
In 2014 Greg has relicensed the code under the simplified BSD license.

Note that both licenses are basically BSD-like; that is, use the code however
you like, as long as you acknowledge its origins.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

pngquant.c:

   © 1989, 1991 by Jef Poskanzer.

   Permission to use, copy, modify, and distribute this software and its
   documentation for any purpose and without fee is hereby granted, provided
   that the above copyright notice appear in all copies and that both that
   copyright notice and this permission notice appear in supporting
   documentation.  This software is provided "as is" without express or
   implied warranty.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

pngquant.c and rwpng.c/h:

   © 1997-2002 by Greg Roelofs; based on an idea by Stefan Schneider.
   © 2009-2014 by Kornel Lesiński.

   All rights reserved.

   Redistribution and use in source and binary forms, with or without modification,
   are permitted provided that the following conditions are met:

   1. Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.

   2. Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
   FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
   CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

