| 1 |
/* |
| 2 |
* (C) Copyright 1996-2016 ECMWF. |
| 3 |
* |
| 4 |
* This software is licensed under the terms of the Apache Licence Version 2.0 |
| 5 |
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
| 6 |
* In applying this licence, ECMWF does not waive the privileges and immunities |
| 7 |
* granted to it by virtue of its status as an intergovernmental organisation nor |
| 8 |
* does it submit to any jurisdiction. |
| 9 |
*/ |
| 10 |
|
| 11 |
magics_height = 340.; |
| 12 |
magics_left = 60; |
| 13 |
magics_outside = function (x, y) { |
| 14 |
if (smaller(x, 60) ) |
| 15 |
return true; |
| 16 |
if (greater(x, 740) ) |
| 17 |
return true; |
| 18 |
if (smaller(y, 113.202) ) |
| 19 |
return true; |
| 20 |
if (greater(y, 452.807) ) |
| 21 |
return true; |
| 22 |
return false; |
| 23 |
} |
| 24 |
; |
| 25 |
magics_reprojection = function (x, y) |
| 26 |
{ |
| 27 |
return { |
| 28 |
lon: (x - 60 ) * ( 360 / 680 ) + (-180), |
| 29 |
lat: ( 113.202 - y) * ( 180 / 339.605) + (90) |
| 30 |
} |
| 31 |
} |
| 32 |
; |
| 33 |
magics_top = 140.; |
| 34 |
magics_version = "2.6.0"; |
| 35 |
magics_width = 680; |