Debian Codegraph @

libharp/harp-aux-afgl86.c

raw symbols SCIP
1 /*
2 * Copyright (C) 2015-2026 S[&]T, The Netherlands.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * 3. Neither the name of the copyright holder nor the names of its
16 * contributors may be used to endorse or promote products derived from
17 * this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 */
31
32 #include "harp-internal.h"
33
34 #include <string.h>
35
36 enum latitude_band
37 {
38 tropic,
39 subarctic,
40 midlat
41 };
42
43 static const double altitude[] = {
44 0.0,
45 1000.0,
46 2000.0,
47 3000.0,
48 4000.0,
49 5000.0,
50 6000.0,
51 7000.0,
52 8000.0,
53 9000.0,
54 10000.0,
55 11000.0,
56 12000.0,
57 13000.0,
58 14000.0,
59 15000.0,
60 16000.0,
61 17000.0,
62 18000.0,
63 19000.0,
64 20000.0,
65 21000.0,
66 22000.0,
67 23000.0,
68 24000.0,
69 25000.0,
70 27500.0,
71 30000.0,
72 32500.0,
73 35000.0,
74 37500.0,
75 40000.0,
76 42500.0,
77 45000.0,
78 47500.0,
79 50000.0,
80 55000.0,
81 60000.0,
82 65000.0,
83 70000.0,
84 75000.0,
85 80000.0,
86 85000.0,
87 90000.0,
88 95000.0,
89 100000.0,
90 105000.0,
91 110000.0,
92 115000.0,
93 120000.0
94 };
95
96 static const double tropic_pressure[] = {
97 1013.00000,
98 904.00000,
99 805.00000,
100 715.00000,
101 633.00000,
102 559.00000,
103 492.00000,
104 432.00000,
105 378.00000,
106 329.00000,
107 286.00000,
108 247.00000,
109 213.00000,
110 182.00000,
111 156.00000,
112 132.00000,
113 111.00000,
114 93.70000,
115 78.90000,
116 66.60000,
117 56.50000,
118 48.00000,
119 40.90000,
120 35.00000,
121 30.00000,
122 25.70000,
123 17.63000,
124 12.20000,
125 8.52000,
126 6.00000,
127 4.26000,
128 3.05000,
129 2.20000,
130 1.59000,
131 1.16000,
132 0.85400,
133 0.45600,
134 0.23900,
135 0.12100,
136 0.05800,
137 0.02600,
138 0.01100,
139 0.00440,
140 0.00172,
141 0.00069,
142 0.00029,
143 0.00013,
144 0.00006,
145 0.00004,
146 0.00002
147 };
148
149 static const double tropic_temperature[] = {
150 299.700,
151 293.700,
152 287.700,
153 283.700,
154 277.000,
155 270.300,
156 263.600,
157 257.000,
158 250.300,
159 243.600,
160 237.000,
161 230.100,
162 223.600,
163 217.000,
164 210.300,
165 203.700,
166 197.000,
167 194.800,
168 198.800,
169 202.700,
170 206.700,
171 210.700,
172 214.600,
173 217.000,
174 219.200,
175 221.400,
176 227.000,
177 232.300,
178 237.700,
179 243.100,
180 248.500,
181 254.000,
182 259.400,
183 264.800,
184 269.600,
185 270.200,
186 263.400,
187 253.100,
188 236.000,
189 218.900,
190 201.800,
191 184.800,
192 177.100,
193 177.000,
194 184.300,
195 190.700,
196 212.000,
197 241.600,
198 299.700,
199 380.000
200 };
201
202 static const double tropic_air_number_density[] = {
203 2.448130E+19,
204 2.229340E+19,
205 2.026599E+19,
206 1.825402E+19,
207 1.655144E+19,
208 1.497882E+19,
209 1.351859E+19,
210 1.217482E+19,
211 1.093812E+19,
212 9.782062E+18,
213 8.740364E+18,
214 7.774853E+18,
215 6.899532E+18,
216 6.074680E+18,
217 5.372756E+18,
218 4.693478E+18,
219 4.081019E+18,
220 3.483874E+18,
221 2.874567E+18,
222 2.379755E+18,
223 1.979793E+18,
224 1.650017E+18,
225 1.380402E+18,
226 1.168208E+18,
227 9.912712E+17,
228 8.407510E+17,
229 5.625204E+17,
230 3.803842E+17,
231 2.596105E+17,
232 1.787632E+17,
233 1.241638E+17,
234 8.697170E+16,
235 6.142774E+16,
236 4.349016E+16,
237 3.116377E+16,
238 2.289203E+16,
239 1.253894E+16,
240 6.839393E+15,
241 3.713515E+15,
242 1.919084E+15,
243 9.331769E+14,
244 4.311244E+14,
245 1.799476E+14,
246 7.038287E+13,
247 2.703802E+13,
248 1.097638E+13,
249 4.441394E+12,
250 1.939631E+12,
251 8.700167E+11,
252 4.288552E+11
253 };
254
255 static const double tropic_ch4_number_density[] = {
256 4.161864e+13,
257 3.789917e+13,
258 3.445254e+13,
259 3.103215e+13,
260 2.813774e+13,
261 2.546425e+13,
262 2.298185e+13,
263 2.068523e+13,
264 1.856218e+13,
265 1.656120e+13,
266 1.472766e+13,
267 1.302301e+13,
268 1.146714e+13,
269 9.992953e+12,
270 8.736192e+12,
271 7.533108e+12,
272 6.456238e+12,
273 5.410512e+12,
274 4.372261e+12,
275 3.522074e+12,
276 2.819254e+12,
277 2.235797e+12,
278 1.755889e+12,
279 1.391350e+12,
280 1.108253e+12,
281 8.870013e+11,
282 5.552133e+11,
283 3.475226e+11,
284 2.154789e+11,
285 1.333587e+11,
286 8.217245e+10,
287 4.903515e+10,
288 2.834305e+10,
289 1.579144e+10,
290 8.641801e+09,
291 4.807376e+09,
292 2.070201e+09,
293 1.025920e+09,
294 5.570330e+08,
295 2.878656e+08,
296 1.399780e+08,
297 6.466931e+07,
298 2.699241e+07,
299 9.853704e+06,
300 3.514979e+06,
301 1.317179e+06,
302 4.885584e+05,
303 1.842669e+05,
304 5.220154e+04,
305 1.286579e+04
306 };
307
308 static const double tropic_co_number_density[] = {
309 3.672233e+12,
310 3.232576e+12,
311 2.835241e+12,
312 2.462493e+12,
313 2.171571e+12,
314 1.951760e+12,
315 1.741213e+12,
316 1.518215e+12,
317 1.296181e+12,
318 1.070169e+12,
319 8.707240e+11,
320 6.969449e+11,
321 5.391350e+11,
322 3.872041e+11,
323 2.699838e+11,
324 1.849718e+11,
325 1.252477e+11,
326 8.671452e+10,
327 5.651457e+10,
328 3.686279e+10,
329 2.635132e+10,
330 2.032842e+10,
331 1.700672e+10,
332 1.526863e+10,
333 1.387794e+10,
334 1.278795e+10,
335 9.686701e+09,
336 7.588742e+09,
337 5.882834e+09,
338 4.445886e+09,
339 3.399640e+09,
340 2.694411e+09,
341 2.156136e+09,
342 1.733970e+09,
343 1.396774e+09,
344 1.165674e+09,
345 7.504634e+08,
346 4.760267e+08,
347 3.412013e+08,
348 3.719224e+08,
349 5.307965e+08,
350 6.678185e+08,
351 6.926252e+08,
352 4.638279e+08,
353 2.822799e+08,
354 1.871491e+08,
355 1.097480e+08,
356 6.513349e+07,
357 3.608866e+07,
358 2.144298e+07
359 };
360
361 static const double tropic_co2_number_density[] = {
362 8.085000E+15,
363 7.362299E+15,
364 6.692400E+15,
365 6.029100E+15,
366 5.464800E+15,
367 4.946700E+15,
368 4.464900E+15,
369 4.019400E+15,
370 3.613500E+15,
371 3.230370E+15,
372 2.886510E+15,
373 2.567400E+15,
374 2.278320E+15,
375 2.006070E+15,
376 1.774410E+15,
377 1.550010E+15,
378 1.347720E+15,
379 1.150380E+15,
380 9.494100E+14,
381 7.857300E+14,
382 6.537300E+14,
383 5.448300E+14,
384 4.557300E+14,
385 3.857700E+14,
386 3.273600E+14,
387 2.776290E+14,
388 1.857570E+14,
389 1.256310E+14,
390 8.573400E+13,
391 5.903700E+13,
392 4.101900E+13,
393 2.871990E+13,
394 2.028510E+13,
395 1.436160E+13,
396 1.029270E+13,
397 7.560300E+12,
398 4.141500E+12,
399 2.258520E+12,
400 1.226280E+12,
401 6.336000E+11,
402 3.081540E+11,
403 1.414992E+11,
404 5.763200E+10,
405 2.183330E+10,
406 7.306201E+09,
407 2.141100E+09,
408 4.889500E+08,
409 1.164600E+08,
410 3.482400E+07,
411 1.478750E+07
412 };
413
414 static const double tropic_h2o_number_density[] = {
415 6.352850E+17,
416 4.348219E+17,
417 3.110952E+17,
418 1.571220E+17,
419 7.354296E+16,
420 5.015654E+16,
421 2.842653E+16,
422 1.570002E+16,
423 8.362515E+15,
424 4.011532E+15,
425 1.672426E+15,
426 5.684068E+14,
427 2.005612E+14,
428 6.018210E+13,
429 3.344494E+13,
430 1.878800E+13,
431 1.225200E+13,
432 1.010940E+13,
433 7.911750E+12,
434 6.190600E+12,
435 5.150600E+12,
436 4.375150E+12,
437 3.866800E+12,
438 3.390100E+12,
439 3.174400E+12,
440 2.734225E+12,
441 2.026440E+12,
442 1.522800E+12,
443 1.117140E+12,
444 8.229400E+11,
445 6.090700E+11,
446 4.525560E+11,
447 3.380850E+11,
448 2.480640E+11,
449 1.840210E+11,
450 1.374600E+11,
451 7.530000E+10,
452 4.106400E+10,
453 2.006640E+10,
454 8.640000E+09,
455 3.081540E+09,
456 9.059399E+08,
457 2.341300E+08,
458 5.986550E+07,
459 1.461240E+07,
460 4.392000E+06,
461 1.511300E+06,
462 5.434800E+05,
463 2.089440E+05,
464 8.450001E+04,
465 };
466
467 static const double tropic_n2o_number_density[] = {
468 7.834097e+12,
469 7.133961e+12,
470 6.485184e+12,
471 5.841346e+12,
472 5.296515e+12,
473 4.793271e+12,
474 4.325994e+12,
475 3.895981e+12,
476 3.500235e+12,
477 3.125401e+12,
478 2.778590e+12,
479 2.441329e+12,
480 2.135427e+12,
481 1.851582e+12,
482 1.611306e+12,
483 1.381774e+12,
484 1.174121e+12,
485 9.695721e+11,
486 7.678047e+11,
487 6.013703e+11,
488 4.682259e+11,
489 3.620175e+11,
490 2.831232e+11,
491 2.297888e+11,
492 1.858653e+11,
493 1.476374e+11,
494 8.932916e+10,
495 5.386295e+10,
496 3.024493e+10,
497 1.658046e+10,
498 8.310369e+09,
499 3.925073e+09,
500 1.689894e+09,
501 6.919355e+08,
502 2.922568e+08,
503 1.087841e+08,
504 3.761721e+07,
505 1.412349e+07,
506 5.596325e+06,
507 2.205050e+06,
508 8.296028e+05,
509 3.042045e+05,
510 1.028591e+05,
511 3.313660e+04,
512 1.063146e+04,
513 3.647487e+03,
514 1.260036e+03,
515 4.738568e+02,
516 1.844454e+02,
517 7.938192e+01
518 };
519
520 static const double tropic_no2_number_density[] = {
521 5.635000E+08,
522 5.131300E+08,
523 4.664400E+08,
524 4.202100E+08,
525 3.808800E+08,
526 3.447700E+08,
527 3.111900E+08,
528 2.801400E+08,
529 2.518500E+08,
530 2.271048E+08,
531 2.081786E+08,
532 2.038360E+08,
533 2.174760E+08,
534 2.705155E+08,
535 4.021996E+08,
536 8.031870E+08,
537 1.302796E+09,
538 1.809234E+09,
539 2.218167E+09,
540 2.523860E+09,
541 2.753590E+09,
542 2.905760E+09,
543 2.982960E+09,
544 3.016020E+09,
545 3.035520E+09,
546 3.146462E+09,
547 2.707549E+09,
548 2.345112E+09,
549 1.873158E+09,
550 1.302392E+09,
551 7.781180E+08,
552 3.507309E+08,
553 1.333899E+08,
554 5.004800E+07,
555 2.077254E+07,
556 1.014913E+07,
557 4.254450E+06,
558 1.950540E+06,
559 9.401481E+05,
560 4.435200E+05,
561 2.007670E+05,
562 8.714280E+04,
563 3.457920E+04,
564 1.288869E+04,
565 4.762560E+03,
566 1.866600E+03,
567 7.289800E+02,
568 3.086190E+02,
569 1.349430E+02,
570 6.379750E+01
571 };
572
573 static const double tropic_o2_number_density[] = {
574 5.120500E+18,
575 4.662790E+18,
576 4.238520E+18,
577 3.818430E+18,
578 3.461040E+18,
579 3.132910E+18,
580 2.827770E+18,
581 2.545620E+18,
582 2.288550E+18,
583 2.045901E+18,
584 1.828123E+18,
585 1.626020E+18,
586 1.442936E+18,
587 1.270511E+18,
588 1.123793E+18,
589 9.816730E+17,
590 8.535560E+17,
591 7.285740E+17,
592 6.012930E+17,
593 4.976290E+17,
594 4.140290E+17,
595 3.450590E+17,
596 2.886290E+17,
597 2.443210E+17,
598 2.073280E+17,
599 1.758317E+17,
600 1.176461E+17,
601 7.956630E+16,
602 5.429820E+16,
603 3.739010E+16,
604 2.597870E+16,
605 1.818927E+16,
606 1.284723E+16,
607 9.095680E+15,
608 6.518710E+15,
609 4.788190E+15,
610 2.622950E+15,
611 1.430396E+15,
612 7.766440E+14,
613 4.012800E+14,
614 1.951642E+14,
615 9.016260E+13,
616 3.602000E+13,
617 1.338170E+13,
618 4.870800E+12,
619 1.756800E+12,
620 6.223000E+11,
621 2.329200E+11,
622 8.183640E+10,
623 3.063125E+10
624 };
625
626 static const double tropic_o3_number_density[] = {
627 7.029050E+11,
628 7.027649E+11,
629 6.777576E+11,
630 6.401807E+11,
631 5.897016E+11,
632 5.646733E+11,
633 5.397117E+11,
634 5.143614E+11,
635 4.895745E+11,
636 4.894500E+11,
637 4.893947E+11,
638 5.144914E+11,
639 5.395476E+11,
640 5.646784E+11,
641 5.645850E+11,
642 5.899431E+11,
643 5.897296E+11,
644 8.715000E+11,
645 1.438500E+12,
646 2.261950E+12,
647 2.773400E+12,
648 2.971800E+12,
649 3.314400E+12,
650 3.974600E+12,
651 4.265600E+12,
652 4.543020E+12,
653 4.390620E+12,
654 3.540510E+12,
655 2.559030E+12,
656 1.735330E+12,
657 1.093840E+12,
658 6.527249E+11,
659 3.626730E+11,
660 1.958400E+11,
661 1.076055E+11,
662 6.414800E+10,
663 2.259000E+10,
664 7.528400E+09,
665 2.415400E+09,
666 5.760000E+08,
667 1.680840E+08,
668 1.423620E+08,
669 9.005000E+07,
670 3.662360E+07,
671 1.353000E+07,
672 4.392000E+06,
673 8.890001E+05,
674 9.705000E+04,
675 4.353000E+03,
676 2.112500E+02
677 };
678
679 static const double midlat_summer_pressure[] = {
680 1013.00000,
681 902.00000,
682 802.00000,
683 710.00000,
684 628.00000,
685 554.00000,
686 487.00000,
687 426.00000,
688 372.00000,
689 324.00000,
690 281.00000,
691 243.00000,
692 209.00000,
693 179.00000,
694 153.00000,
695 130.00000,
696 111.00000,
697 95.00000,
698 81.20000,
699 69.50000,
700 59.50000,
701 51.00000,
702 43.70000,
703 37.60000,
704 32.20000,
705 27.70000,
706 19.07000,
707 13.20000,
708 9.30000,
709 6.52000,
710 4.64000,
711 3.33000,
712 2.41000,
713 1.76000,
714 1.29000,
715 0.95100,
716 0.51500,
717 0.27200,
718 0.13900,
719 0.06700,
720 0.03000,
721 0.01200,
722 0.00448,
723 0.00164,
724 0.00062,
725 0.00026,
726 0.00012,
727 0.00006,
728 0.00004,
729 0.00002
730 };
731
732 static const double midlat_summer_temperature[] = {
733 294.200,
734 289.700,
735 285.200,
736 279.200,
737 273.200,
738 267.200,
739 261.200,
740 254.700,
741 248.200,
742 241.700,
743 235.300,
744 228.800,
745 222.300,
746 215.800,
747 215.700,
748 215.700,
749 215.700,
750 215.700,
751 216.800,
752 217.900,
753 219.200,
754 220.400,
755 221.600,
756 222.800,
757 223.900,
758 225.100,
759 228.450,
760 233.700,
761 239.000,
762 245.200,
763 251.300,
764 257.500,
765 263.700,
766 269.900,
767 275.200,
768 275.700,
769 269.300,
770 257.100,
771 240.100,
772 218.100,
773 196.100,
774 174.100,
775 165.100,
776 165.000,
777 178.300,
778 190.500,
779 222.200,
780 262.400,
781 316.800,
782 380.000
783 };
784
785 static const double midlat_summer_air_number_density[] = {
786 2.493898E+19,
787 2.255121E+19,
788 2.036745E+19,
789 1.841852E+19,
790 1.664910E+19,
791 1.501707E+19,
792 1.350416E+19,
793 1.211414E+19,
794 1.085558E+19,
795 9.709126E+18,
796 8.649604E+18,
797 7.692404E+18,
798 6.809554E+18,
799 6.007772E+18,
800 5.137515E+18,
801 4.365209E+18,
802 3.727217E+18,
803 3.189961E+18,
804 2.712742E+18,
805 2.310146E+18,
806 1.966021E+18,
807 1.675986E+18,
808 1.428313E+18,
809 1.222319E+18,
810 1.041630E+18,
811 8.912839E+17,
812 6.046045E+17,
813 4.090977E+17,
814 2.818363E+17,
815 1.925923E+17,
816 1.337326E+17,
817 9.366532E+16,
818 6.619401E+16,
819 4.723040E+16,
820 3.395104E+16,
821 2.498363E+16,
822 1.385105E+16,
823 7.662644E+15,
824 4.193093E+15,
825 2.225005E+15,
826 1.108040E+15,
827 4.992227E+14,
828 1.965363E+14,
829 7.198993E+13,
830 2.538870E+13,
831 9.809267E+12,
832 3.813762E+12,
833 1.686511E+12,
834 8.139105E+11,
835 4.326673E+11
836 };
837
838 static const double midlat_summer_ch4_number_density[] = {
839 4.239669e+13,
840 3.833745e+13,
841 3.462502e+13,
842 3.131181e+13,
843 2.825381e+13,
844 2.533405e+13,
845 2.257919e+13,
846 1.997642e+13,
847 1.768392e+13,
848 1.568040e+13,
849 1.365786e+13,
850 1.186181e+13,
851 1.026891e+13,
852 8.885585e+12,
853 7.454611e+12,
854 6.207391e+12,
855 5.180885e+12,
856 4.325631e+12,
857 3.588995e+12,
858 2.959327e+12,
859 2.406435e+12,
860 1.934108e+12,
861 1.522598e+12,
862 1.189328e+12,
863 9.166441e+11,
864 7.030520e+11,
865 4.260087e+11,
866 2.583479e+11,
867 1.576045e+11,
868 9.645122e+10,
869 5.955174e+10,
870 3.667972e+10,
871 2.243338e+10,
872 1.356943e+10,
873 8.094011e+09,
874 4.856868e+09,
875 2.180178e+09,
876 1.149408e+09,
877 6.289704e+08,
878 3.337542e+08,
879 1.662077e+08,
880 7.488417e+07,
881 2.948075e+07,
882 1.007869e+07,
883 3.300565e+06,
884 1.177124e+06,
885 4.195182e+05,
886 1.602202e+05,
887 4.883513e+04,
888 1.298015e+04
889 };
890
891 static const double midlat_summer_co_number_density[] = {
892 3.740885e+12,
893 3.269959e+12,
894 2.849436e+12,
895 2.484684e+12,
896 2.184384e+12,
897 1.956744e+12,
898 1.739354e+12,
899 1.510648e+12,
900 1.286399e+12,
901 1.062189e+12,
902 8.616824e+11,
903 6.895542e+11,
904 5.321040e+11,
905 3.829393e+11,
906 2.581628e+11,
907 1.720346e+11,
908 1.143895e+11,
909 7.939893e+10,
910 5.333307e+10,
911 3.578453e+10,
912 2.616801e+10,
913 2.064836e+10,
914 1.759700e+10,
915 1.597587e+10,
916 1.458297e+10,
917 1.355657e+10,
918 1.041140e+10,
919 8.161583e+09,
920 6.386475e+09,
921 4.789820e+09,
922 3.632215e+09,
923 2.774395e+09,
924 2.077190e+09,
925 1.561925e+09,
926 1.183885e+09,
927 9.106627e+08,
928 5.433823e+08,
929 3.580790e+08,
930 2.685284e+08,
931 2.618858e+08,
932 3.252131e+08,
933 3.402237e+08,
934 2.879286e+08,
935 2.051014e+08,
936 1.311594e+08,
937 9.887842e+07,
938 7.112740e+07,
939 4.828531e+07,
940 3.166144e+07,
941 2.163359e+07
942 };
943
944 static const double midlat_summer_co2_number_density[] = {
945 8.236800E+15,
946 7.448100E+15,
947 6.725400E+15,
948 6.081900E+15,
949 5.497800E+15,
950 4.959900E+15,
951 4.458300E+15,
952 3.999600E+15,
953 3.583800E+15,
954 3.206280E+15,
955 2.856480E+15,
956 2.540340E+15,
957 2.248620E+15,
958 1.983960E+15,
959 1.696530E+15,
960 1.441440E+15,
961 1.230900E+15,
962 1.053360E+15,
963 8.959500E+14,
964 7.629600E+14,
965 6.491100E+14,
966 5.534100E+14,
967 4.715700E+14,
968 4.035900E+14,
969 3.438600E+14,
970 2.943270E+14,
971 1.996500E+14,
972 1.351020E+14,
973 9.306000E+13,
974 6.359100E+13,
975 4.415400E+13,
976 3.093090E+13,
977 2.185920E+13,
978 1.559580E+13,
979 1.121340E+13,
980 8.250000E+12,
981 4.573800E+12,
982 2.530440E+12,
983 1.384680E+12,
984 7.349100E+11,
985 3.659700E+11,
986 1.638688E+11,
987 6.294400E+10,
988 2.233240E+10,
989 6.860700E+09,
990 1.914120E+09,
991 4.197600E+08,
992 1.012800E+08,
993 3.258000E+07,
994 1.515500E+07
995 };
996
997 static const double midlat_summer_h2o_number_density[] = {
998 4.682496E+17,
999 3.110146E+17,
1000 1.972784E+17,
1001 1.102851E+17,
1002 6.352458E+16,
1003 3.344175E+16,
1004 2.040010E+16,
1005 1.236240E+16,
1006 7.019904E+15,
1007 4.011736E+15,
1008 2.139763E+15,
1009 7.356209E+14,
1010 2.006042E+14,
1011 4.809600E+13,
1012 2.570500E+13,
1013 1.485120E+13,
1014 1.230900E+13,
1015 1.021440E+13,
1016 8.552250E+12,
1017 7.398400E+12,
1018 6.491100E+12,
1019 5.785650E+12,
1020 5.144399E+12,
1021 4.708550E+12,
1022 4.168000E+12,
1023 3.745980E+12,
1024 2.692250E+12,
1025 1.924180E+12,
1026 1.367700E+12,
1027 9.538649E+11,
1028 6.690000E+11,
1029 4.780230E+11,
1030 3.510720E+11,
1031 2.575670E+11,
1032 1.868900E+11,
1033 1.375000E+11,
1034 7.415099E+10,
1035 3.834000E+10,
1036 1.846240E+10,
1037 8.239900E+09,
1038 3.271550E+09,
1039 1.049160E+09,
1040 2.616110E+08,
1041 6.123400E+07,
1042 1.372140E+07,
1043 3.926400E+06,
1044 1.297440E+06,
1045 4.726400E+05,
1046 1.954800E+05,
1047 8.660000E+04
1048 };
1049
1050 static const double midlat_summer_n2o_number_density[] = {
1051 7.980554e+12,
1052 7.216462e+12,
1053 6.517651e+12,
1054 5.893987e+12,
1055 5.327767e+12,
1056 4.805511e+12,
1057 4.321376e+12,
1058 3.876564e+12,
1059 3.468393e+12,
1060 3.071028e+12,
1061 2.677945e+12,
1062 2.299283e+12,
1063 1.999305e+12,
1064 1.718240e+12,
1065 1.438519e+12,
1066 1.189095e+12,
1067 9.731863e+11,
1068 7.722973e+11,
1069 5.897563e+11,
1070 4.257642e+11,
1071 3.159429e+11,
1072 2.217352e+11,
1073 1.636864e+11,
1074 1.265113e+11,
1075 1.002267e+11,
1076 7.984204e+10,
1077 4.840513e+10,
1078 2.740165e+10,
1079 1.397359e+10,
1080 7.116359e+09,
1081 3.368759e+09,
1082 1.626047e+09,
1083 7.665346e+08,
1084 3.620247e+08,
1085 1.806553e+08,
1086 8.032320e+07,
1087 2.811792e+07,
1088 1.070482e+07,
1089 4.276998e+06,
1090 1.729292e+06,
1091 6.933078e+05,
1092 2.579011e+05,
1093 8.553347e+04,
1094 2.683092e+04,
1095 8.218407e+03,
1096 2.789784e+03,
1097 9.626035e+02,
1098 3.811554e+02,
1099 1.659581e+02,
1100 8.008754e+01
1101 };
1102
1103 static const double midlat_summer_no2_number_density[] = {
1104 5.740800E+08,
1105 5.191100E+08,
1106 4.687400E+08,
1107 4.238900E+08,
1108 3.831800E+08,
1109 3.456900E+08,
1110 3.107300E+08,
1111 2.787600E+08,
1112 2.497800E+08,
1113 2.254112E+08,
1114 2.060128E+08,
1115 2.016876E+08,
1116 2.146410E+08,
1117 2.675340E+08,
1118 3.845468E+08,
1119 7.469280E+08,
1120 1.189870E+09,
1121 1.656648E+09,
1122 2.093265E+09,
1123 2.450720E+09,
1124 2.734130E+09,
1125 2.951520E+09,
1126 3.086640E+09,
1127 3.155340E+09,
1128 3.188520E+09,
1129 3.335706E+09,
1130 2.910050E+09,
1131 2.521904E+09,
1132 2.033220E+09,
1133 1.402856E+09,
1134 8.375880E+08,
1135 3.777319E+08,
1136 1.437408E+08,
1137 5.434900E+07,
1138 2.263068E+07,
1139 1.107500E+07,
1140 4.698540E+06,
1141 2.185380E+06,
1142 1.061588E+06,
1143 5.144370E+05,
1144 2.384350E+05,
1145 1.009192E+05,
1146 3.776640E+04,
1147 1.318332E+04,
1148 4.472160E+03,
1149 1.668720E+03,
1150 6.258240E+02,
1151 2.683920E+02,
1152 1.262475E+02,
1153 6.538300E+01
1154 };
1155
1156 static const double midlat_summer_o2_number_density[] = {
1157 5.216640E+18,
1158 4.717130E+18,
1159 4.259420E+18,
1160 3.851870E+18,
1161 3.481940E+18,
1162 3.141270E+18,
1163 2.823590E+18,
1164 2.533080E+18,
1165 2.269740E+18,
1166 2.030644E+18,
1167 1.809104E+18,
1168 1.608882E+18,
1169 1.424126E+18,
1170 1.256508E+18,
1171 1.074469E+18,
1172 9.129120E+17,
1173 7.795700E+17,
1174 6.671280E+17,
1175 5.674350E+17,
1176 4.832080E+17,
1177 4.111030E+17,
1178 3.504930E+17,
1179 2.986610E+17,
1180 2.556070E+17,
1181 2.177780E+17,
1182 1.864071E+17,
1183 1.264450E+17,
1184 8.556460E+16,
1185 5.893800E+16,
1186 4.027430E+16,
1187 2.796420E+16,
1188 1.958957E+16,
1189 1.384416E+16,
1190 9.877339E+15,
1191 7.101820E+15,
1192 5.225000E+15,
1193 2.896740E+15,
1194 1.602612E+15,
1195 8.769640E+14,
1196 4.654430E+14,
1197 2.317810E+14,
1198 1.044164E+14,
1199 3.934000E+13,
1200 1.368760E+13,
1201 4.573800E+12,
1202 1.570560E+12,
1203 5.342400E+11,
1204 2.025600E+11,
1205 7.656301E+10,
1206 3.139250E+10
1207 };
1208
1209 static const double midlat_summer_o3_number_density[] = {
1210 7.530432E+11,
1211 7.531609E+11,
1212 7.528372E+11,
1213 7.781146E+11,
1214 8.031786E+11,
1215 8.284536E+11,
1216 8.657207E+11,
1217 9.409968E+11,
1218 9.910836E+11,
1219 1.079448E+12,
1220 1.128742E+12,
1221 1.380251E+12,
1222 1.519522E+12,
1223 1.803600E+12,
1224 2.262040E+12,
1225 2.184000E+12,
1226 2.238000E+12,
1227 2.234400E+12,
1228 2.715000E+12,
1229 3.468000E+12,
1230 3.934000E+12,
1231 4.024800E+12,
1232 4.144100E+12,
1233 4.158200E+12,
1234 4.168000E+12,
1235 4.281120E+12,
1236 3.630000E+12,
1237 2.865800E+12,
1238 2.284200E+12,
1239 1.715030E+12,
1240 1.164060E+12,
1241 7.076615E+11,
1242 3.908160E+11,
1243 2.126700E+11,
1244 1.189300E+11,
1245 7.000000E+10,
1246 2.494800E+10,
1247 9.968400E+09,
1248 3.356800E+09,
1249 8.908001E+08,
1250 2.107100E+08,
1251 9.992000E+07,
1252 1.121190E+08,
1253 5.403000E+07,
1254 1.778700E+07,
1255 3.926400E+06,
1256 7.632000E+05,
1257 8.440001E+04,
1258 4.072500E+03,
1259 2.165000E+02
1260 };
1261
1262 static const double midlat_winter_pressure[] = {
1263 1018.00000,
1264 897.29999,
1265 789.70001,
1266 693.79999,
1267 608.09998,
1268 531.29999,
1269 462.70001,
1270 401.60001,
1271 347.29999,
1272 299.29999,
1273 256.79999,
1274 219.89999,
1275 188.20000,
1276 161.10001,
1277 137.80000,
1278 117.80000,
1279 100.70000,
1280 86.10000,
1281 73.60000,
1282 62.80000,
1283 53.70000,
1284 45.80000,
1285 39.10000,
1286 33.40000,
1287 28.60000,
1288 24.40000,
1289 16.46000,
1290 11.10000,
1291 7.56000,
1292 5.18000,
1293 3.60000,
1294 2.53000,
1295 1.80000,
1296 1.29000,
1297 0.94000,
1298 0.68300,
1299 0.36200,
1300 0.18800,
1301 0.09500,
1302 0.04700,
1303 0.02220,
1304 0.01030,
1305 0.00456,
1306 0.00198,
1307 0.00088,
1308 0.00041,
1309 0.00020,
1310 0.00011,
1311 0.00006,
1312 0.00004
1313 };
1314
1315 static const double midlat_winter_temperature[] = {
1316 272.200,
1317 268.700,
1318 265.200,
1319 261.700,
1320 255.700,
1321 249.700,
1322 243.700,
1323 237.700,
1324 231.700,
1325 225.700,
1326 219.700,
1327 219.200,
1328 218.700,
1329 218.200,
1330 217.700,
1331 217.200,
1332 216.700,
1333 216.200,
1334 215.700,
1335 215.200,
1336 215.200,
1337 215.200,
1338 215.200,
1339 215.200,
1340 215.200,
1341 215.200,
1342 215.500,
1343 217.400,
1344 220.400,
1345 227.900,
1346 235.500,
1347 243.200,
1348 250.800,
1349 258.500,
1350 265.100,
1351 265.700,
1352 260.600,
1353 250.800,
1354 240.900,
1355 230.700,
1356 220.400,
1357 210.100,
1358 199.800,
1359 199.500,
1360 208.300,
1361 218.600,
1362 237.100,
1363 259.500,
1364 293.000,
1365 333.000
1366 };
1367
1368 static const double midlat_winter_air_number_density[] = {
1369 2.708766E+19,
1370 2.418699E+19,
1371 2.156753E+19,
1372 1.920182E+19,
1373 1.722488E+19,
1374 1.541108E+19,
1375 1.375168E+19,
1376 1.223704E+19,
1377 1.085652E+19,
1378 9.604770E+18,
1379 8.465970E+18,
1380 7.266018E+18,
1381 6.232793E+18,
1382 5.347523E+18,
1383 4.584612E+18,
1384 3.928234E+18,
1385 3.365754E+18,
1386 2.884426E+18,
1387 2.471380E+18,
1388 2.113631E+18,
1389 1.807356E+18,
1390 1.541470E+18,
1391 1.315971E+18,
1392 1.124129E+18,
1393 9.625772E+17,
1394 8.212197E+17,
1395 5.532155E+17,
1396 3.698071E+17,
1397 2.484403E+17,
1398 1.646256E+17,
1399 1.107193E+17,
1400 7.534749E+16,
1401 5.198245E+16,
1402 3.614440E+16,
1403 2.568206E+16,
1404 1.861834E+16,
1405 1.006111E+16,
1406 5.429278E+15,
1407 2.856266E+15,
1408 1.475577E+15,
1409 7.295469E+14,
1410 3.550774E+14,
1411 1.653032E+14,
1412 7.188431E+13,
1413 3.049454E+13,
1414 1.349841E+13,
1415 6.109564E+12,
1416 2.950186E+12,
1417 1.478242E+12,
1418 7.830151E+11
1419 };
1420
1421 static const double midlat_winter_ch4_number_density[] = {
1422 4.604949e+13,
1423 4.111830e+13,
1424 3.666518e+13,
1425 3.264343e+13,
1426 2.923091e+13,
1427 2.599876e+13,
1428 2.299305e+13,
1429 2.017908e+13,
1430 1.768545e+13,
1431 1.551186e+13,
1432 1.336791e+13,
1433 1.120432e+13,
1434 9.399147e+12,
1435 7.909067e+12,
1436 6.652341e+12,
1437 5.586005e+12,
1438 4.678446e+12,
1439 3.911321e+12,
1440 3.269669e+12,
1441 2.707589e+12,
1442 2.212227e+12,
1443 1.778874e+12,
1444 1.402839e+12,
1445 1.093788e+12,
1446 8.470767e+11,
1447 6.513161e+11,
1448 3.944467e+11,
1449 2.380843e+11,
1450 1.427553e+11,
1451 8.313676e+10,
1452 4.961384e+10,
1453 2.961940e+10,
1454 1.764822e+10,
1455 1.039524e+10,
1456 6.127804e+09,
1457 3.619443e+09,
1458 1.583635e+09,
1459 8.144002e+08,
1460 4.284443e+08,
1461 2.213389e+08,
1462 1.094332e+08,
1463 5.326215e+07,
1464 2.479573e+07,
1465 1.006391e+07,
1466 3.964331e+06,
1467 1.619826e+06,
1468 6.720590e+05,
1469 2.802706e+05,
1470 8.869540e+04,
1471 2.349069e+04
1472 };
1473
1474 static const double midlat_winter_co_number_density[] = {
1475 4.063191e+12,
1476 3.507150e+12,
1477 3.017329e+12,
1478 2.590352e+12,
1479 2.259927e+12,
1480 2.008084e+12,
1481 1.771235e+12,
1482 1.525974e+12,
1483 1.286511e+12,
1484 1.050773e+12,
1485 8.433887e+11,
1486 6.513326e+11,
1487 4.870354e+11,
1488 3.408546e+11,
1489 2.303791e+11,
1490 1.548133e+11,
1491 1.032961e+11,
1492 7.179408e+10,
1493 4.858783e+10,
1494 3.274048e+10,
1495 2.405616e+10,
1496 1.899110e+10,
1497 1.621293e+10,
1498 1.469251e+10,
1499 1.347622e+10,
1500 1.230200e+10,
1501 8.840475e+09,
1502 6.323767e+09,
1503 4.596193e+09,
1504 3.287606e+09,
1505 2.377168e+09,
1506 1.756368e+09,
1507 1.362994e+09,
1508 1.104946e+09,
1509 9.766990e+08,
1510 1.162727e+09,
1511 1.489060e+09,
1512 1.588623e+09,
1513 1.595526e+09,
1514 1.590689e+09,
1515 1.383965e+09,
1516 1.051040e+09,
1517 7.481698e+08,
1518 4.932752e+08,
1519 3.214158e+08,
1520 2.306902e+08,
1521 1.510911e+08,
1522 9.909778e+07,
1523 6.133287e+07,
1524 3.915115e+07
1525 };
1526
1527 static const double midlat_winter_co2_number_density[] = {
1528 8.946300E+15,
1529 7.986000E+15,
1530 7.121400E+15,
1531 6.342600E+15,
1532 5.689200E+15,
1533 5.088600E+15,
1534 4.540800E+15,
1535 4.042500E+15,
1536 3.583800E+15,
1537 3.171960E+15,
1538 2.795760E+15,
1539 2.399430E+15,
1540 2.058210E+15,
1541 1.765830E+15,
1542 1.514040E+15,
1543 1.297230E+15,
1544 1.111440E+15,
1545 9.523800E+14,
1546 8.160900E+14,
1547 6.979500E+14,
1548 5.969700E+14,
1549 5.091900E+14,
1550 4.346100E+14,
1551 3.712500E+14,
1552 3.178890E+14,
1553 2.711940E+14,
1554 1.826880E+14,
1555 1.221330E+14,
1556 8.203800E+13,
1557 5.435100E+13,
1558 3.656400E+13,
1559 2.488200E+13,
1560 1.716660E+13,
1561 1.193610E+13,
1562 8.481000E+12,
1563 6.147900E+12,
1564 3.323100E+12,
1565 1.792890E+12,
1566 9.431400E+11,
1567 4.874100E+11,
1568 2.409330E+11,
1569 1.165384E+11,
1570 5.292800E+10,
1571 2.230140E+10,
1572 8.240400E+09,
1573 2.634450E+09,
1574 6.725400E+08,
1575 1.771200E+08,
1576 5.916000E+07,
1577 2.742600E+07
1578 };
1579
1580 static const double midlat_winter_h2o_number_density[] = {
1581 1.170068E+17,
1582 8.358680E+16,
1583 6.016504E+16,
1584 4.013136E+16,
1585 2.206720E+16,
1586 1.270762E+16,
1587 7.021728E+15,
1588 2.843225E+15,
1589 1.169622E+15,
1590 5.350039E+14,
1591 2.507712E+14,
1592 7.271000E+13,
1593 3.742200E+13,
1594 2.675500E+13,
1595 2.202240E+13,
1596 1.847570E+13,
1597 1.549280E+13,
1598 1.298700E+13,
1599 1.112850E+13,
1600 9.517500E+12,
1601 8.140500E+12,
1602 6.943500E+12,
1603 5.966010E+12,
1604 5.118751E+12,
1605 4.431180E+12,
1606 3.821370E+12,
1607 2.601920E+12,
1608 1.757975E+12,
1609 1.193280E+12,
1610 7.987950E+11,
1611 5.429200E+11,
1612 3.732300E+11,
1613 2.601000E+11,
1614 1.808500E+11,
1615 1.285000E+11,
1616 9.221850E+10,
1617 4.883950E+10,
1618 2.444850E+10,
1619 1.143200E+10,
1620 4.874100E+09,
1621 1.971270E+09,
1622 7.106000E+08,
1623 2.199820E+08,
1624 6.114900E+07,
1625 1.648080E+07,
1626 5.404000E+06,
1627 2.078760E+06,
1628 8.265599E+05,
1629 3.549600E+05,
1630 1.567200E+05
1631 };
1632
1633 static const double midlat_winter_n2o_number_density[] = {
1634 8.668140e+12,
1635 7.739916e+12,
1636 6.901681e+12,
1637 6.144645e+12,
1638 5.512017e+12,
1639 4.931596e+12,
1640 4.400583e+12,
1641 3.915893e+12,
1642 3.468693e+12,
1643 3.038020e+12,
1644 2.621092e+12,
1645 2.171835e+12,
1646 1.829967e+12,
1647 1.529407e+12,
1648 1.283705e+12,
1649 1.070062e+12,
1650 8.788074e+11,
1651 6.983265e+11,
1652 5.372835e+11,
1653 3.895462e+11,
1654 2.929755e+11,
1655 2.099503e+11,
1656 1.618661e+11,
1657 1.263534e+11,
1658 1.008791e+11,
1659 7.933885e+10,
1660 4.809152e+10,
1661 2.782457e+10,
1662 1.521961e+10,
1663 8.422330e+09,
1664 4.393388e+09,
1665 2.256680e+09,
1666 1.081246e+09,
1667 4.738579e+08,
1668 2.072821e+08,
1669 7.752757e+07,
1670 2.645093e+07,
1671 9.821666e+06,
1672 3.773166e+06,
1673 1.485922e+06,
1674 5.751077e+05,
1675 2.248728e+05,
1676 8.585935e+04,
1677 3.114779e+04,
1678 1.117941e+04,
1679 4.238545e+03,
1680 1.659986e+03,
1681 7.000864e+02,
1682 3.088078e+02,
1683 1.449376e+02
1684 };
1685
1686 static const double midlat_winter_no2_number_density[] = {
1687 6.235300E+08,
1688 5.566000E+08,
1689 4.963400E+08,
1690 4.420600E+08,
1691 3.965200E+08,
1692 3.546600E+08,
1693 3.164800E+08,
1694 2.817500E+08,
1695 2.497800E+08,
1696 2.229984E+08,
1697 2.016336E+08,
1698 1.905002E+08,
1699 1.964655E+08,
1700 2.381195E+08,
1701 3.431824E+08,
1702 6.722010E+08,
1703 1.074392E+09,
1704 1.497834E+09,
1705 1.906683E+09,
1706 2.241900E+09,
1707 2.514510E+09,
1708 2.715680E+09,
1709 2.844720E+09,
1710 2.902500E+09,
1711 2.947698E+09,
1712 3.073532E+09,
1713 2.662816E+09,
1714 2.279816E+09,
1715 1.792406E+09,
1716 1.199016E+09,
1717 6.936080E+08,
1718 3.038620E+08,
1719 1.128834E+08,
1720 4.159550E+07,
1721 1.711620E+07,
1722 8.253090E+06,
1723 3.413730E+06,
1724 1.548405E+06,
1725 7.230740E+05,
1726 3.411870E+05,
1727 1.569715E+05,
1728 7.177059E+04,
1729 3.175680E+04,
1730 1.316502E+04,
1731 5.371520E+03,
1732 2.296700E+03,
1733 1.002696E+03,
1734 4.693680E+02,
1735 2.292450E+02,
1736 1.183236E+02
1737 };
1738
1739 static const double midlat_winter_o2_number_density[] = {
1740 5.665990E+18,
1741 5.057800E+18,
1742 4.510220E+18,
1743 4.016980E+18,
1744 3.603160E+18,
1745 3.222780E+18,
1746 2.875840E+18,
1747 2.560250E+18,
1748 2.269740E+18,
1749 2.008908E+18,
1750 1.770648E+18,
1751 1.519639E+18,
1752 1.303533E+18,
1753 1.118359E+18,
1754 9.588920E+17,
1755 8.215790E+17,
1756 7.039120E+17,
1757 6.031740E+17,
1758 5.168570E+17,
1759 4.420350E+17,
1760 3.780810E+17,
1761 3.224870E+17,
1762 2.752530E+17,
1763 2.351250E+17,
1764 2.013297E+17,
1765 1.717562E+17,
1766 1.157024E+17,
1767 7.735090E+16,
1768 5.195740E+16,
1769 3.442230E+16,
1770 2.315720E+16,
1771 1.575860E+16,
1772 1.087218E+16,
1773 7.559530E+15,
1774 5.371300E+15,
1775 3.893670E+15,
1776 2.104630E+15,
1777 1.135497E+15,
1778 5.973220E+14,
1779 3.086930E+14,
1780 1.525909E+14,
1781 7.425770E+13,
1782 3.308000E+13,
1783 1.366860E+13,
1784 5.493600E+12,
1785 2.161600E+12,
1786 8.559601E+11,
1787 3.542400E+11,
1788 1.390260E+11,
1789 5.681100E+10
1790 };
1791
1792 static const double midlat_winter_o3_number_density[] = {
1793 7.531159E+11,
1794 6.776000E+11,
1795 6.148142E+11,
1796 6.150400E+11,
1797 6.149508E+11,
1798 7.278240E+11,
1799 8.031712E+11,
1800 9.666475E+11,
1801 1.128354E+12,
1802 1.506200E+12,
1803 2.007864E+12,
1804 2.635010E+12,
1805 3.263198E+12,
1806 3.764963E+12,
1807 3.670400E+12,
1808 3.537900E+12,
1809 3.704800E+12,
1810 4.040400E+12,
1811 4.451400E+12,
1812 4.864500E+12,
1813 5.246100E+12,
1814 5.400500E+12,
1815 5.136300E+12,
1816 4.837501E+12,
1817 4.527510E+12,
1818 4.191180E+12,
1819 3.100160E+12,
1820 2.257610E+12,
1821 1.690480E+12,
1822 1.169370E+12,
1823 7.977600E+11,
1824 5.202600E+11,
1825 3.069180E+11,
1826 1.663820E+11,
1827 9.509000E+10,
1828 5.123250E+10,
1829 1.711900E+10,
1830 5.433000E+09,
1831 1.571900E+09,
1832 4.726400E+08,
1833 1.825250E+08,
1834 8.171900E+07,
1835 9.097000E+07,
1836 5.755200E+07,
1837 2.441600E+07,
1838 5.404000E+06,
1839 1.222800E+06,
1840 1.476000E+05,
1841 7.395000E+03,
1842 3.918000E+02
1843 };
1844
1845 static const double subarctic_summer_pressure[] = {
1846 1010.00000,
1847 896.00000,
1848 792.90002,
1849 700.00000,
1850 616.00000,
1851 541.00000,
1852 474.00000,
1853 413.00000,
1854 359.00000,
1855 310.79999,
1856 267.70001,
1857 230.00000,
1858 197.70000,
1859 170.00000,
1860 146.00000,
1861 126.00000,
1862 108.00000,
1863 92.80000,
1864 79.80000,
1865 68.60000,
1866 59.00000,
1867 50.70000,
1868 43.60000,
1869 37.50000,
1870 32.28000,
1871 27.80000,
1872 19.23000,
1873 13.40000,
1874 9.40000,
1875 6.61000,
1876 4.72000,
1877 3.40000,
1878 2.48000,
1879 1.82000,
1880 1.34000,
1881 0.98700,
1882 0.53700,
1883 0.28800,
1884 0.14700,
1885 0.07100,
1886 0.03200,
1887 0.01250,
1888 0.00451,
1889 0.00161,
1890 0.00061,
1891 0.00025,
1892 0.00011,
1893 0.00006,
1894 0.00004,
1895 0.00002
1896 };
1897
1898 static const double subarctic_summer_temperature[] = {
1899 287.200,
1900 281.700,
1901 276.300,
1902 270.900,
1903 265.500,
1904 260.100,
1905 253.100,
1906 246.100,
1907 239.200,
1908 232.200,
1909 225.200,
1910 225.200,
1911 225.200,
1912 225.200,
1913 225.200,
1914 225.200,
1915 225.200,
1916 225.200,
1917 225.200,
1918 225.200,
1919 225.200,
1920 225.200,
1921 225.200,
1922 225.200,
1923 226.600,
1924 228.100,
1925 231.000,
1926 235.100,
1927 240.000,
1928 247.200,
1929 254.600,
1930 262.100,
1931 269.500,
1932 273.600,
1933 276.200,
1934 277.200,
1935 274.000,
1936 262.700,
1937 239.700,
1938 216.600,
1939 193.600,
1940 170.600,
1941 161.700,
1942 161.600,
1943 176.800,
1944 190.400,
1945 226.000,
1946 270.100,
1947 322.700,
1948 380.000
1949 };
1950
1951 static const double subarctic_summer_air_number_density[] = {
1952 2.547116E+19,
1953 2.303737E+19,
1954 2.078497E+19,
1955 1.871548E+19,
1956 1.680459E+19,
1957 1.506498E+19,
1958 1.356432E+19,
1959 1.215487E+19,
1960 1.087039E+19,
1961 9.694616E+18,
1962 8.609776E+18,
1963 7.397267E+18,
1964 6.358433E+18,
1965 5.467545E+18,
1966 4.695657E+18,
1967 4.052416E+18,
1968 3.473499E+18,
1969 2.984637E+18,
1970 2.566530E+18,
1971 2.206315E+18,
1972 1.897560E+18,
1973 1.630615E+18,
1974 1.402264E+18,
1975 1.206076E+18,
1976 1.031776E+18,
1977 8.827370E+17,
1978 6.029470E+17,
1979 4.128230E+17,
1980 2.836798E+17,
1981 1.936711E+17,
1982 1.342751E+17,
1983 9.395583E+16,
1984 6.665071E+16,
1985 4.818004E+16,
1986 3.513929E+16,
1987 2.578907E+16,
1988 1.419501E+16,
1989 7.940434E+15,
1990 4.441822E+15,
1991 2.374169E+15,
1992 1.197172E+15,
1993 5.306923E+14,
1994 2.020125E+14,
1995 7.215997E+13,
1996 2.482574E+13,
1997 9.434015E+12,
1998 3.621444E+12,
1999 1.608935E+12,
2000 7.945406E+11,
2001 4.307612E+11
2002 };
2003
2004 static const double subarctic_summer_ch4_number_density[] = {
2005 4.239669e+13,
2006 3.833745e+13,
2007 3.462502e+13,
2008 3.131181e+13,
2009 2.825381e+13,
2010 2.533405e+13,
2011 2.257919e+13,
2012 1.997642e+13,
2013 1.768392e+13,
2014 1.568040e+13,
2015 1.365786e+13,
2016 1.186181e+13,
2017 1.026891e+13,
2018 8.885585e+12,
2019 7.454611e+12,
2020 6.207391e+12,
2021 5.180885e+12,
2022 4.325631e+12,
2023 3.588995e+12,
2024 2.959327e+12,
2025 2.406435e+12,
2026 1.934108e+12,
2027 1.522598e+12,
2028 1.189328e+12,
2029 9.166441e+11,
2030 7.030520e+11,
2031 4.260087e+11,
2032 2.583479e+11,
2033 1.576045e+11,
2034 9.645122e+10,
2035 5.955174e+10,
2036 3.667972e+10,
2037 2.243338e+10,
2038 1.356943e+10,
2039 8.094011e+09,
2040 4.856868e+09,
2041 2.180178e+09,
2042 1.149408e+09,
2043 6.289704e+08,
2044 3.337542e+08,
2045 1.662077e+08,
2046 7.488417e+07,
2047 2.948075e+07,
2048 1.007869e+07,
2049 3.300565e+06,
2050 1.177124e+06,
2051 4.195182e+05,
2052 1.602202e+05,
2053 4.883513e+04,
2054 1.298015e+04
2055 };
2056
2057 static const double subarctic_summer_co_number_density[] = {
2058 3.740885e+12,
2059 3.269959e+12,
2060 2.849436e+12,
2061 2.484684e+12,
2062 2.184384e+12,
2063 1.956744e+12,
2064 1.739354e+12,
2065 1.510648e+12,
2066 1.286399e+12,
2067 1.062189e+12,
2068 8.616824e+11,
2069 6.895542e+11,
2070 5.321040e+11,
2071 3.829393e+11,
2072 2.581628e+11,
2073 1.720346e+11,
2074 1.143895e+11,
2075 7.939893e+10,
2076 5.333307e+10,
2077 3.578453e+10,
2078 2.616801e+10,
2079 2.064836e+10,
2080 1.759700e+10,
2081 1.597587e+10,
2082 1.458297e+10,
2083 1.355657e+10,
2084 1.041140e+10,
2085 8.161583e+09,
2086 6.386475e+09,
2087 4.789820e+09,
2088 3.632215e+09,
2089 2.774395e+09,
2090 2.077190e+09,
2091 1.561925e+09,
2092 1.183885e+09,
2093 9.106627e+08,
2094 5.433823e+08,
2095 3.580790e+08,
2096 2.685284e+08,
2097 2.618858e+08,
2098 3.252131e+08,
2099 3.402237e+08,
2100 2.879286e+08,
2101 2.051014e+08,
2102 1.311594e+08,
2103 9.887842e+07,
2104 7.112740e+07,
2105 4.828531e+07,
2106 3.166144e+07,
2107 2.163359e+07
2108 };
2109
2110 static const double subarctic_summer_co2_number_density[] = {
2111 8.411700E+15,
2112 7.606500E+15,
2113 6.864000E+15,
2114 6.180900E+15,
2115 5.550600E+15,
2116 4.976400E+15,
2117 4.478100E+15,
2118 4.012800E+15,
2119 3.590400E+15,
2120 3.201330E+15,
2121 2.843280E+15,
2122 2.442660E+15,
2123 2.099790E+15,
2124 1.805430E+15,
2125 1.550670E+15,
2126 1.338150E+15,
2127 1.147080E+15,
2128 9.857100E+14,
2129 8.474400E+14,
2130 7.286400E+14,
2131 6.266700E+14,
2132 5.385600E+14,
2133 4.629900E+14,
2134 3.983100E+14,
2135 3.408900E+14,
2136 2.915220E+14,
2137 1.991220E+14,
2138 1.363230E+14,
2139 9.368700E+13,
2140 6.395400E+13,
2141 4.435200E+13,
2142 3.102660E+13,
2143 2.201100E+13,
2144 1.590930E+13,
2145 1.160280E+13,
2146 8.517300E+12,
2147 4.689300E+12,
2148 2.622180E+12,
2149 1.466850E+12,
2150 7.840800E+11,
2151 3.953400E+11,
2152 1.742008E+11,
2153 6.470400E+10,
2154 2.238510E+10,
2155 6.706800E+09,
2156 1.840995E+09,
2157 3.986400E+08,
2158 9.660000E+07,
2159 3.180400E+07,
2160 1.508850E+07
2161 };
2162
2163 static const double subarctic_summer_h2o_number_density[] = {
2164 3.043506E+17,
2165 2.005581E+17,
2166 1.404000E+17,
2167 9.027860E+16,
2168 5.685160E+16,
2169 3.344744E+16,
2170 1.804810E+16,
2171 9.692736E+15,
2172 4.347648E+15,
2173 1.261130E+15,
2174 3.653184E+14,
2175 9.844661E+13,
2176 3.817800E+13,
2177 2.434595E+13,
2178 1.879600E+13,
2179 1.622000E+13,
2180 1.390400E+13,
2181 1.209735E+13,
2182 1.104240E+13,
2183 9.936000E+12,
2184 8.735400E+12,
2185 7.670400E+12,
2186 6.734400E+12,
2187 5.829810E+12,
2188 5.010049E+12,
2189 4.328660E+12,
2190 2.986830E+12,
2191 2.065500E+12,
2192 1.419500E+12,
2193 9.690000E+11,
2194 6.720000E+11,
2195 4.701000E+11,
2196 3.335000E+11,
2197 2.410500E+11,
2198 1.758000E+11,
2199 1.277595E+11,
2200 6.891850E+10,
2201 3.575700E+10,
2202 1.778000E+10,
2203 7.840800E+09,
2204 3.234600E+09,
2205 1.062200E+09,
2206 2.689260E+08,
2207 6.137850E+07,
2208 1.341360E+07,
2209 3.776400E+06,
2210 1.232160E+06,
2211 4.508000E+05,
2212 1.908240E+05,
2213 8.622001E+04
2214 };
2215
2216 static const double subarctic_summer_n2o_number_density[] = {
2217 7.980554e+12,
2218 7.216462e+12,
2219 6.517651e+12,
2220 5.893987e+12,
2221 5.327767e+12,
2222 4.805511e+12,
2223 4.321376e+12,
2224 3.876564e+12,
2225 3.468393e+12,
2226 3.071028e+12,
2227 2.677945e+12,
2228 2.299283e+12,
2229 1.999305e+12,
2230 1.718240e+12,
2231 1.438519e+12,
2232 1.189095e+12,
2233 9.731863e+11,
2234 7.722973e+11,
2235 5.897563e+11,
2236 4.257642e+11,
2237 3.159429e+11,
2238 2.217352e+11,
2239 1.636864e+11,
2240 1.265113e+11,
2241 1.002267e+11,
2242 7.984204e+10,
2243 4.840513e+10,
2244 2.740165e+10,
2245 1.397359e+10,
2246 7.116359e+09,
2247 3.368759e+09,
2248 1.626047e+09,
2249 7.665346e+08,
2250 3.620247e+08,
2251 1.806553e+08,
2252 8.032320e+07,
2253 2.811792e+07,
2254 1.070482e+07,
2255 4.276998e+06,
2256 1.729292e+06,
2257 6.933078e+05,
2258 2.579011e+05,
2259 8.553347e+04,
2260 2.683092e+04,
2261 8.218407e+03,
2262 2.789784e+03,
2263 9.626035e+02,
2264 3.811554e+02,
2265 1.659581e+02,
2266 8.008754e+01
2267 };
2268
2269 static const double subarctic_summer_no2_number_density[] = {
2270 5.862700E+08,
2271 5.301500E+08,
2272 4.784000E+08,
2273 4.307900E+08,
2274 3.868600E+08,
2275 3.468400E+08,
2276 3.121100E+08,
2277 2.796800E+08,
2278 2.502400E+08,
2279 2.250632E+08,
2280 2.050608E+08,
2281 1.939324E+08,
2282 2.004345E+08,
2283 2.434595E+08,
2284 3.514852E+08,
2285 6.934050E+08,
2286 1.108844E+09,
2287 1.550253E+09,
2288 1.979928E+09,
2289 2.340480E+09,
2290 2.639610E+09,
2291 2.872320E+09,
2292 3.030480E+09,
2293 3.114060E+09,
2294 3.160980E+09,
2295 3.303916E+09,
2296 2.902354E+09,
2297 2.544696E+09,
2298 2.046919E+09,
2299 1.410864E+09,
2300 8.413440E+08,
2301 3.789006E+08,
2302 1.447390E+08,
2303 5.544150E+07,
2304 2.341656E+07,
2305 1.143383E+07,
2306 4.817190E+06,
2307 2.264610E+06,
2308 1.124585E+06,
2309 5.488560E+05,
2310 2.575700E+05,
2311 1.072822E+05,
2312 3.882240E+04,
2313 1.321443E+04,
2314 4.371840E+03,
2315 1.604970E+03,
2316 5.943360E+02,
2317 2.559900E+02,
2318 1.232405E+02,
2319 6.509610E+01
2320 };
2321
2322 static const double subarctic_summer_o2_number_density[] = {
2323 5.327410E+18,
2324 4.817450E+18,
2325 4.347200E+18,
2326 3.914570E+18,
2327 3.515380E+18,
2328 3.151720E+18,
2329 2.836130E+18,
2330 2.541440E+18,
2331 2.273920E+18,
2332 2.027509E+18,
2333 1.800744E+18,
2334 1.547018E+18,
2335 1.329867E+18,
2336 1.143439E+18,
2337 9.820909E+17,
2338 8.474950E+17,
2339 7.264840E+17,
2340 6.242830E+17,
2341 5.367120E+17,
2342 4.614720E+17,
2343 3.968910E+17,
2344 3.410880E+17,
2345 2.932270E+17,
2346 2.522630E+17,
2347 2.158970E+17,
2348 1.846306E+17,
2349 1.261106E+17,
2350 8.633790E+16,
2351 5.933510E+16,
2352 4.050420E+16,
2353 2.808960E+16,
2354 1.965018E+16,
2355 1.394030E+16,
2356 1.007589E+16,
2357 7.348440E+15,
2358 5.394290E+15,
2359 2.969890E+15,
2360 1.660714E+15,
2361 9.290050E+14,
2362 4.965840E+14,
2363 2.503820E+14,
2364 1.109999E+14,
2365 4.044000E+13,
2366 1.371990E+13,
2367 4.471200E+12,
2368 1.510560E+12,
2369 5.073600E+11,
2370 1.932000E+11,
2371 7.473940E+10,
2372 3.125475E+10
2373 };
2374
2375 static const double subarctic_summer_o3_number_density[] = {
2376 6.148188E+11,
2377 6.776700E+11,
2378 7.028321E+11,
2379 7.280351E+11,
2380 7.531996E+11,
2381 8.034624E+11,
2382 8.907348E+11,
2383 9.409409E+11,
2384 9.916032E+11,
2385 1.377542E+12,
2386 1.628424E+12,
2387 2.257610E+12,
2388 2.608830E+12,
2389 2.735500E+12,
2390 2.819400E+12,
2391 2.838500E+12,
2392 2.954600E+12,
2393 2.987000E+12,
2394 3.338400E+12,
2395 3.753600E+12,
2396 3.987900E+12,
2397 4.406400E+12,
2398 4.629900E+12,
2399 4.465900E+12,
2400 4.338600E+12,
2401 3.975300E+12,
2402 3.198020E+12,
2403 2.354670E+12,
2404 1.958910E+12,
2405 1.492260E+12,
2406 1.048320E+12,
2407 6.581400E+11,
2408 3.601800E+11,
2409 2.024820E+11,
2410 1.125120E+11,
2411 6.452500E+10,
2412 2.415700E+10,
2413 9.535200E+09,
2414 3.556000E+09,
2415 9.504000E+08,
2416 2.396000E+08,
2417 9.559800E+07,
2418 1.314300E+08,
2419 6.498900E+07,
2420 1.987200E+07,
2421 3.776400E+06,
2422 7.248001E+05,
2423 8.050000E+04,
2424 3.975500E+03,
2425 2.155500E+02
2426 };
2427
2428 static const double subarctic_winter_pressure[] = {
2429 1013.00000,
2430 887.79999,
2431 777.50000,
2432 679.79999,
2433 593.20001,
2434 515.79999,
2435 446.70001,
2436 385.29999,
2437 330.79999,
2438 282.89999,
2439 241.80000,
2440 206.70000,
2441 176.60001,
2442 151.00000,
2443 129.10001,
2444 110.30000,
2445 94.31000,
2446 80.58000,
2447 68.82000,
2448 58.75000,
2449 50.14000,
2450 42.77000,
2451 36.47000,
2452 31.09000,
2453 26.49000,
2454 22.56000,
2455 15.13000,
2456 10.20000,
2457 6.91000,
2458 4.70100,
2459 3.23000,
2460 2.24300,
2461 1.57000,
2462 1.11300,
2463 0.79000,
2464 0.57190,
2465 0.29900,
2466 0.15500,
2467 0.07900,
2468 0.04000,
2469 0.02000,
2470 0.00966,
2471 0.00450,
2472 0.00202,
2473 0.00091,
2474 0.00042,
2475 0.00021,
2476 0.00011,
2477 0.00006,
2478 0.00004
2479 };
2480
2481 static const double subarctic_winter_temperature[] = {
2482 257.200,
2483 259.100,
2484 255.900,
2485 252.700,
2486 247.700,
2487 240.900,
2488 234.100,
2489 227.300,
2490 220.600,
2491 217.200,
2492 217.200,
2493 217.200,
2494 217.200,
2495 217.200,
2496 217.200,
2497 217.200,
2498 216.600,
2499 216.000,
2500 215.400,
2501 214.800,
2502 214.200,
2503 213.600,
2504 213.000,
2505 212.400,
2506 211.800,
2507 211.200,
2508 213.600,
2509 216.000,
2510 218.500,
2511 222.300,
2512 228.500,
2513 234.700,
2514 240.800,
2515 247.000,
2516 253.200,
2517 259.300,
2518 259.100,
2519 250.900,
2520 248.400,
2521 245.400,
2522 234.700,
2523 223.900,
2524 213.100,
2525 202.300,
2526 211.000,
2527 218.500,
2528 234.000,
2529 252.600,
2530 288.500,
2531 333.000
2532 };
2533
2534 static const double subarctic_winter_air_number_density[] = {
2535 2.852662E+19,
2536 2.481759E+19,
2537 2.200604E+19,
2538 1.948443E+19,
2539 1.734551E+19,
2540 1.550802E+19,
2541 1.382058E+19,
2542 1.227754E+19,
2543 1.086105E+19,
2544 9.433762E+18,
2545 8.063216E+18,
2546 6.892749E+18,
2547 5.889016E+18,
2548 5.035342E+18,
2549 4.305051E+18,
2550 3.678134E+18,
2551 3.153632E+18,
2552 2.702000E+18,
2553 2.314093E+18,
2554 1.981004E+18,
2555 1.695418E+18,
2556 1.450273E+18,
2557 1.240132E+18,
2558 1.060176E+18,
2559 9.058741E+17,
2560 7.736723E+17,
2561 5.130379E+17,
2562 3.420253E+17,
2563 2.290543E+17,
2564 1.531661E+17,
2565 1.023831E+17,
2566 6.921943E+16,
2567 4.722316E+16,
2568 3.263698E+16,
2569 2.259827E+16,
2570 1.597458E+16,
2571 8.358255E+15,
2572 4.474483E+15,
2573 2.303495E+15,
2574 1.180585E+15,
2575 6.172040E+14,
2576 3.124891E+14,
2577 1.529470E+14,
2578 7.239309E+13,
2579 3.113413E+13,
2580 1.402170E+13,
2581 6.407171E+12,
2582 3.096722E+12,
2583 1.506320E+12,
2584 7.808399E+11
2585 };
2586
2587 static const double subarctic_winter_ch4_number_density[] = {
2588 4.604949e+13,
2589 4.111830e+13,
2590 3.666518e+13,
2591 3.264343e+13,
2592 2.923091e+13,
2593 2.599876e+13,
2594 2.299305e+13,
2595 2.017908e+13,
2596 1.768545e+13,
2597 1.551186e+13,
2598 1.336791e+13,
2599 1.120432e+13,
2600 9.399147e+12,
2601 7.909067e+12,
2602 6.652341e+12,
2603 5.586005e+12,
2604 4.678446e+12,
2605 3.911321e+12,
2606 3.269669e+12,
2607 2.707589e+12,
2608 2.212227e+12,
2609 1.778874e+12,
2610 1.402839e+12,
2611 1.093788e+12,
2612 8.470767e+11,
2613 6.513161e+11,
2614 3.944467e+11,
2615 2.380843e+11,
2616 1.427553e+11,
2617 8.313676e+10,
2618 4.961384e+10,
2619 2.961940e+10,
2620 1.764822e+10,
2621 1.039524e+10,
2622 6.127804e+09,
2623 3.619443e+09,
2624 1.583635e+09,
2625 8.144002e+08,
2626 4.284443e+08,
2627 2.213389e+08,
2628 1.094332e+08,
2629 5.326215e+07,
2630 2.479573e+07,
2631 1.006391e+07,
2632 3.964331e+06,
2633 1.619826e+06,
2634 6.720590e+05,
2635 2.802706e+05,
2636 8.869540e+04,
2637 2.349069e+04
2638 };
2639
2640 static const double subarctic_winter_co_number_density[] = {
2641 4.063191e+12,
2642 3.507150e+12,
2643 3.017329e+12,
2644 2.590352e+12,
2645 2.259927e+12,
2646 2.008084e+12,
2647 1.771235e+12,
2648 1.525974e+12,
2649 1.286511e+12,
2650 1.050773e+12,
2651 8.433887e+11,
2652 6.513326e+11,
2653 4.870354e+11,
2654 3.408546e+11,
2655 2.303791e+11,
2656 1.548133e+11,
2657 1.032961e+11,
2658 7.179408e+10,
2659 4.858783e+10,
2660 3.274048e+10,
2661 2.405616e+10,
2662 1.899110e+10,
2663 1.621293e+10,
2664 1.469251e+10,
2665 1.347622e+10,
2666 1.230200e+10,
2667 8.840475e+09,
2668 6.323767e+09,
2669 4.596193e+09,
2670 3.287606e+09,
2671 2.377168e+09,
2672 1.756368e+09,
2673 1.362994e+09,
2674 1.104946e+09,
2675 9.766990e+08,
2676 1.162727e+09,
2677 1.489060e+09,
2678 1.588623e+09,
2679 1.595526e+09,
2680 1.590689e+09,
2681 1.383965e+09,
2682 1.051040e+09,
2683 7.481698e+08,
2684 4.932752e+08,
2685 3.214158e+08,
2686 2.306902e+08,
2687 1.510911e+08,
2688 9.909778e+07,
2689 6.133287e+07,
2690 3.915115e+07
2691 };
2692
2693 static const double subarctic_winter_co2_number_density[] = {
2694 9.421500E+15,
2695 8.197200E+15,
2696 7.266600E+15,
2697 6.435000E+15,
2698 5.728800E+15,
2699 5.121600E+15,
2700 4.563900E+15,
2701 4.055700E+15,
2702 3.587100E+15,
2703 3.115200E+15,
2704 2.662770E+15,
2705 2.276340E+15,
2706 1.944690E+15,
2707 1.662870E+15,
2708 1.421640E+15,
2709 1.214730E+15,
2710 1.041480E+15,
2711 8.923200E+14,
2712 7.642800E+14,
2713 6.540600E+14,
2714 5.600100E+14,
2715 4.788300E+14,
2716 4.095300E+14,
2717 3.501300E+14,
2718 2.991450E+14,
2719 2.554860E+14,
2720 1.694220E+14,
2721 1.129590E+14,
2722 7.563600E+13,
2723 5.058900E+13,
2724 3.382500E+13,
2725 2.285910E+13,
2726 1.559580E+13,
2727 1.077780E+13,
2728 7.461300E+12,
2729 5.276700E+12,
2730 2.760120E+12,
2731 1.477740E+12,
2732 7.606500E+11,
2733 3.897300E+11,
2734 2.038080E+11,
2735 1.025656E+11,
2736 4.899200E+10,
2737 2.245640E+10,
2738 8.413200E+09,
2739 2.735850E+09,
2740 7.053200E+08,
2741 1.859400E+08,
2742 6.028000E+07,
2743 2.734900E+07
2744 };
2745
2746 static const double subarctic_winter_h2o_number_density[] = {
2747 4.011275E+16,
2748 4.011660E+16,
2749 3.142254E+16,
2750 2.273700E+16,
2751 1.371093E+16,
2752 6.687568E+15,
2753 3.276327E+15,
2754 1.806630E+15,
2755 3.678408E+14,
2756 2.809344E+14,
2757 1.613800E+14,
2758 6.898000E+13,
2759 3.535800E+13,
2760 2.242355E+13,
2761 1.938600E+13,
2762 1.674855E+13,
2763 1.451760E+13,
2764 1.257360E+13,
2765 1.088520E+13,
2766 9.414500E+12,
2767 8.145601E+12,
2768 7.037350E+12,
2769 6.080900E+12,
2770 5.251950E+12,
2771 4.532500E+12,
2772 3.871000E+12,
2773 2.567000E+12,
2774 1.711500E+12,
2775 1.146000E+12,
2776 7.664999E+11,
2777 5.125000E+11,
2778 3.463500E+11,
2779 2.363000E+11,
2780 1.633000E+11,
2781 1.130500E+11,
2782 7.915050E+10,
2783 4.056540E+10,
2784 2.015100E+10,
2785 9.220000E+09,
2786 3.897300E+09,
2787 1.667520E+09,
2788 6.254000E+08,
2789 2.036230E+08,
2790 6.157400E+07,
2791 1.682640E+07,
2792 5.612000E+06,
2793 2.180080E+06,
2794 8.677201E+05,
2795 3.616800E+05,
2796 1.562800E+05
2797 };
2798
2799 static const double subarctic_winter_n2o_number_density[] = {
2800 8.668140e+12,
2801 7.739916e+12,
2802 6.901681e+12,
2803 6.144645e+12,
2804 5.512017e+12,
2805 4.931596e+12,
2806 4.400583e+12,
2807 3.915893e+12,
2808 3.468693e+12,
2809 3.038020e+12,
2810 2.621092e+12,
2811 2.171835e+12,
2812 1.829967e+12,
2813 1.529407e+12,
2814 1.283705e+12,
2815 1.070062e+12,
2816 8.788074e+11,
2817 6.983265e+11,
2818 5.372835e+11,
2819 3.895462e+11,
2820 2.929755e+11,
2821 2.099503e+11,
2822 1.618661e+11,
2823 1.263534e+11,
2824 1.008791e+11,
2825 7.933885e+10,
2826 4.809152e+10,
2827 2.782457e+10,
2828 1.521961e+10,
2829 8.422330e+09,
2830 4.393388e+09,
2831 2.256680e+09,
2832 1.081246e+09,
2833 4.738579e+08,
2834 2.072821e+08,
2835 7.752757e+07,
2836 2.645093e+07,
2837 9.821666e+06,
2838 3.773166e+06,
2839 1.485922e+06,
2840 5.751077e+05,
2841 2.248728e+05,
2842 8.585935e+04,
2843 3.114779e+04,
2844 1.117941e+04,
2845 4.238545e+03,
2846 1.659986e+03,
2847 7.000864e+02,
2848 3.088078e+02,
2849 1.449376e+02
2850 };
2851
2852 static const double subarctic_winter_no2_number_density[] = {
2853 6.566500E+08,
2854 5.713200E+08,
2855 5.064600E+08,
2856 4.485000E+08,
2857 3.992800E+08,
2858 3.569600E+08,
2859 3.180900E+08,
2860 2.826700E+08,
2861 2.500100E+08,
2862 2.190080E+08,
2863 1.920422E+08,
2864 1.807276E+08,
2865 1.856295E+08,
2866 2.242355E+08,
2867 3.222384E+08,
2868 6.294510E+08,
2869 1.006764E+09,
2870 1.403376E+09,
2871 1.785636E+09,
2872 2.100920E+09,
2873 2.358830E+09,
2874 2.553760E+09,
2875 2.680560E+09,
2876 2.737380E+09,
2877 2.773890E+09,
2878 2.895508E+09,
2879 2.469454E+09,
2880 2.108568E+09,
2881 1.652532E+09,
2882 1.116024E+09,
2883 6.416500E+08,
2884 2.791581E+08,
2885 1.025542E+08,
2886 3.755900E+07,
2887 1.505826E+07,
2888 7.083570E+06,
2889 2.835396E+06,
2890 1.276230E+06,
2891 5.831650E+05,
2892 2.728110E+05,
2893 1.327840E+05,
2894 6.316540E+04,
2895 2.939520E+04,
2896 1.325652E+04,
2897 5.484160E+03,
2898 2.385100E+03,
2899 1.051568E+03,
2900 4.927410E+02,
2901 2.335850E+02,
2902 1.179914E+02
2903 };
2904
2905 static const double subarctic_winter_o2_number_density[] = {
2906 5.966950E+18,
2907 5.191560E+18,
2908 4.602180E+18,
2909 4.075500E+18,
2910 3.628240E+18,
2911 3.243680E+18,
2912 2.890470E+18,
2913 2.568610E+18,
2914 2.271830E+18,
2915 1.972960E+18,
2916 1.686421E+18,
2917 1.441682E+18,
2918 1.231637E+18,
2919 1.053151E+18,
2920 9.003720E+17,
2921 7.693290E+17,
2922 6.596040E+17,
2923 5.651360E+17,
2924 4.840440E+17,
2925 4.142380E+17,
2926 3.546730E+17,
2927 3.032590E+17,
2928 2.593690E+17,
2929 2.217490E+17,
2930 1.894585E+17,
2931 1.618078E+17,
2932 1.073006E+17,
2933 7.154070E+16,
2934 4.790280E+16,
2935 3.203970E+16,
2936 2.142250E+16,
2937 1.447743E+16,
2938 9.877339E+15,
2939 6.825940E+15,
2940 4.725491E+15,
2941 3.341910E+15,
2942 1.748076E+15,
2943 9.359020E+14,
2944 4.817450E+14,
2945 2.468290E+14,
2946 1.290784E+14,
2947 6.535430E+13,
2948 3.062000E+13,
2949 1.376360E+13,
2950 5.608800E+12,
2951 2.244800E+12,
2952 8.976799E+11,
2953 3.718800E+11,
2954 1.416580E+11,
2955 5.665150E+10
2956 };
2957
2958 static const double subarctic_winter_o3_number_density[] = {
2959 5.144710E+11,
2960 5.146847E+11,
2961 5.143872E+11,
2962 5.395650E+11,
2963 5.647208E+11,
2964 5.899152E+11,
2965 6.148818E+11,
2966 8.912709E+11,
2967 1.130480E+12,
2968 1.982400E+12,
2969 2.420700E+12,
2970 2.414300E+12,
2971 2.357200E+12,
2972 3.275350E+12,
2973 3.877200E+12,
2974 4.417200E+12,
2975 4.734000E+12,
2976 5.137600E+12,
2977 5.674200E+12,
2978 6.144200E+12,
2979 6.278900E+12,
2980 5.804000E+12,
2981 5.212200E+12,
2982 4.774500E+12,
2983 4.169900E+12,
2984 3.638740E+12,
2985 2.515660E+12,
2986 1.848420E+12,
2987 1.352280E+12,
2988 9.504599E+11,
2989 6.406250E+11,
2990 4.086930E+11,
2991 2.410260E+11,
2992 1.339060E+11,
2993 6.783000E+10,
2994 4.157400E+10,
2995 1.338240E+10,
2996 4.254100E+09,
2997 1.498250E+09,
2998 5.905000E+08,
2999 2.038080E+08,
3000 4.065100E+07,
3001 1.148250E+08,
3002 5.795200E+07,
3003 2.492800E+07,
3004 5.612000E+06,
3005 1.282400E+06,
3006 1.549500E+05,
3007 7.535000E+03,
3008 3.907000E+02
3009 };
3010
3011 int harp_aux_afgl86_get_profile(const char *name, double datetime, double latitude, int *num_vertical,
3012 const double **values)
3013 {
3014 double fraction_of_year = harp_fraction_of_year_from_datetime(datetime);
3015 enum latitude_band band;
3016 int summer;
3017
3018 if (latitude >= 0.0)
3019 {
3020 /* Northern hemisphere */
3021 summer = (fraction_of_year >= 0.25 && fraction_of_year < 0.75);
3022 }
3023 else
3024 {
3025 /* Southern hemisphere */
3026 summer = (fraction_of_year < 0.25 || fraction_of_year >= 0.75);
3027 }
3028
3029 if (latitude > -30.0 && latitude < 30.0)
3030 {
3031 band = tropic;
3032 }
3033 else if (latitude > 80.0 || latitude < -80.0)
3034 {
3035 band = subarctic;
3036 }
3037 else
3038 {
3039 band = midlat;
3040 }
3041
3042 if (strcmp(name, "altitude") == 0)
3043 {
3044 *values = altitude;
3045 }
3046 else if (strcmp(name, "pressure") == 0)
3047 {
3048 switch (band)
3049 {
3050 case tropic:
3051 *values = tropic_pressure;
3052 break;
3053 case midlat:
3054 *values = summer ? midlat_summer_pressure : midlat_winter_pressure;
3055 break;
3056 case subarctic:
3057 *values = summer ? subarctic_summer_pressure : subarctic_winter_pressure;
3058 break;
3059 }
3060 }
3061 else if (strcmp(name, "temperature") == 0)
3062 {
3063 switch (band)
3064 {
3065 case tropic:
3066 *values = tropic_temperature;
3067 break;
3068 case midlat:
3069 *values = summer ? midlat_summer_temperature : midlat_winter_temperature;
3070 break;
3071 case subarctic:
3072 *values = summer ? subarctic_summer_temperature : subarctic_winter_temperature;
3073 break;
3074 }
3075 }
3076 else if (strcmp(name, "number_density") == 0)
3077 {
3078 switch (band)
3079 {
3080 case tropic:
3081 *values = tropic_air_number_density;
3082 break;
3083 case midlat:
3084 *values = summer ? midlat_summer_air_number_density : midlat_winter_air_number_density;
3085 break;
3086 case subarctic:
3087 *values = summer ? subarctic_summer_air_number_density : subarctic_winter_air_number_density;
3088 break;
3089 }
3090 }
3091 else if (strcmp(name, "CH4_number_density") == 0)
3092 {
3093 switch (band)
3094 {
3095 case tropic:
3096 *values = tropic_ch4_number_density;
3097 break;
3098 case midlat:
3099 *values = summer ? midlat_summer_ch4_number_density : midlat_winter_ch4_number_density;
3100 break;
3101 case subarctic:
3102 *values = summer ? subarctic_summer_ch4_number_density : subarctic_winter_ch4_number_density;
3103 break;
3104 }
3105 }
3106 else if (strcmp(name, "CO_number_density") == 0)
3107 {
3108 switch (band)
3109 {
3110 case tropic:
3111 *values = tropic_co_number_density;
3112 break;
3113 case midlat:
3114 *values = summer ? midlat_summer_co_number_density : midlat_winter_co_number_density;
3115 break;
3116 case subarctic:
3117 *values = summer ? subarctic_summer_co_number_density : subarctic_winter_co_number_density;
3118 break;
3119 }
3120 }
3121 else if (strcmp(name, "CO2_number_density") == 0)
3122 {
3123 switch (band)
3124 {
3125 case tropic:
3126 *values = tropic_co2_number_density;
3127 break;
3128 case midlat:
3129 *values = summer ? midlat_summer_co2_number_density : midlat_winter_co2_number_density;
3130 break;
3131 case subarctic:
3132 *values = summer ? subarctic_summer_co2_number_density : subarctic_winter_co2_number_density;
3133 break;
3134 }
3135 }
3136 else if (strcmp(name, "H2O_number_density") == 0)
3137 {
3138 switch (band)
3139 {
3140 case tropic:
3141 *values = tropic_h2o_number_density;
3142 break;
3143 case midlat:
3144 *values = summer ? midlat_summer_h2o_number_density : midlat_winter_h2o_number_density;
3145 break;
3146 case subarctic:
3147 *values = summer ? subarctic_summer_h2o_number_density : subarctic_winter_h2o_number_density;
3148 break;
3149 }
3150 }
3151 else if (strcmp(name, "N2O_number_density") == 0)
3152 {
3153 switch (band)
3154 {
3155 case tropic:
3156 *values = tropic_n2o_number_density;
3157 break;
3158 case midlat:
3159 *values = summer ? midlat_summer_n2o_number_density : midlat_winter_n2o_number_density;
3160 break;
3161 case subarctic:
3162 *values = summer ? subarctic_summer_n2o_number_density : subarctic_winter_n2o_number_density;
3163 break;
3164 }
3165 }
3166 else if (strcmp(name, "NO2_number_density") == 0)
3167 {
3168 switch (band)
3169 {
3170 case tropic:
3171 *values = tropic_no2_number_density;
3172 break;
3173 case midlat:
3174 *values = summer ? midlat_summer_no2_number_density : midlat_winter_no2_number_density;
3175 break;
3176 case subarctic:
3177 *values = summer ? subarctic_summer_no2_number_density : subarctic_winter_no2_number_density;
3178 break;
3179 }
3180 }
3181 else if (strcmp(name, "O2_number_density") == 0)
3182 {
3183 switch (band)
3184 {
3185 case tropic:
3186 *values = tropic_o2_number_density;
3187 break;
3188 case midlat:
3189 *values = summer ? midlat_summer_o2_number_density : midlat_winter_o2_number_density;
3190 break;
3191 case subarctic:
3192 *values = summer ? subarctic_summer_o2_number_density : subarctic_winter_o2_number_density;
3193 break;
3194 }
3195 }
3196 else if (strcmp(name, "O3_number_density") == 0)
3197 {
3198 switch (band)
3199 {
3200 case tropic:
3201 *values = tropic_o3_number_density;
3202 break;
3203 case midlat:
3204 *values = summer ? midlat_summer_o3_number_density : midlat_winter_o3_number_density;
3205 break;
3206 case subarctic:
3207 *values = summer ? subarctic_summer_o3_number_density : subarctic_winter_o3_number_density;
3208 break;
3209 }
3210 }
3211 else
3212 {
3213 harp_set_error(HARP_ERROR_INVALID_ARGUMENT, "AFGL86 climatology does not have a profile for '%s'", name);
3214 return -1;
3215 }
3216
3217 *num_vertical = 50;
3218
3219 return 0;
3220 }