File: libharp_general.html

package info (click to toggle)
harp 1.5%2Bdata-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 54,032 kB
  • sloc: xml: 286,510; ansic: 143,710; yacc: 1,910; python: 913; makefile: 600; lex: 574; sh: 69
file content (1085 lines) | stat: -rw-r--r-- 73,310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085


<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>General &mdash; HARP 1.5 documentation</title>
  

  
  
  
  

  

  
  
    

  

  <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="_static/custom.css" type="text/css" />
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="next" title="Product" href="libharp_product.html" />
    <link rel="prev" title="Error" href="libharp_error.html" /> 

  
  <script src="_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="index.html" class="icon icon-home"> HARP
          

          
          </a>

          
            
            
              <div class="version">
                1.5
              </div>
            
          

          

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="install.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="conventions/index.html">Conventions</a></li>
<li class="toctree-l1"><a class="reference internal" href="algorithms/index.html">Algorithms</a></li>
<li class="toctree-l1"><a class="reference internal" href="operations.html">Operations</a></li>
<li class="toctree-l1"><a class="reference internal" href="ingestions/index.html">Ingestion definitions</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="libharp.html">C library</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="libharp.html#introduction">Introduction</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="libharp.html#modules">Modules</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="libharp_collocation.html">Collocation</a></li>
<li class="toctree-l3"><a class="reference internal" href="libharp_dataset.html">Dataset</a></li>
<li class="toctree-l3"><a class="reference internal" href="libharp_documentation.html">Documentation</a></li>
<li class="toctree-l3"><a class="reference internal" href="libharp_error.html">Error</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#">General</a></li>
<li class="toctree-l3"><a class="reference internal" href="libharp_product.html">Product</a></li>
<li class="toctree-l3"><a class="reference internal" href="libharp_product_metadata.html">Product Metadata</a></li>
<li class="toctree-l3"><a class="reference internal" href="libharp_variable.html">Variable</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="idl.html">IDL interface</a></li>
<li class="toctree-l1"><a class="reference internal" href="matlab.html">MATLAB interface</a></li>
<li class="toctree-l1"><a class="reference internal" href="python.html">Python interface</a></li>
<li class="toctree-l1"><a class="reference internal" href="tools.html">Command line tools</a></li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">HARP</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="index.html">Docs</a> &raquo;</li>
        
          <li><a href="libharp.html">C library</a> &raquo;</li>
        
      <li>General</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="general">
<h1>General</h1>
<dl class="group">
<dt>
<span class="target" id="group__harp__general"></span><em>group</em> <code class="descname">harp_general</code></dt>
<dd><p>The HARP General module contains all general and miscellaneous functions and procedures of HARP. </p>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Defines</p>
<dl class="macro">
<dt id="c.HARP_NUM_DATA_TYPES">
<span class="target" id="group__harp__general_1ga9d447bb4e021c2cc273ade8d9c7a9086"></span><code class="descname">HARP_NUM_DATA_TYPES</code></dt>
<dd></dd></dl>

<dl class="macro">
<dt id="c.HARP_NUM_DIM_TYPES">
<span class="target" id="group__harp__general_1ga745afa2b5da35e983684ec9d5c6b8641"></span><code class="descname">HARP_NUM_DIM_TYPES</code></dt>
<dd></dd></dl>

</div>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Typedefs</p>
<dl class="type">
<dt id="_CPPv314harp_data_type">
<span id="_CPPv214harp_data_type"></span><span id="harp_data_type"></span><span class="target" id="group__harp__general_1ga3e6679493bcea7a86f5db857b724d626"></span><em class="property">typedef </em><em class="property">enum</em> harp_data_type_enum <code class="descname">harp_data_type</code><br /></dt>
<dd></dd></dl>

<dl class="type">
<dt id="_CPPv311harp_scalar">
<span id="_CPPv211harp_scalar"></span><span id="harp_scalar"></span><span class="target" id="group__harp__general_1ga614d2a182d07f61a78f6c07f206be65b"></span><em class="property">typedef </em><em class="property">union</em> <a class="reference internal" href="#_CPPv317harp_scalar_union" title="harp_scalar_union">harp_scalar_union</a> <code class="descname">harp_scalar</code><br /></dt>
<dd></dd></dl>

<dl class="type">
<dt id="_CPPv310harp_array">
<span id="_CPPv210harp_array"></span><span id="harp_array"></span><span class="target" id="group__harp__general_1gab28d0895c88c16552c09a614a3af128d"></span><em class="property">typedef </em><em class="property">union</em> <a class="reference internal" href="#_CPPv316harp_array_union" title="harp_array_union">harp_array_union</a> <code class="descname">harp_array</code><br /></dt>
<dd></dd></dl>

<dl class="type">
<dt id="_CPPv319harp_dimension_type">
<span id="_CPPv219harp_dimension_type"></span><span id="harp_dimension_type"></span><span class="target" id="group__harp__general_1ga09aa1869c3441f715812f30cd30bc4e0"></span><em class="property">typedef </em><em class="property">enum</em> harp_dimension_type_enum <code class="descname">harp_dimension_type</code><br /></dt>
<dd></dd></dl>

</div>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Enums</p>
<dl class="type">
<dt id="_CPPv3N12harp_general19harp_data_type_enumE">
<span id="_CPPv2N12harp_general19harp_data_type_enumE"></span><span id="harp_general::harp_data_type_enum"></span><span class="target" id="group__harp__general_1ga580990f8c0e1539578c35c71394c13b8"></span><em class="property">enum </em><code class="descname">harp_data_type_enum</code><br /></dt>
<dd><p><em>Values:</em></p>
<dl class="enumerator">
<dt id="_CPPv3N12harp_general14harp_type_int8E">
<span id="_CPPv2N12harp_general14harp_type_int8E"></span><span class="target" id="group__harp__general_1gga580990f8c0e1539578c35c71394c13b8a6ea1a29087267f166b4051a18c462567"></span><code class="descname">harp_type_int8</code><br /></dt>
<dd><p>BYTE </p>
</dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general15harp_type_int16E">
<span id="_CPPv2N12harp_general15harp_type_int16E"></span><span class="target" id="group__harp__general_1gga580990f8c0e1539578c35c71394c13b8a356bfcd65137fcd06a83b8738bf8565a"></span><code class="descname">harp_type_int16</code><br /></dt>
<dd><p>INTEGER </p>
</dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general15harp_type_int32E">
<span id="_CPPv2N12harp_general15harp_type_int32E"></span><span class="target" id="group__harp__general_1gga580990f8c0e1539578c35c71394c13b8ac67b47d1c1d3f3b3d567d0e593c625ca"></span><code class="descname">harp_type_int32</code><br /></dt>
<dd><p>LONG </p>
</dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general15harp_type_floatE">
<span id="_CPPv2N12harp_general15harp_type_floatE"></span><span class="target" id="group__harp__general_1gga580990f8c0e1539578c35c71394c13b8a16defd7698fa568a45f3924889f1df4d"></span><code class="descname">harp_type_float</code><br /></dt>
<dd><p>FLOAT </p>
</dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general16harp_type_doubleE">
<span id="_CPPv2N12harp_general16harp_type_doubleE"></span><span class="target" id="group__harp__general_1gga580990f8c0e1539578c35c71394c13b8a9bf51666946a319e65285fba8c9f841c"></span><code class="descname">harp_type_double</code><br /></dt>
<dd><p>DOUBLE </p>
</dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general16harp_type_stringE">
<span id="_CPPv2N12harp_general16harp_type_stringE"></span><span class="target" id="group__harp__general_1gga580990f8c0e1539578c35c71394c13b8a4905027039bfc016c4747810c8041f00"></span><code class="descname">harp_type_string</code><br /></dt>
<dd><p>STRING </p>
</dd></dl>

</dd></dl>

<dl class="type">
<dt id="_CPPv3N12harp_general24harp_dimension_type_enumE">
<span id="_CPPv2N12harp_general24harp_dimension_type_enumE"></span><span id="harp_general::harp_dimension_type_enum"></span><span class="target" id="group__harp__general_1ga8ba37626d488a9335d5f0a6f233bf744"></span><em class="property">enum </em><code class="descname">harp_dimension_type_enum</code><br /></dt>
<dd><p><em>Values:</em></p>
<dl class="enumerator">
<dt id="_CPPv3N12harp_general26harp_dimension_independentE">
<span id="_CPPv2N12harp_general26harp_dimension_independentE"></span><span class="target" id="group__harp__general_1gga8ba37626d488a9335d5f0a6f233bf744a212acf3790da31ff1d3e4ec6d351fb54"></span><code class="descname">harp_dimension_independent</code> = -1<br /></dt>
<dd></dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general19harp_dimension_timeE">
<span id="_CPPv2N12harp_general19harp_dimension_timeE"></span><span class="target" id="group__harp__general_1gga8ba37626d488a9335d5f0a6f233bf744ad3689d56a28fcb601b2e5e87c1344ce8"></span><code class="descname">harp_dimension_time</code><br /></dt>
<dd></dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general23harp_dimension_latitudeE">
<span id="_CPPv2N12harp_general23harp_dimension_latitudeE"></span><span class="target" id="group__harp__general_1gga8ba37626d488a9335d5f0a6f233bf744a5d9ca65f783666a65ef1b4db004157ce"></span><code class="descname">harp_dimension_latitude</code><br /></dt>
<dd></dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general24harp_dimension_longitudeE">
<span id="_CPPv2N12harp_general24harp_dimension_longitudeE"></span><span class="target" id="group__harp__general_1gga8ba37626d488a9335d5f0a6f233bf744a78850d1e9182848e7a244440c60f1336"></span><code class="descname">harp_dimension_longitude</code><br /></dt>
<dd></dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general23harp_dimension_verticalE">
<span id="_CPPv2N12harp_general23harp_dimension_verticalE"></span><span class="target" id="group__harp__general_1gga8ba37626d488a9335d5f0a6f233bf744a5ac5074d38b2138eb18fd0cb0f4a58bd"></span><code class="descname">harp_dimension_vertical</code><br /></dt>
<dd></dd></dl>

<dl class="enumerator">
<dt id="_CPPv3N12harp_general23harp_dimension_spectralE">
<span id="_CPPv2N12harp_general23harp_dimension_spectralE"></span><span class="target" id="group__harp__general_1gga8ba37626d488a9335d5f0a6f233bf744a48489fcca5d4dca5f70ffb9975d9ebe6"></span><code class="descname">harp_dimension_spectral</code><br /></dt>
<dd></dd></dl>

</dd></dl>

</div>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Functions</p>
<dl class="function">
<dt id="_CPPv326harp_set_udunits2_xml_pathPKc">
<span id="_CPPv226harp_set_udunits2_xml_pathPKc"></span><span id="harp_set_udunits2_xml_path__cCP"></span><span class="target" id="group__harp__general_1ga92af8b1a8aaca9b9e665d35a0dad0895"></span>int <code class="descname">harp_set_udunits2_xml_path</code><span class="sig-paren">(</span><em class="property">const</em> char *<em>path</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Set the location of the udunits2 unit conversion xml configuration file.</p>
<p>This function should be called before <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> is called.</p>
<p>The HARP C library uses the udunits2 library to perform unit conversions. The xml configuration files for udunits2 are included with a HARP installation and a default absolute path to these xml files is built into the library.</p>
<p>If the HARP installation ends up in a different location on disk compared to what was provided at build time then you will either need to set the UDUNITS2_XML_PATH environment variable or call one of the functions <a class="reference internal" href="#group__harp__general_1ga92af8b1a8aaca9b9e665d35a0dad0895"><span class="std std-ref">harp_set_udunits2_xml_path()</span></a> or <a class="reference internal" href="#group__harp__general_1gab35a6e458ae75f777ceef7006244183d"><span class="std std-ref">harp_set_udunits2_xml_path_conditional()</span></a> to set the path programmatically.</p>
<p>The path should be an absolute path to the udunits2.xml file that was included with the HARP installation.</p>
<p>Specifying a path using this function will prevent HARP from using the UDUNITS2_XML_PATH environment variable. If you still want HARP to acknowledge the UDUNITS2_XML_PATH environment variable then use something like this in your code: <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">if</span> <span class="p">(</span><span class="n">getenv</span><span class="p">(</span><span class="s2">&quot;UDUNITS2_XML_PATH&quot;</span><span class="p">)</span> <span class="o">==</span> <span class="n">NULL</span><span class="p">)</span>
<span class="p">{</span>
    <span class="n">harp_set_udunits2_xml_path</span><span class="p">(</span><span class="s2">&quot;&lt;your path&gt;&quot;</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
</div>
</p>
<p><dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">path</span></code>: Absolute path to the udunits2.xml file </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv338harp_set_udunits2_xml_path_conditionalPKcPKcPKc">
<span id="_CPPv238harp_set_udunits2_xml_path_conditionalPKcPKcPKc"></span><span id="harp_set_udunits2_xml_path_conditional__cCP.cCP.cCP"></span><span class="target" id="group__harp__general_1gab35a6e458ae75f777ceef7006244183d"></span>int <code class="descname">harp_set_udunits2_xml_path_conditional</code><span class="sig-paren">(</span><em class="property">const</em> char *<em>file</em>, <em class="property">const</em> char *<em>searchpath</em>, <em class="property">const</em> char *<em>relative_location</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Set the location of the udunits2 xml configuration file based on the location of another file.</p>
<p>This function should be called before <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> is called.</p>
<p>The HARP C library uses the udunits2 library to perform unit conversions. The xml configuration files for udunits2 are included with a HARP installation and a default absolute path to the main xml file is built into the library.</p>
<p>If the HARP installation ends up in a different location on disk compared to what was provided at build time then you will either need to set the UDUNITS2_XML_PATH environment variable or call one of the functions <a class="reference internal" href="#group__harp__general_1ga92af8b1a8aaca9b9e665d35a0dad0895"><span class="std std-ref">harp_set_udunits2_xml_path()</span></a> or <a class="reference internal" href="#group__harp__general_1gab35a6e458ae75f777ceef7006244183d"><span class="std std-ref">harp_set_udunits2_xml_path_conditional()</span></a> to set the path programmatically.</p>
<p>This function will try to find the file with filename <em>file</em> in the provided searchpath <em>searchpath</em>. The first directory in the searchpath where the file <em>file</em> exists will be appended with the relative location <em>relative_location</em> to determine the udunits2 xml path. If the file to search for could not be found in the searchpath then the HARP udunits2 xml path will not be set.</p>
<p>If the UDUNITS2_XML_PATH environment variable was set then this function will not perform a search or set the udunits2 xml path (i.e. the udunits2 xml path will be taken from the UDUNITS2_XML_PATH variable).</p>
<p>If you provide NULL for <em>searchpath</em> then the PATH environment variable will be used as searchpath. For instance, you can use harp_set_udunits2_xml_path_conditional(argv[0], NULL, “../somedir/udunits2.xml”) to set the udunits2 xml path to a location relative to the location of your executable.</p>
<p>The searchpath, if provided, should have a similar format as the PATH environment variable of your system. Path components should be separated by ‘;’ on Windows and by ‘:’ on other systems.</p>
<p>The <em>relative_location</em> parameter should point to the udunits2.xml file itself (and not the directory that the file is in).</p>
<p>Note that this function differs from <a class="reference internal" href="#group__harp__general_1ga92af8b1a8aaca9b9e665d35a0dad0895"><span class="std std-ref">harp_set_udunits2_xml_path()</span></a> in that it will not modify the udunits2 xml path if the UDUNITS2_XML_PATH variable was set.</p>
<p><dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">file</span></code>: Filename of the file to search for </li>
<li><code class="docutils literal notranslate"><span class="pre">searchpath</span></code>: Search path where to look for the file <em>file</em> (can be NULL) </li>
<li><code class="docutils literal notranslate"><span class="pre">relative_location</span></code>: Filepath relative to the directory from <em>searchpath</em> where <em>file</em> was found that provides the location of the udunits2.xml file. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv317harp_convert_unitPKcPKclPd">
<span id="_CPPv217harp_convert_unitPKcPKclPd"></span><span id="harp_convert_unit__cCP.cCP.l.doubleP"></span><span class="target" id="group__harp__general_1gaf2f2e7ffc3090f796385669ed69f92e9"></span>int <code class="descname">harp_convert_unit</code><span class="sig-paren">(</span><em class="property">const</em> char *<em>from_unit</em>, <em class="property">const</em> char *<em>to_unit</em>, long <em>num_values</em>, double *<em>value</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Perform unit conversion on data</p>
<p>Apply unit conversion on a range of floating point values. Conversion will be performed in-place. If there is no conversion available from the current unit to the new unit then an error will be raised. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">from_unit</span></code>: Existing unit of the data that should be converted (use udunits2 compliant units). </li>
<li><code class="docutils literal notranslate"><span class="pre">to_unit</span></code>: Unit to which the data should be converted (use udunits2 compliant units). </li>
<li><code class="docutils literal notranslate"><span class="pre">num_values</span></code>: Number of floating point values in <em>value</em>. </li>
<li><code class="docutils literal notranslate"><span class="pre">value</span></code>: Array of floating point values that should be converted. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv313harp_basenamePKc">
<span id="_CPPv213harp_basenamePKc"></span><span id="harp_basename__cCP"></span><span class="target" id="group__harp__general_1ga96d2dcbea0ae2ee275bdb7113980ae92"></span><em class="property">const</em> char *<code class="descname">harp_basename</code><span class="sig-paren">(</span><em class="property">const</em> char *<em>path</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Remove everything but the last pathname component from <em>path</em>. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd>Pointer to the last pathname component of <em>path</em>, i.e. everything from the end of <em>path</em> up to the first pathname component separation character (‘’ or ‘/’ on Windows, ‘/’ otherwise). </dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">path</span></code>: Path to compute the basename of. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv323harp_get_data_type_name14harp_data_type">
<span id="_CPPv223harp_get_data_type_name14harp_data_type"></span><span id="harp_get_data_type_name__harp_data_type"></span><span class="target" id="group__harp__general_1gaffceeeef4a5b49917a355539ffb18980"></span><em class="property">const</em> char *<code class="descname">harp_get_data_type_name</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv314harp_data_type" title="harp_data_type">harp_data_type</a> <em>data_type</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Returns the name of a data type. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd>if the data type is known a string containing the name of the type, otherwise the string “unknown”. </dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">data_type</span></code>: HARP basic data type </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv322harp_get_size_for_type14harp_data_type">
<span id="_CPPv222harp_get_size_for_type14harp_data_type"></span><span id="harp_get_size_for_type__harp_data_type"></span><span class="target" id="group__harp__general_1ga04e7afdfba69e2ee2596bfed9dc87355"></span>long <code class="descname">harp_get_size_for_type</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv314harp_data_type" title="harp_data_type">harp_data_type</a> <em>data_type</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve the byte size for a HARP data type. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd>The size of the data type in bytes. </dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">data_type</span></code>: Data type for which to retrieve the size. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv328harp_get_fill_value_for_type14harp_data_type">
<span id="_CPPv228harp_get_fill_value_for_type14harp_data_type"></span><span id="harp_get_fill_value_for_type__harp_data_type"></span><span class="target" id="group__harp__general_1ga00efcbd66b05ad34562435771e600341"></span><a class="reference internal" href="#_CPPv311harp_scalar" title="harp_scalar">harp_scalar</a> <code class="descname">harp_get_fill_value_for_type</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv314harp_data_type" title="harp_data_type">harp_data_type</a> <em>data_type</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve the fill value for a HARP data type. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd>The fill value for the data type. </dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">data_type</span></code>: Data type for which to retrieve the fill value. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv327harp_get_valid_min_for_type14harp_data_type">
<span id="_CPPv227harp_get_valid_min_for_type14harp_data_type"></span><span id="harp_get_valid_min_for_type__harp_data_type"></span><span class="target" id="group__harp__general_1ga854ceb4ea5b4953cfa94a0b738bdbee5"></span><a class="reference internal" href="#_CPPv311harp_scalar" title="harp_scalar">harp_scalar</a> <code class="descname">harp_get_valid_min_for_type</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv314harp_data_type" title="harp_data_type">harp_data_type</a> <em>data_type</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve the minimum valid value for a HARP data type. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd>The minimum valid value of the data type. </dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">data_type</span></code>: Data type for which to retrieve the minimum valid value. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv327harp_get_valid_max_for_type14harp_data_type">
<span id="_CPPv227harp_get_valid_max_for_type14harp_data_type"></span><span id="harp_get_valid_max_for_type__harp_data_type"></span><span class="target" id="group__harp__general_1ga0161b0bb8622db439ce702d125855de9"></span><a class="reference internal" href="#_CPPv311harp_scalar" title="harp_scalar">harp_scalar</a> <code class="descname">harp_get_valid_max_for_type</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv314harp_data_type" title="harp_data_type">harp_data_type</a> <em>data_type</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve the maximum valid value for a HARP data type. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd>The maximum valid value of the data type. </dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">data_type</span></code>: Data type for which to retrieve the maximum valid value. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv327harp_is_fill_value_for_type14harp_data_type11harp_scalar">
<span id="_CPPv227harp_is_fill_value_for_type14harp_data_type11harp_scalar"></span><span id="harp_is_fill_value_for_type__harp_data_type.harp_scalar"></span><span class="target" id="group__harp__general_1gaffeedbea853fee203d4555664225e261"></span>int <code class="descname">harp_is_fill_value_for_type</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv314harp_data_type" title="harp_data_type">harp_data_type</a> <em>data_type</em>, <a class="reference internal" href="#_CPPv311harp_scalar" title="harp_scalar">harp_scalar</a> <em>value</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Test if <em>value</em> equals the fill value for the specified data type. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Value is not equal to the fill value. </li>
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, Value equals the fill value. </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">data_type</span></code>: Data type corresponding to the value of <em>value</em>. </li>
<li><code class="docutils literal notranslate"><span class="pre">value</span></code>: Value to test. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv326harp_is_valid_min_for_type14harp_data_type11harp_scalar">
<span id="_CPPv226harp_is_valid_min_for_type14harp_data_type11harp_scalar"></span><span id="harp_is_valid_min_for_type__harp_data_type.harp_scalar"></span><span class="target" id="group__harp__general_1ga43fde638ad814bb4a88c2e63ab06deca"></span>int <code class="descname">harp_is_valid_min_for_type</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv314harp_data_type" title="harp_data_type">harp_data_type</a> <em>data_type</em>, <a class="reference internal" href="#_CPPv311harp_scalar" title="harp_scalar">harp_scalar</a> <em>value</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Test if <em>value</em> equals the minimum valid value for the specified data type. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Value is not equal to the minimum valid value. </li>
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, Value equals the minimum valid value. </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">data_type</span></code>: Data type corresponding to the value of <em>value</em>. </li>
<li><code class="docutils literal notranslate"><span class="pre">value</span></code>: Value to test. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv326harp_is_valid_max_for_type14harp_data_type11harp_scalar">
<span id="_CPPv226harp_is_valid_max_for_type14harp_data_type11harp_scalar"></span><span id="harp_is_valid_max_for_type__harp_data_type.harp_scalar"></span><span class="target" id="group__harp__general_1gace82158c05757551242151c4cb8709f6"></span>int <code class="descname">harp_is_valid_max_for_type</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv314harp_data_type" title="harp_data_type">harp_data_type</a> <em>data_type</em>, <a class="reference internal" href="#_CPPv311harp_scalar" title="harp_scalar">harp_scalar</a> <em>value</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Test if <em>value</em> equals the maximum valid value for the specified data type. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Value is not equal to the maximum valid value. </li>
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, Value equals the maximum valid value. </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">data_type</span></code>: Data type corresponding to the value of <em>value</em>. </li>
<li><code class="docutils literal notranslate"><span class="pre">value</span></code>: Value to test. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv313harp_isfinited">
<span id="_CPPv213harp_isfinited"></span><span id="harp_isfinite__double"></span><span class="target" id="group__harp__general_1gab2573bc2856e63bf0f13c342c97fcc74"></span>int <code class="descname">harp_isfinite</code><span class="sig-paren">(</span>double <em>x</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Find out whether a double value is a finite number (i.e. not NaN and not infinite). <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, The double value is a finite number. </li>
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, The double value is not a finite number. </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">x</span></code>: A double value. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv310harp_isnand">
<span id="_CPPv210harp_isnand"></span><span id="harp_isnan__double"></span><span class="target" id="group__harp__general_1gabc115e3ba02afd21054b75ccb025a8a3"></span>int <code class="descname">harp_isnan</code><span class="sig-paren">(</span>double <em>x</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Find out whether a double value equals NaN (Not a Number). <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, The double value equals NaN. </li>
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, The double value does not equal NaN. </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">x</span></code>: A double value. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv38harp_nanv">
<span id="_CPPv28harp_nanv"></span><span id="harp_nan__void"></span><span class="target" id="group__harp__general_1ga10caef8ce343d5b5bec3b8240441ef86"></span>double <code class="descname">harp_nan</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve a double value that respresents NaN (Not a Number). <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd>The double value ‘NaN’. </dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv310harp_isinfd">
<span id="_CPPv210harp_isinfd"></span><span id="harp_isinf__double"></span><span class="target" id="group__harp__general_1ga29b220390a28440d8f4f8e50afcdbd0a"></span>int <code class="descname">harp_isinf</code><span class="sig-paren">(</span>double <em>x</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Find out whether a double value equals inf (either positive or negative infinity). <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, The double value equals inf. </li>
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, The double value does not equal inf. </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">x</span></code>: A double value. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv314harp_isplusinfd">
<span id="_CPPv214harp_isplusinfd"></span><span id="harp_isplusinf__double"></span><span class="target" id="group__harp__general_1gae3a1e45bedf7743577d367ba7edb9f27"></span>int <code class="descname">harp_isplusinf</code><span class="sig-paren">(</span>double <em>x</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Find out whether a double value equals +inf (positive infinity). <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, The double value equals +inf. </li>
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, The double value does not equal +inf. </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">x</span></code>: A double value. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv313harp_ismininfd">
<span id="_CPPv213harp_ismininfd"></span><span id="harp_ismininf__double"></span><span class="target" id="group__harp__general_1gad3a45b9aefba353096685388531e7012"></span>int <code class="descname">harp_ismininf</code><span class="sig-paren">(</span>double <em>x</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Find out whether a double value equals -inf (negative infinity). <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, The double value equals -inf. </li>
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, The double value does not equal -inf. </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">x</span></code>: A double value. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv312harp_plusinfv">
<span id="_CPPv212harp_plusinfv"></span><span id="harp_plusinf__void"></span><span class="target" id="group__harp__general_1gadbfd3aa6ed1b7743899a67399971620f"></span>double <code class="descname">harp_plusinf</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve a double value that respresents +inf (positive infinity). <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd>The double value ‘+inf’. </dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv311harp_mininfv">
<span id="_CPPv211harp_mininfv"></span><span id="harp_mininf__void"></span><span class="target" id="group__harp__general_1ga0d6fdf4326a386b00e7f68851b450581"></span>double <code class="descname">harp_mininf</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve a double value that respresents -inf (negative infinity). <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd>The double value ‘-inf’. </dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv310harp_str647int64_tPc">
<span id="_CPPv210harp_str647int64_tPc"></span><span id="harp_str64__int64_t.cP"></span><span class="target" id="group__harp__general_1ga98bdd4f3fd3e7c913342fb4e781a375b"></span>void <code class="descname">harp_str64</code><span class="sig-paren">(</span>int64_t <em>a</em>, char *<em>s</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Write 64 bit signed integer to a string. The string <em>s</em> will be 0 terminated. <dl class="docutils">
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">a</span></code>: A signed 64 bit integer value. </li>
<li><code class="docutils literal notranslate"><span class="pre">s</span></code>: A character buffer that is at least 21 bytes long. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv311harp_str64u8uint64_tPc">
<span id="_CPPv211harp_str64u8uint64_tPc"></span><span id="harp_str64u__uint64_t.cP"></span><span class="target" id="group__harp__general_1gac156193e67edb52e1f940780c351f47c"></span>void <code class="descname">harp_str64u</code><span class="sig-paren">(</span>uint64_t <em>a</em>, char *<em>s</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Write 64 bit unsigned integer to a string. The string <em>s</em> will be 0 terminated. <dl class="docutils">
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">a</span></code>: An unsigned 64 bit integer value. </li>
<li><code class="docutils literal notranslate"><span class="pre">s</span></code>: A character buffer that is at least 21 bytes long. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv329harp_set_coda_definition_pathPKc">
<span id="_CPPv229harp_set_coda_definition_pathPKc"></span><span id="harp_set_coda_definition_path__cCP"></span><span class="target" id="group__harp__general_1gab1b7664358a26d101ff84cafbfe486db"></span>int <code class="descname">harp_set_coda_definition_path</code><span class="sig-paren">(</span><em class="property">const</em> char *<em>path</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Set the search path for CODA product definition files. This function should be called before <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> is called.</p>
<p>The CODA C library is used by the HARP C library for import of products that do not use the HARP format. To access data in a product, the CODA C library requires a definition of the internal structure of the product file (unless the product is stored in a self-describing file format). This information is stored in CODA product definition (.codadef) files.</p>
<p>The path should be a searchpath for CODA .codadef files similar like the PATH environment variable of your system. Path components should be separated by ‘;’ on Windows and by ‘:’ on other systems.</p>
<p>The path may contain both references to files and directories. CODA will load all .codadef files in the path. Any specified files should be valid .codadef files. For directories, CODA will (non-recursively) search the directory for all .codadef files.</p>
<p>If multiple files for the same product class exist in the path, CODA will only use the one with the highest revision number (this is normally equal to a last modification date that is stored in a .codadef file). If there are two files for the same product class with identical revision numbers, CODA will use the definitions of the first .codadef file in the path and ingore the second one.</p>
<p>Specifying a path using this function will prevent CODA from using the CODA_DEFINITION environment variable. If you still want CODA to acknowledge the CODA_DEFINITION environment variable then use something like this in your code: <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">if</span> <span class="p">(</span><span class="n">getenv</span><span class="p">(</span><span class="s2">&quot;CODA_DEFINITION&quot;</span><span class="p">)</span> <span class="o">==</span> <span class="n">NULL</span><span class="p">)</span>
<span class="p">{</span>
    <span class="n">harp_set_coda_definition_path</span><span class="p">(</span><span class="s2">&quot;&lt;your path&gt;&quot;</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
</div>
</p>
<p><dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">path</span></code>: Search path for .codadef files </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv341harp_set_coda_definition_path_conditionalPKcPKcPKc">
<span id="_CPPv241harp_set_coda_definition_path_conditionalPKcPKcPKc"></span><span id="harp_set_coda_definition_path_conditional__cCP.cCP.cCP"></span><span class="target" id="group__harp__general_1ga679243ffdd37971e1d8ff63d498df560"></span>int <code class="descname">harp_set_coda_definition_path_conditional</code><span class="sig-paren">(</span><em class="property">const</em> char *<em>file</em>, <em class="property">const</em> char *<em>searchpath</em>, <em class="property">const</em> char *<em>relative_location</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Set the directory for CODA product definition files based on the location of another file. This function should be called before <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> is called.</p>
<p>The CODA C library is used by the HARP C library for import of products that do not use the HARP format. To access data in a product, the CODA C library requires a definition of the internal structure of the product file (unless the product is stored in a self-describing file format). This information is stored in CODA product definition (.codadef) files.</p>
<p>This function will try to find the file with filename <em>file</em> in the provided searchpath <em>searchpath</em>. The first directory in the searchpath where the file <em>file</em> exists will be appended with the relative directory <em>relative_location</em> to determine the CODA product definition path. This path will be used as CODA definition path. If the file could not be found in the searchpath then the CODA definition path will not be set.</p>
<p>If the CODA_DEFINITION environment variable was set then this function will not perform a search or set the definition path (i.e. the CODA definition path will be taken from the CODA_DEFINITION variable).</p>
<p>If you provide NULL for <em>searchpath</em> then the PATH environment variable will be used as searchpath. For instance, you can use harp_set_coda_definition_path_conditional(argv[0], NULL, “../somedir”) to set the CODA definition path to a location relative to the location of your executable.</p>
<p>The searchpath, if provided, should have a similar format as the PATH environment variable of your system. Path components should be separated by ‘;’ on Windows and by ‘:’ on other systems.</p>
<p>The <em>relative_location</em> parameter can point either to a directory (in which case all .codadef files in this directory will be used) or to a single .codadef file.</p>
<p>Note that this function differs from <a class="reference internal" href="#group__harp__general_1gab1b7664358a26d101ff84cafbfe486db"><span class="std std-ref">harp_set_coda_definition_path()</span></a> in two important ways:<ul class="simple">
<li>it will not modify the definition path if the CODA_DEFINITION variable was set</li>
<li>it will set the definition path to just a single location (either a single file or a single directory)</li>
</ul>
</p>
<p><dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">file</span></code>: Filename of the file to search for </li>
<li><code class="docutils literal notranslate"><span class="pre">searchpath</span></code>: Search path where to look for the file <em>file</em> (can be NULL) </li>
<li><code class="docutils literal notranslate"><span class="pre">relative_location</span></code>: Filepath relative to the directory from <em>searchpath</em> where <em>file</em> was found that should be used to determine the CODA definition path. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv333harp_set_option_enable_aux_afgl86i">
<span id="_CPPv233harp_set_option_enable_aux_afgl86i"></span><span id="harp_set_option_enable_aux_afgl86__i"></span><span class="target" id="group__harp__general_1ga38646e2cec16b6d94f143af90de664af"></span>int <code class="descname">harp_set_option_enable_aux_afgl86</code><span class="sig-paren">(</span>int <em>enable</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Enable/Disable the use of AFGL86 climatology in variable conversions Enabling this option will allow the derived variable functions to create variables using the built-in AFGL86 profiles. If datetime, latitude, and altitude variables are available then altitude regridded versions of the following climatological quantities can be created:<ul class="simple">
<li>pressure</li>
<li>temperature</li>
<li>number_density (of air)</li>
<li>CH4_number_density</li>
<li>CO_number_density</li>
<li>CO2_number_density</li>
<li>H2O_number_density</li>
<li>N2O_number_density</li>
<li>NO2_number_density</li>
<li>O2_number_density</li>
<li>O3_number_density By default the use of AFGL86 is disabled. The use of AFGL86 can also be enabled by setting the HARP_AUX_AFGL86 environment variable. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul>
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last">
<li><code class="docutils literal notranslate"><span class="pre">enable</span></code>: <ul>
<li>0: Disable use of AFGL86. </li>
<li>1: Enable use of AFGL86. </li>
</ul>
</li>
</ul>
</dd>
</dl>
</li>
</ul>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv333harp_get_option_enable_aux_afgl86v">
<span id="_CPPv233harp_get_option_enable_aux_afgl86v"></span><span id="harp_get_option_enable_aux_afgl86__void"></span><span class="target" id="group__harp__general_1gadef7f0b01e01812bc2707d5ce186cb7f"></span>int <code class="descname">harp_get_option_enable_aux_afgl86</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve the current setting for the usage of AFGL86 option. <dl class="docutils">
<dt><strong>See</strong></dt>
<dd><a class="reference internal" href="#group__harp__general_1ga38646e2cec16b6d94f143af90de664af"><span class="std std-ref">harp_set_option_enable_aux_afgl86()</span></a> </dd>
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Use of AFGL86 is disabled. </li>
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, Use of AFGL86 is enabled. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv334harp_set_option_enable_aux_usstd76i">
<span id="_CPPv234harp_set_option_enable_aux_usstd76i"></span><span id="harp_set_option_enable_aux_usstd76__i"></span><span class="target" id="group__harp__general_1ga70782e2ade60c7f06549d379b523e203"></span>int <code class="descname">harp_set_option_enable_aux_usstd76</code><span class="sig-paren">(</span>int <em>enable</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Enable/Disable the use of US Standard 76 climatology in variable conversions Enabling this option will allow the derived variable functions to create variables using the built-in US Standard 76 profiles. If an altitude variable is available then altitude regridded versions of the following climatological quantities can be created:<ul class="simple">
<li>pressure</li>
<li>temperature</li>
<li>number_density (of air)</li>
<li>CH4_number_density</li>
<li>CO_number_density</li>
<li>CO2_number_density</li>
<li>H2O_number_density</li>
<li>N2O_number_density</li>
<li>NO2_number_density</li>
<li>O2_number_density</li>
<li>O3_number_density By default the use of US Standard 76 is disabled. The use of US Standard 76 can also be enabled by setting the HARP_AUX_USSTD76 environment variable. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul>
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last">
<li><code class="docutils literal notranslate"><span class="pre">enable</span></code>: <ul>
<li>0: Disable use of US Standard 76. </li>
<li>1: Enable use of US Standard 76. </li>
</ul>
</li>
</ul>
</dd>
</dl>
</li>
</ul>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv334harp_get_option_enable_aux_usstd76v">
<span id="_CPPv234harp_get_option_enable_aux_usstd76v"></span><span id="harp_get_option_enable_aux_usstd76__void"></span><span class="target" id="group__harp__general_1ga7327c3e52a6e791c454966519f74ea10"></span>int <code class="descname">harp_get_option_enable_aux_usstd76</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve the current setting for the usage of US Standard 76 option. <dl class="docutils">
<dt><strong>See</strong></dt>
<dd><a class="reference internal" href="#group__harp__general_1ga70782e2ade60c7f06549d379b523e203"><span class="std std-ref">harp_set_option_enable_aux_usstd76()</span></a> </dd>
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Use of US Standard 76 is disabled. </li>
<li><code class="docutils literal notranslate"><span class="pre">1</span></code>, Use of US Standard 76 is enabled. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv332harp_set_option_hdf5_compressioni">
<span id="_CPPv232harp_set_option_hdf5_compressioni"></span><span id="harp_set_option_hdf5_compression__i"></span><span class="target" id="group__harp__general_1ga37df50bf61d353f47a60cda03c920f36"></span>int <code class="descname">harp_set_option_hdf5_compression</code><span class="sig-paren">(</span>int <em>level</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Set the compression level to use for storing variables in HDF5 files. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">level</span></code>: The compression level (1=low, …, 9=high) or 0 to disable compression. </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv332harp_get_option_hdf5_compressionv">
<span id="_CPPv232harp_get_option_hdf5_compressionv"></span><span id="harp_get_option_hdf5_compression__void"></span><span class="target" id="group__harp__general_1ga6de1b72347e2a6e4c5ee86f098f32376"></span>int <code class="descname">harp_get_option_hdf5_compression</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve the compression level that is used for storing variables in HDF5 files. <dl class="docutils">
<dt><strong>See</strong></dt>
<dd><a class="reference internal" href="#group__harp__general_1ga37df50bf61d353f47a60cda03c920f36"><span class="std std-ref">harp_set_option_hdf5_compression()</span></a> </dd>
<dt><strong>Return</strong></dt>
<dd>0=disabled, 1=low, …, 9=high </dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv336harp_set_option_regrid_out_of_boundsi">
<span id="_CPPv236harp_set_option_regrid_out_of_boundsi"></span><span id="harp_set_option_regrid_out_of_bounds__i"></span><span class="target" id="group__harp__general_1ga83bdb60fc511d16c19e7c51d48aae84d"></span>int <code class="descname">harp_set_option_regrid_out_of_bounds</code><span class="sig-paren">(</span>int <em>method</em><span class="sig-paren">)</span><br /></dt>
<dd><p>Set how to treat out of bound values during regridding operations. This is only applicable for point interpolation regridding. Any point that falls outside the target grid can be either set to NaN (the default), set to the nearest edge value, or set based on extrapolation (of two nearest points). This global HARP option determines which of the three cases will be used. <dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
<dt><strong>Parameters</strong></dt>
<dd><ul class="breatheparameterlist first last simple">
<li><code class="docutils literal notranslate"><span class="pre">method</span></code>: <ul>
<li>0: Set values outside source grid to NaN </li>
<li>1: Set value outside source grid to edge value (=min/max of source grid) </li>
<li>2: Extrapolate based on nearest two edge values </li>
</ul>
</li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv336harp_get_option_regrid_out_of_boundsv">
<span id="_CPPv236harp_get_option_regrid_out_of_boundsv"></span><span id="harp_get_option_regrid_out_of_bounds__void"></span><span class="target" id="group__harp__general_1ga6119ed7d2ec68bdddb35845cd663fbef"></span>int <code class="descname">harp_get_option_regrid_out_of_bounds</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><br /></dt>
<dd><p>Retrieve the current setting for treating out of bound values during regridding operations. <dl class="docutils">
<dt><strong>See</strong></dt>
<dd><a class="reference internal" href="#group__harp__general_1ga83bdb60fc511d16c19e7c51d48aae84d"><span class="std std-ref">harp_set_option_regrid_out_of_bounds()</span></a> </dd>
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code> Set values outside source grid to NaN </li>
<li><code class="docutils literal notranslate"><span class="pre">1</span></code> Set value outside source grid to edge value (=min/max of source grid) </li>
<li><code class="docutils literal notranslate"><span class="pre">2</span></code> Extrapolate based on nearest two edge values </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv39harp_initv">
<span id="_CPPv29harp_initv"></span><span id="harp_init__void"></span><span class="target" id="group__harp__general_1gad1f344feb3bea74322283efca649a045"></span>int <code class="descname">harp_init</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><br /></dt>
<dd><p>Initializes the HARP C library. This function should be called before any other HARP C library function is called (except for <a class="reference internal" href="#group__harp__general_1gab1b7664358a26d101ff84cafbfe486db"><span class="std std-ref">harp_set_coda_definition_path()</span></a>, <a class="reference internal" href="#group__harp__general_1ga679243ffdd37971e1d8ff63d498df560"><span class="std std-ref">harp_set_coda_definition_path_conditional()</span></a>, and <a class="reference internal" href="libharp_error.html#group__harp__error_1ga88c982481989852993829a34cd310b7d"><span class="std std-ref">harp_set_warning_handler()</span></a>).</p>
<p>HARP may at some point after calling <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> also initialize the underlying CODA C library that is used for ingestion of products that are not using the HARP format. The CODA C library may require access to .codadef files that describe the formats of certain product files. In order to tell CODA where these .codadef files are located you will have to either set the CODA_DEFINITION environment variable to the proper path, or set the path programmatically using the <a class="reference internal" href="#group__harp__general_1gab1b7664358a26d101ff84cafbfe486db"><span class="std std-ref">harp_set_coda_definition_path()</span></a> or <a class="reference internal" href="#group__harp__general_1ga679243ffdd37971e1d8ff63d498df560"><span class="std std-ref">harp_set_coda_definition_path_conditional()</span></a> function, before calling <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> for the first time.</p>
<p>If you use CODA functions directly in combination with HARP functions you should call coda_init() and coda_done() explicitly yourself and not rely on HARP having performed the coda_init() for you.</p>
<p>It is valid to perform multiple calls to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> after each other. Only the first call to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> will do the actual initialization and all following calls to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> will only increase an initialization counter. Each call to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> needs to be matched by a call to <a class="reference internal" href="#group__harp__general_1ga450874cf522aa206ac0101a013b372c0"><span class="std std-ref">harp_done()</span></a> at clean-up time (i.e. the number of calls to <a class="reference internal" href="#group__harp__general_1ga450874cf522aa206ac0101a013b372c0"><span class="std std-ref">harp_done()</span></a> needs to be equal to the number of calls to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a>). Only the final <a class="reference internal" href="#group__harp__general_1ga450874cf522aa206ac0101a013b372c0"><span class="std std-ref">harp_done()</span></a> call (when the initialization counter has reached 0) will perform the actual clean-up of the HARP C library.</p>
<p><dl class="docutils">
<dt><strong>Return</strong></dt>
<dd><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code>, Success. </li>
<li><code class="docutils literal notranslate"><span class="pre">-1</span></code>, Error occurred (check <a class="reference internal" href="libharp_error.html#group__harp__error_1gab2eeb46528306c6799632d1e800c4c36"><span class="std std-ref">harp_errno</span></a>). </li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="function">
<dt id="_CPPv39harp_donev">
<span id="_CPPv29harp_donev"></span><span id="harp_done__void"></span><span class="target" id="group__harp__general_1ga450874cf522aa206ac0101a013b372c0"></span>void <code class="descname">harp_done</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><br /></dt>
<dd><p>Finalizes the HARP C library. This function should be called to let the HARP C library free up any resources it has claimed since initialization.</p>
<p>It is valid to perform multiple calls to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> after each other. Only the first call to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> will do the actual initialization and all following calls to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> will only increase an initialization counter. Each call to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> needs to be matched by a call to <a class="reference internal" href="#group__harp__general_1ga450874cf522aa206ac0101a013b372c0"><span class="std std-ref">harp_done()</span></a> at clean-up time (i.e. the number of calls to <a class="reference internal" href="#group__harp__general_1ga450874cf522aa206ac0101a013b372c0"><span class="std std-ref">harp_done()</span></a> needs to be equal to the number of calls to <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a>). Only the final <a class="reference internal" href="#group__harp__general_1ga450874cf522aa206ac0101a013b372c0"><span class="std std-ref">harp_done()</span></a> call (when the initialization counter has reached 0) will perform the actual clean-up of the HARP C library.</p>
<p>Calling a HARP function other than <a class="reference internal" href="#group__harp__general_1gad1f344feb3bea74322283efca649a045"><span class="std std-ref">harp_init()</span></a> after the final <a class="reference internal" href="#group__harp__general_1ga450874cf522aa206ac0101a013b372c0"><span class="std std-ref">harp_done()</span></a> call will result in undefined behavior. </p>
</dd></dl>

</div>
<dl class="type">
<dt id="_CPPv317harp_scalar_union">
<span id="_CPPv217harp_scalar_union"></span><span id="harp_scalar_union"></span><span class="target" id="unionharp__scalar__union"></span><em class="property">union </em><code class="descname">harp_scalar_union</code><br /></dt>
<dd><div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Public Members</p>
<dl class="member">
<dt id="_CPPv39int8_data">
<span id="_CPPv29int8_data"></span><span id="int8_data__int8_t"></span><span class="target" id="unionharp__scalar__union_1a4a9d2eff66135fc91fe8ed0c9f3bba3f"></span>int8_t <code class="descname">int8_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv310int16_data">
<span id="_CPPv210int16_data"></span><span id="int16_data__int16_t"></span><span class="target" id="unionharp__scalar__union_1a1590290ec326241b74bbb86c676645a7"></span>int16_t <code class="descname">int16_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv310int32_data">
<span id="_CPPv210int32_data"></span><span id="int32_data__int32_t"></span><span class="target" id="unionharp__scalar__union_1ae5e457267f7135c20fae36ab117fcad9"></span>int32_t <code class="descname">int32_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv310float_data">
<span id="_CPPv210float_data"></span><span id="float_data__float"></span><span class="target" id="unionharp__scalar__union_1ac7ebd021cb43cb1a0fcd0efaeaac1ac6"></span>float <code class="descname">float_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv311double_data">
<span id="_CPPv211double_data"></span><span id="double_data__double"></span><span class="target" id="unionharp__scalar__union_1a84caf21d09365fd3888e0b65027fafc5"></span>double <code class="descname">double_data</code><br /></dt>
<dd></dd></dl>

</div>
</dd></dl>

<dl class="type">
<dt id="_CPPv316harp_array_union">
<span id="_CPPv216harp_array_union"></span><span id="harp_array_union"></span><span class="target" id="unionharp__array__union"></span><em class="property">union </em><code class="descname">harp_array_union</code><br /></dt>
<dd><div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Public Members</p>
<dl class="member">
<dt id="_CPPv39int8_data">
<span id="_CPPv29int8_data"></span><span id="int8_data__int8_tP"></span><span class="target" id="unionharp__array__union_1a1dbbdb8f868b8f374d30f1df311d1952"></span>int8_t *<code class="descname">int8_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv310int16_data">
<span id="_CPPv210int16_data"></span><span id="int16_data__int16_tP"></span><span class="target" id="unionharp__array__union_1a5e881b66f87b9f481a1d1cf0140f933a"></span>int16_t *<code class="descname">int16_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv310int32_data">
<span id="_CPPv210int32_data"></span><span id="int32_data__int32_tP"></span><span class="target" id="unionharp__array__union_1a104a9d196af01f0286935be7e4dcfc0c"></span>int32_t *<code class="descname">int32_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv310float_data">
<span id="_CPPv210float_data"></span><span id="float_data__floatP"></span><span class="target" id="unionharp__array__union_1a4927bb7a0ea0f2dc44ab0fbe6caa54f1"></span>float *<code class="descname">float_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv311double_data">
<span id="_CPPv211double_data"></span><span id="double_data__doubleP"></span><span class="target" id="unionharp__array__union_1acb6b371c87f9636e98cdf390d6620fde"></span>double *<code class="descname">double_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv311string_data">
<span id="_CPPv211string_data"></span><span id="string_data__cPP"></span><span class="target" id="unionharp__array__union_1a50127147d54ae038835226b75231d187"></span>char **<code class="descname">string_data</code><br /></dt>
<dd></dd></dl>

<dl class="member">
<dt id="_CPPv33ptr">
<span id="_CPPv23ptr"></span><span id="ptr__voidP"></span><span class="target" id="unionharp__array__union_1add9af9569af79ec26dd741fb226b38ba"></span>void *<code class="descname">ptr</code><br /></dt>
<dd></dd></dl>

</div>
</dd></dl>

</dd></dl>

</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="libharp_product.html" class="btn btn-neutral float-right" title="Product" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="libharp_error.html" class="btn btn-neutral" title="Error" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2015-2018 S&amp;T, The Netherlands

    </p>
  </div> 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    
    
      <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
        <script type="text/javascript" src="_static/jquery.js"></script>
        <script type="text/javascript" src="_static/underscore.js"></script>
        <script type="text/javascript" src="_static/doctools.js"></script>
        <script async="async" type="text/javascript" src="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
    

  

  <script type="text/javascript" src="_static/js/theme.js"></script>

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>