"Fossies" - the Fresh Open Source Software Archive

Member "fimex-1.4.1/test/testInterpolator_forward_ex.cc" (30 Oct 2019, 12842 Bytes) of package /linux/privat/fimex-1.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2   Fimex, test/testInterpolator_forward_ex.cc
    3 
    4   Copyright (C) 2019 met.no
    5 
    6   Contact information:
    7   Norwegian Meteorological Institute
    8   Box 43 Blindern
    9   0313 OSLO
   10   NORWAY
   11   email: diana@met.no
   12 
   13   Project Info:  https://wiki.met.no/fimex/start
   14 
   15   This library is free software; you can redistribute it and/or modify it
   16   under the terms of the GNU Lesser General Public License as published by
   17   the Free Software Foundation; either version 2.1 of the License, or
   18   (at your option) any later version.
   19 
   20   This library is distributed in the hope that it will be useful, but
   21   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   22   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
   23   License for more details.
   24 
   25   You should have received a copy of the GNU Lesser General Public
   26   License along with this library; if not, write to the Free Software
   27   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
   28   USA.
   29 */
   30 
   31 const unsigned short U = 0;
   32 const size_t interpolator_forward_N = 52 * 42;
   33 const float interpolator_forward_ex[interpolator_forward_N] = {
   34     94,  81,   86,  111,  74,  70,  76,  87,  93,   92,  112,  98,   108, 106, 84,  117, 123,  117, 99,  128, 169, 275, 319, 472, 548, 213, 167, 235,  214,
   35     156, 128,  123, 127,  102, 127, 139, 136, 150,  137, 139,  215,  400, 424, 448, 119, 106,  125, 115, 87,  146, 223, 247, 75,  74,  78,  101, 89,   96,
   36     99,  108,  90,  106,  100, 117, 113, 93,  108,  109, 101,  114,  126, 123, 157, 110, 152,  473, 403, 411, 151, 181, 167, 174, 150, 162, 107, 103,  123,
   37     118, 119,  120, 158,  122, 127, 149, 284, 273,  250, 170,  117,  195, 136, 114, 134, 179,  96,  96,  98,  120, 99,  106, 103, 98,  83,  126, 106,  119,
   38     111, 105,  124, 115,  104, 121, 145, 110, 136,  174, 140,  347,  488, 493, 169, 128, 138,  190, 201, 157, 154, 115, 145, 135, 131, 137, 196, 145,  132,
   39     120, 120,  185, 213,  266, 189, 290, 275, 158,  138, 183,  106,  84,  100, 109, 111, 117,  135, 93,  96,  131, 112, 122, 107, 112, 161, 125, 107,  91,
   40     149, 118,  158, 160,  115, 210, 394, 370, 285,  138, 159,  180,  161, 179, 188, 133, 117,  165, 134, 152, 132, 173, 118, 133, 133, 195, 283, 260,  210,
   41     260, 339,  258, 154,  229, 105, 95,  99,  123,  112, 93,   100,  119, 127, 154, 104, 105,  106, 100, 151, 131, 129, 119, 126, 95,  157, 139, 108,  135,
   42     238, 399,  334, 160,  173, 179, 165, 217, 191,  166, 164,  156,  134, 143, 150, 191, 152,  159, 139, 200, 248, 305, 193, 325, 382, 259, 231, 337,  88,
   43     97,  97,   100, 134,  111, 102, 114, 114, 119,  118, 116,  124,  149, 140, 132, 131, 137,  148, 116, 115, 118, 105, 134, 196, 308, 209, 195, 170,  249,
   44     156, 179,  177, 166,  169, 157, 142, 137, 195,  150, 150,  149,  87,  148, 173, 187, 201,  308, 335, 200, 416, 459, 97,  91,  84,  83,  103, 107,  95,
   45     124, 132,  129, 137,  118, 135, 108, 155, 148,  125, 142,  192,  188, 158, 151, 213, 247,  303, 301, 259, 185, 173, 205, 192, 241, 172, 179, 174,  166,
   46     143, 88,   71,  67,   79,  70,  75,  82,  92,   106, 212,  269,  268, 347, 904, 370, 90,   101, 71,  95,  101, 97,  121, 176, 103, 104, 127, 150,  131,
   47     116, 145,  138, 109,  133, 193, 206, 191, 143,  186, 281,  231,  186, 180, 192, 174, 144,  172, 185, 135, 140, 144, 136, 90,  82,  82,  79,  85,   84,
   48     81,  129,  137, 140,  270, 302, 251, 328, 1011, 333, 103,  102,  71,  102, 100, 100, 124,  163, 103, 116, 161, 172, 159, 149, 129, 156, 151, 176,  239,
   49     270, 203,  127, 163,  142, 134, 102, 96,  85,   117, 136,  150,  146, 96,  122, 80,  73,   86,  82,  95,  91,  119, 147, 253, 232, 228, 229, 321,  303,
   50     396, 526,  389, 166,  85,  85,  81,  81,  92,   116, 119,  149,  91,  118, 151, 152, 181,  127, 129, 163, 175, 152, 246, 343, 275, 243, 253, 172,  103,
   51     97,  72,   69,  77,   76,  93,  104, 70,  103,  87,  102,  94,   92,  115, 144, 224, 248,  334, 233, 300, 281, 358, 310, 605, 664, 195, 169, 78,   100,
   52     84,  81,   118, 108,  145, 190, 161, 133, 159,  145, 125,  113,  117, 118, 152, 183, 114,  161, 220, 279, 258, 211, 133, 98,  77,  76,  68,  76,   77,
   53     89,  92,   108, 98,   124, 116, 152, 182, 276,  260, 273,  249,  343, 321, 367, 392, 429,  522, 220, 166, 191, 85,  86,  96,  65,  124, 99,  227,  287,
   54     229, 161,  133, 118,  101, 115, 115, 101, 108,  144, 106,  108,  96,  123, 309, 282, 198,  85,  73,  76,  63,  75,  81,  100, 146, 206, 199, 225,  209,
   55     206, 274,  310, 255,  317, 306, 385, 343, 362,  572, 719,  168,  117, 130, 168, 97,  111,  103, 69,  101, 103, 105, 119, 168, 150, 127, 113, 105,  95,
   56     119, 100,  89,  123,  92,  90,  86,  86,  141,  285, 243,  142,  60,  66,  58,  78,  130,  204, 272, 259, 217, 204, 202, 223, 225, 303, 332, 389,  467,
   57     333, 330,  546, 506,  250, 134, 106, 121, 141,  88,  93,   93,   80,  107, 96,  109, 111,  145, 104, 118, 111, 110, 76,  106, 71,  85,  104, 90,   80,
   58     76,  86,   79,  197,  306, 243, 132, 88,  94,   154, 246,  263,  295, 299, 222, 268, 242,  239, 267, 386, 358, 421, 525, 332, 513, 388, 162, 119,  118,
   59     115, 122,  116, 87,   118, 81,  102, 103, 93,   116, 98,   86,   76,  104, 97,  108, 76,   88,  87,  83,  87,  88,  89,  102, 112, 91,  98,  291,  265,
   60     227, 186,  196, 225,  252, 267, 266, 293, 309,  265, 210,  262,  277, 424, 434, 421, 504,  635, 574, 153, 106, 82,  87,  125, 122, 96,  93,  100,  114,
   61     124, 81,   97,  86,   84,  76,  80,  93,  80,   78,  75,   85,   84,  93,  85,  85,  93,   88,  102, 76,  117, 221, 294, 186, 209, 214, 290, 318,  341,
   62     291, 259,  271, 243,  253, 333, 419, 351, 387,  506, 702,  596,  188, 83,  87,  88,  85,   93,  81,  97,  84,  69,  83,  125, 89,  81,  76,  87,   90,
   63     97,  91,   95,  84,   81,  66,  94,  100, 113,  85,  91,   84,   91,  61,  80,  201, 302,  294, 220, 279, 304, 248, 277, 291, 293, 291, 283, 282,  292,
   64     777, 427,  303, 555,  470, 532, 190, 130, 118,  103, 92,   70,   100, 117, 111, 78,  83,   109, 85,  98,  100, 92,  84,  81,  79,  92,  82,  95,   66,
   65     102, 94,   126, 89,   95,  102, 93,  85,  95,   233, 417,  249,  340, 317, 278, 334, 445,  274, 289, 271, 282, 271, 437, 570, 361, 457, 439, 515,  644,
   66     262, 97,   84,  68,   67,  71,  71,  70,  101,  81,  82,   108,  90,  93,  98,  86,  101,  96,  81,  78,  76,  90,  63,  106, 79,  101, 99,  106,  91,
   67     98,  106,  138, 284,  591, 308, 348, 281, 273,  389, 276,  164,  230, 264, 297, 222, 467,  427, 511, 556, 625, 245, 162, 128, 100, 72,  59,  61,   64,
   68     86,  116,  121, 86,   81,  94,  112, 82,  109,  85,  84,   85,   84,  84,  74,  87,  73,   110, 92,  98,  80,  100, 105, 115, 95,  112, 266, 525,  438,
   69     402, 357,  273, 257,  218, 229, 185, 257, 206,  401, 644,  257,  346, 823, 343, 148, 101,  89,  86,  62,  53,  60,  61,  115, 96,  117, 86,  105,  90,
   70     98,  75,   82,  85,   99,  77,  78,  95,  74,   96,  92,   88,   107, 95,  98,  106, 124,  111, 125, 125, 577, 558, 365, 283, 223, 181, 197, 191,  267,
   71     290, 286,  227, 516,  662, 389, 503, 436, 189,  146, 78,   81,   81,  69,  68,  68,  69,   110, 97,  92,  90,  74,  77,  93,  91,  93,  100, 94,   97,
   72     71,  99,   94,  112,  126, 129, 103, 110, 94,   115, 138,  128,  243, 449, 785, 470, 267,  198, 177, 140, 212, 195, 248, 237, 190, 470, 997, 595,  391,
   73     182, 159,  140, 139,  72,  86,  81,  115, 97,   72,  88,   100,  116, 81,  90,  77,  76,   118, 91,  102, 105, 85,  105, 78,  100, 101, 122, 100,  116,
   74     90,  76,   89,  115,  135, 129, 455, 801, 683,  282, 219,  196,  158, 177, 208, 178, 304,  326, 571, 727, 726, 244, 149, 126, 140, 252, 125, 89,   76,
   75     73,  67,   69,  94,   88,  103, 96,  84,  85,   73,  94,   94,   97,  101, 83,  98,  101,  80,  102, 100, 94,  97,  107, 99,  84,  86,  168, 166,  186,
   76     497, 733,  347, 248,  201, 195, 235, 211, 224,  196, 319,  519,  883, 898, 809, 143, 152,  149, 157, 229, 158, 174, 85,  73,  59,  93,  77,  68,   85,
   77     103, 75,   88,  66,   87,  85,  99,  97,  79,   95,  99,   88,   110, 97,  92,  102, 107,  96,  110, 119, 166, 244, 508, 684, 532, 207, 153, 185,  226,
   78     265, 313,  232, 200,  310, 344, 585, 856, 1535, 181, 130,  140,  109, 90,  85,  157, 182,  95,  63,  76,  77,  80,  74,  128, 66,  82,  71,  90,   98,
   79     82,  85,   90,  124,  112, 83,  124, 134, 112,  107, 121,  109,  131, 153, 353, 602, 1061, 702, 167, 115, 142, 189, 233, 308, 282, 283, 223, 275,  453,
   80     635, 1004, 814, 197,  145, 120, 110, 84,  71,   67,  85,   134,  75,  80,  180, 222, 143,  168, 92,  80,  81,  82,  101, 85,  87,  81,  100, 92,   94,
   81     109, 95,   107, 118,  118, 119, 124, 215, 431,  777, 990,  213,  142, 124, 207, 195, 313,  450, 334, 293, 349, 461, 620, 679, 629, 167, 131, 104,  86,
   82     94,  78,   71,  74,   61,  61,  58,  71,  73,   102, 225,  188,  90,  92,  87,  87,  79,   68,  85,  78,  90,  84,  108, 109, 97,  106, 107, 133,  108,
   83     213, 526,  495, 1003, 617, 176, 123, 128, 195,  205, 320,  405,  369, 335, 458, 350, 704,  835, 162, 95,  93,  119, 113, 82,  65,  66,  65,  64,   53,
   84     57,  64,   49,  64,   86,  95,  102, 111, 102,  82,  70,   83,   92,  75,  81,  106, 95,   112, 125, 107, 119, 128, 131, 366, 727, 564, 659, 252,  161,
   85     145, 208,  176, 182,  278, 384, 368, 370, 611,  457, 898,  1017, 155, 106, 105, 107, 124,  136, 94,  76,  61,  62,  46,  61,  48,  39,  56,  83,   97,
   86     81,  95,   97,  85,   78,  88,  86,  87,  93,   101, 105,  115,  127, 120, 115, 119, 278,  467, 837, 788, 429, 149, 143, 198, 263, 182, 217, 314,  372,
   87     392, 378,  644, 498,  693, 326, 198, 111, 108,  94,  158,  89,   72,  72,  53,  56,  45,   49,  45,  49,  69,  74,  79,  76,  98,  89,  76,  75,   89,
   88     78,  89,   76,  87,   105, 130, 114, 100, 118,  123, 144,  220,  486, 661, 538, 194, 175,  241, 237, 165, 140, 227, 372, 422, 438, 634, 331, 330,  148,
   89     147, 104,  138, 94,   102, 93,  88,  69,  60,   50,  47,   46,   66,  65,  63,  81,  85,   87,  124, 101, 86,  78,  78,  88,  100, 91,  81,  103,  120,
   90     93,  105,  108, 124,  102, 142, 340, 501, 603,  249, 205,  213,  202, 174, 160, 197, 337,  379, 664, 535, 221, 154, 113, 149, 168, 121, 83,  67,   69,
   91     72,  62,   64,  54,   48,  57,  66,  75,  83,   90,  81,   76,   87,  90,  91,  81,  70,   93,  111, 85,  80,  90,  121, 103, 108, 118, 127, 122,  120,
   92     165, 437,  529, 635,  608, 312, 197, 169, 172,  209, 304,  581,  544, 194, 144, 112, 107,  104, 108, 101, 62,  60,  63,  82,  72,  69,  66,  60,   67,
   93     85,  72,   98,  79,   81,  87,  105, 80,  79,   89,  78,   83,   84,  87,  101, 104, 99,   102, 117, 108, 98,  102, 116, 180, 198, 371, 706, 1088, 357,
   94     379, 189,  196, 245,  829, 480, 193, 199, 154,  109, 101,  105,  102, 85,  78,  69,  79,   87,  80,  91,  76,  64,  76,  63,  55,  78,  61,  63,   111,
   95     95,  86,   73,  73,   80,  85,  82,  85,  112,  122, 89,   95,   102, 99,  94,  97,  126,  150, 157, 339, 628, 586, 895, 597, 522, 357, 540, 593,  285,
   96     230, 195,  156, 130,  90,  78,  87,  85,  70,   69,  75,   67,   75,  87,  110, 94,  77,   63,  45,  54,  68,  78,  87,  94,  95,  91,  105, 89,   101,
   97     77,  79,   83,  95,   97,  120, 105, 105, 116,  95,  154,  137,  149, 389, 577, 589, 451,  359, 508, 829, 571, 171, 173, 217, 194, 108, 101, 103,  89,
   98     79,  69,   64,  72,   68,  76,  62,  82,  77,   105, 71,   62,   69,  48,  65,  U,   83,   76,  74,  80,  104, 85,  97,  84,  69,  113, 109, 93,   102,
   99     94,  111,  117, 82,   132, 124, 141, 246, 594,  369, 674,  674,  470, 744, 277, 175, 150,  131, 149, 101, 115, 80,  84,  107, 72,  78,  75,  79,   51,
  100     58,  61,   63,  80,   73,  74,  56,  73,  63,   U,   76,   69,   87,  78,  99,  74,  100,  84,  75,  116, 82,  98,  82,  94,  100, 112, 94,  131,  114,
  101     154, 169,  403, 380,  665, 652, 402, 350, 322,  193, 147,  121,  146, 90,  86,  81,  87,   89,  77,  82,  103, 97,  80,  71,  63,  60,  74,  85,   86,
  102     61,  63,   74,  U,    91,  70,  75,  84,  72,   75,  97,   99,   89,  101, 84,  86,  94,   88,  91,  91,  102, 102, 107, 155, 202, 364, 466, 860,  1098,
  103     626, 341,  615, 275,  264, 167, 140, 99,  92,   67,  68,   66,   66,  95,  130, 162, 113,  102, 87,  93,  126, 156, 126, 106, 73,  106, U,   87,   63,
  104     80,  80,   77,  87,   104, 118, 76,  75,  96,   76,  99,   86,   82,  79,  113, 120, 127,  175, 268, 355, 338, 631, 908, 547, 535, 770, 485, 556,  181,
  105     90,  71,   74,  69,   59,  60,  87,  144, 193,  177, 149,  134,  154, 160, 129, 96,  61,   65,  55,  57,  U,   75,  75,  93,  75,  75,  90,  93,   117,
  106     87,  93,   74,  91,   91,  95,  83,  98,  115,  95,  100,  154,  155, 166, 233, 659, 1774, 754, 516, 968, 722, 233, 131, 91,  76,  78,  70,  70,   83,
  107     139, 233,  287, 199,  157, 131, 108, 98,  124,  114, 132,  102,  93,  74,  U,   U,   U,    59,  78,  70,  80,  85,  109, 84,  79,  99,  108, 110,  92,
  108     80,  93,   101, 96,   106, 144, 123, 128, 158,  705, 1197, 685,  605, 753, 632, 153, 94,   98,  77,  77,  88,  76,  100, 171, 293, 279, 194, 171,  177,
  109     134, 106,  88,  73,   93,  157, 169, U,   U};