| 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 = 384.; |
| 12 |
magics_left = 60.; |
| 13 |
magics_outside = function (x, y) { |
| 14 |
if (smaller(x, 49.9109) ) |
| 15 |
return true; |
| 16 |
if (greater(x, 615.567) ) |
| 17 |
return true; |
| 18 |
if (smaller(y, 96.05) ) |
| 19 |
return true; |
| 20 |
if (greater(y, 480.25) ) |
| 21 |
return true; |
| 22 |
return false; |
| 23 |
} |
| 24 |
; |
| 25 |
magics_reprojection = function (x, y) |
| 26 |
{ |
| 27 |
return { |
| 28 |
lon: (x - 49.9109 ) * ( 125 / 565.657 ) + (-140), |
| 29 |
lat: ( 96.05 - y) * ( 85 / 384.2) + (80) |
| 30 |
} |
| 31 |
} |
| 32 |
; |
| 33 |
magics_top = 96.; |
| 34 |
magics_version = "2.6.0"; |
| 35 |
magics_width = 565.; |