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 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711
|
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 3 Jan 2026 18:35:44 +0000
Subject: Fix spelling errors
Origin: https://github.com/bcdev/epr-api/commit/f069e55d5e724110c807f0ea909d1b92d2a35f39
Forwarded: not-needed
---
CHANGELOG.txt | 18 ++++-----
ISSUES.txt | 2 +-
README.txt | 8 ++--
bccunit/src/bccunit.h | 2 +-
build.xml | 2 +-
docs/doxygen_main_content.html | 4 +-
src/api-test/api_tests.c | 2 +-
src/epr_api.c | 4 +-
src/epr_api.h | 84 +++++++++++++++++++++---------------------
src/epr_band.c | 30 +++++++--------
src/epr_band.h | 10 ++---
src/epr_bitmask.c | 8 ++--
src/epr_bitmask.h | 26 ++++++-------
src/epr_core.c | 20 +++++-----
src/epr_core.h | 16 ++++----
src/epr_dddb.c | 34 ++++++++---------
src/epr_dsd.c | 4 +-
src/epr_dsd.h | 4 +-
src/epr_field.c | 6 +--
src/epr_msph.c | 4 +-
src/epr_param.c | 2 +-
src/epr_product.c | 8 ++--
src/epr_record.c | 10 ++---
src/epr_string.c | 10 ++---
src/epr_typconv.c | 72 ++++++++++++++++++------------------
src/examples/tiff.h | 4 +-
src/examples/tiffio.h | 2 +-
src/examples/write_rgb.c | 6 +--
src/test/CMakeLists.txt | 8 ++--
src/test/api_unit_tests.c | 16 ++++----
src/test/epr_subset_test.c | 2 +-
31 files changed, 214 insertions(+), 214 deletions(-)
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index ca10678..a46aa5c 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -32,7 +32,7 @@ ambiguous with respect to 32bit and 64bit operating systems.
----------------------------------------------------------------------
Changes from Version 2.0.5 to Version 2.1 (of 6. May 2009)
----------------------------------------------------------------------
-Support of MER_FRS (full resulution full swath) products
+Support of MER_FRS (full resolution full swath) products
Support of IODD7
----------------------------------------------------------------------
@@ -62,16 +62,16 @@ The new product changes are:
Changes from Version 2.0.2 to Version 2.0.3 (of 5. Nov 2003)
----------------------------------------------------------------------
Bugfix in file epr_band.c:
-In function epr_read_band_raster() an error occured if the percentage
+In function epr_read_band_raster() an error occurred if the percentage
of raster->source_step_x is bigger than raster->raster_width.
This restriction was removed.
----------------------------------------------------------------------
Changes from Version 2.0.1 to Version 2.0.2 (of 21. June 2003)
----------------------------------------------------------------------
-1) Bugfix: MERIS L1b flags now correcly read (read_measurement_...
+1) Bugfix: MERIS L1b flags now correctly read (read_measurement_...
"unknown data type")
-2) Bugfix: MERIS L2 flags now correcly read (wrong byte order)
+2) Bugfix: MERIS L2 flags now correctly read (wrong byte order)
3) Bugfix: MER_RRC_1P products now correctly handled
4) Support for MERIS, AATSR and ASAR child products added
5) Support for new MERIS L2 TOAVI flags included ...
@@ -88,7 +88,7 @@ Changes from Version 2.0.1 to Version 2.0.2 (of 21. June 2003)
----------------------------------------------------------------------
Changes from Version 2.0 to Version 2.0.1 (of 21.03.2003)
----------------------------------------------------------------------
-Bugfix: The build-in support for older MERIS L1b/L2 products (IODD 5)
+Bugfix: The built-in support for older MERIS L1b/L2 products (IODD 5)
caused that no other product types than MERIS L1b/L2 data products could
be opened. The error message was "epr_create_band_ids: band not found".
Now also the other MERIS, AATSR and ASAR products can be opened again.
@@ -125,7 +125,7 @@ Changes from Version 1.2 to Version 1.3
----------------------------------------------------------------------
Changes from Version 1.1 to Version 1.2
----------------------------------------------------------------------
-1) All functions defined in "epr_api.h" now properly return exeptional
+1) All functions defined in "epr_api.h" now properly return exceptional
values in case of an error.
2) Some of the API function did not clear the internal API error state.
All public API functions now clear the global error state before
@@ -151,7 +151,7 @@ Changes from Version 1.0 to Version 1.1
/* Gets the dataset_id at the specified position within the product. */
EPR_SDatasetId* epr_get_dataset_id_at(EPR_SProductId* product_id, uint index);
- /* Gets the dataset_id coresponding to the specified dataset name. */
+ /* Gets the dataset_id corresponding to the specified dataset name. */
EPR_SDatasetId* epr_get_dataset_id(EPR_SProductId* product_id, const char* dataset_name);
/* Gets the name of the dataset for the given dataset ID. */
@@ -177,7 +177,7 @@ Changes from Version 1.0 to Version 1.1
'epr_free_dataset_id' is no longer part of the public API.
The dataset IDs retrieved with the 'epr_get_dataset_id' function
- do not require an explicite destruction.
+ do not require an explicit destruction.
'epr_band_dataset_id' is no longer part of the public API.
@@ -185,5 +185,5 @@ Changes from Version 1.0 to Version 1.1
'epr_free_band_id' is no longer part of the public API.
The dataset IDs retrieved with the 'epr_get_band_id' function
- do not require an explicite destruction.
+ do not require an explicit destruction.
diff --git a/ISSUES.txt b/ISSUES.txt
index c0f21e7..4f6df0a 100644
--- a/ISSUES.txt
+++ b/ISSUES.txt
@@ -16,7 +16,7 @@ I+2.0 mp/uk make UNIX shared libraries for IDL API
I+1.2 nf/uk in epr_init_api: check if dddb path is valid, if not log
the problem so that users can solve it by themselves
I+1.2 nf/uk provide a hint in the example source code and README.txt,
- that users have to explicitely pass the DDDB path to epr_init_api
+ that users have to explicitly pass the DDDB path to epr_init_api
or set the environment variable EPR_DDDB_HOME.
The DDDB path is normally "$EPR_C_API_INSTALL_DIR$/dddb" and
is NOT automatically set.
diff --git a/README.txt b/README.txt
index f634f99..5f27a95 100644
--- a/README.txt
+++ b/README.txt
@@ -108,7 +108,7 @@ Documentation
|- docs/
|- html/ - API documentation for C
- Aditional documentation listing the supported ENVISAT product tables (required as
+ Additional documentation listing the supported ENVISAT product tables (required as
a reference for dataset-, field-, band- and flag-names) can be found at:
http://www.brockmann-consult.de/beam/doc/help/general/envisat-products/index.html
@@ -116,7 +116,7 @@ Documentation
Zip Archive Contents
- After a successfull unzipping of the epr_api-XXX.zip archive you should get
+ After a successful unzipping of the epr_api-XXX.zip archive you should get
a folder named epr_api-XXX with following structure:
epr_api-XXX/
@@ -129,7 +129,7 @@ Zip Archive Contents
|- VERSION.txt - the version string
|- CHANGELOG.txt - the changes from version to version
|- LICENSE.txt - the GNU public license
- |- makefile - the makefile to buld the epr-c-api static library
+ |- makefile - the makefile to build the epr-c-api static library
ready to use in your projects
@@ -149,6 +149,6 @@ Thank you for using the EPR API Software.
--------------------------------------------------------------------------------
The EPR API Software is licensed under the terms of the GNU General Public License
-aggreement (see the accompanying LICENSE.txt file).
+agreement (see the accompanying LICENSE.txt file).
--------------------------------------------------------------------------------
Brockmann Consult 2010
diff --git a/bccunit/src/bccunit.h b/bccunit/src/bccunit.h
index 2532d97..f41978f 100644
--- a/bccunit/src/bccunit.h
+++ b/bccunit/src/bccunit.h
@@ -50,7 +50,7 @@ extern "C" {
struct BcUnitTest* test_first; /* valid for test suites only */
struct BcUnitTest* test_last; /* valid for test suites only */
struct BcUnitTest* test_next; /* valid for test cases only */
- int num_tests; /* valid for test suites only, for cases aways 1 */
+ int num_tests; /* valid for test suites only, for cases always 1 */
};
diff --git a/build.xml b/build.xml
index 86ece51..7a9b167 100644
--- a/build.xml
+++ b/build.xml
@@ -38,7 +38,7 @@
</target>
<!-- ========================================= -->
- <!-- copy the recources to the build directory -->
+ <!-- copy the resources to the build directory -->
<!-- ========================================= -->
<target name="copy_generate_resources" depends="init">
<copy todir="${build}/${epr_api}/${prj}/codeblocks">
diff --git a/docs/doxygen_main_content.html b/docs/doxygen_main_content.html
index ec2360c..cd90907 100644
--- a/docs/doxygen_main_content.html
+++ b/docs/doxygen_main_content.html
@@ -47,7 +47,7 @@
<p>Given here are some of the basic concepts of the API.
<ul>
<li>The API works exclusively with pointers to dynamically allocated structures.
- For every structure type in the API a constructor/desctructor function pair always exists:
+ For every structure type in the API a constructor/destructor function pair always exists:
<code>X epr_create_X(...)</code> and <code>void epr_free_X(X)</code>. Example: For the type
<code>EPR_SRecord*</code> these functions are <code>EPR_SRecord* epr_create_record(...)</code>
and <code>void epr_free_record(EPR_SRecord*)</code>.
@@ -343,4 +343,4 @@
in ENVISAT products. </td>
</tr>
</table>
-</div>
\ No newline at end of file
+</div>
diff --git a/src/api-test/api_tests.c b/src/api-test/api_tests.c
index c82323a..866d326 100644
--- a/src/api-test/api_tests.c
+++ b/src/api-test/api_tests.c
@@ -15,7 +15,7 @@ int write_raw_image(const char* output_dir, EPR_SProductId* product_id, const ch
#endif /* if defined(WIN32) && defined(_DEBUG) */
/**
- * A program wich tests the epr-c-api by converting producing ENVI raster
+ * A program which tests the epr-c-api by converting producing ENVI raster
* information from dataset.
*
* It generates a *.raw data file for all rasters included in the
diff --git a/src/epr_api.c b/src/epr_api.c
index b9d6031..5a42195 100644
--- a/src/epr_api.c
+++ b/src/epr_api.c
@@ -120,11 +120,11 @@ void epr_set_log_handler(EPR_FLogHandler log_handler)
/**
* Sets the log level for the ENVISAT API. All logging
* messages with a log level lower than the given one, will
- * be supressed, thus the log handler will not be called
+ * be suppressed, thus the log handler will not be called
* for such messages.
*
* @param log_level the new log level. All logging messages with a log level lower
- * than the given one, will be supressed
+ * than the given one, will be suppressed
* @return zero for success, an error code otherwise
*/
int epr_set_log_level(EPR_ELogLevel log_level)
diff --git a/src/epr_api.h b/src/epr_api.h
index 0e6bbea..52831fa 100644
--- a/src/epr_api.h
+++ b/src/epr_api.h
@@ -304,7 +304,7 @@ struct EPR_ProductId
* A table containing dynamic field info parameters.
* Dynamic field info parameters are created at runtime because
* the are derived from the product file contents and can
- * not be staically stored in the record info database.
+ * not be statically stored in the record info database.
*/
EPR_SPtrArray* param_table;
@@ -587,7 +587,7 @@ struct EPR_Raster
* This information for the <code>reflec_10</code> is described with the <code>Scaling_Factor_GADS.22.10</code>
* In <code>dataset_id</code> the searched ENVISAT product name (e.g. <code>MER_RR__2P</code>) is located.
* <br>In the corresponding file (e.g. <code>/product/MER_RR__2P.dd</code>) the path,
- * how to find that information will be decribed.
+ * how to find that information will be described.
* In that file, in the field number <code>22</code> there is an information about the location
* of the searched value in the ENVISAT product data.
*
@@ -788,7 +788,7 @@ struct EPR_Time
*
*
* @param log_level the log level. All logging messages with a log level lower
- * than the given one, will be supressed
+ * than the given one, will be suppressed
* @param log_handler the log handler function pointer which
* will be used for logging, can be <code>NULL</code>,
* if logging shall be disabled
@@ -825,11 +825,11 @@ void epr_close_api(void);
/**
* Sets the log level for the ENVISAT API. All logging
* messages with a log level lower than the given one, will
- * be supressed, thus the log handler will not be called
+ * be suppressed, thus the log handler will not be called
* for such messages.
*
* @param log_level the new log level. All logging messages with a log level lower
- * than the given one, will be supressed
+ * than the given one, will be suppressed
* @return zero for success, an error code otherwise
*/
int epr_set_log_level(EPR_ELogLevel log_level);
@@ -875,18 +875,18 @@ void epr_log_message(EPR_ELogLevel log_level, const char* log_message);
void epr_set_err_handler(EPR_FErrHandler err_handler);
/**
- * Gets the error code of the error that occured during
+ * Gets the error code of the error that occurred during
* the last API function call.
*
- * @return the error code, <code>e_err_none</code> or zero if no error occured
+ * @return the error code, <code>e_err_none</code> or zero if no error occurred
*/
EPR_EErrCode epr_get_last_err_code(void);
/**
- * Gets the error message of the error that occured during
+ * Gets the error message of the error that occurred during
* the last API function call.
*
- * @return the error message, <code>NULL</code> if no error occured
+ * @return the error message, <code>NULL</code> if no error occurred
*/
const char* epr_get_last_err_message(void);
@@ -959,7 +959,7 @@ int epr_close_product(EPR_SProductId* product_id);
* - field
* - field element
*
- * If <code>FILE* istream</code> is given, the ASCII file will be outputed,
+ * If <code>FILE* istream</code> is given, the ASCII file will be outputted,
* else printed to standard output device.
*
* <p>In case <i>record and/or field</i>:
@@ -996,7 +996,7 @@ void epr_dump_element(const EPR_SRecord* record, uint field_index, uint element_
*
* @param product_id the product identifier, must not be <code>NULL</code>
* @return the product's total scene width in pixels, or <code>0</code>
- * if an error occured.
+ * if an error occurred.
*/
uint epr_get_scene_width(const EPR_SProductId* product_id);
@@ -1005,7 +1005,7 @@ uint epr_get_scene_width(const EPR_SProductId* product_id);
*
* @param product_id the product identifier, must not be <code>NULL</code>
* @return the product's total scene height in pixels, or <code>0</code>
- * if an error occured.
+ * if an error occurred.
*/
uint epr_get_scene_height(const EPR_SProductId* product_id);
@@ -1040,7 +1040,7 @@ uint epr_get_num_datasets(EPR_SProductId* product_id);
EPR_SDatasetId* epr_get_dataset_id_at(EPR_SProductId* product_id, uint index);
/**
- * Gets the dataset_id coresponding to the specified dataset name.
+ * Gets the dataset_id corresponding to the specified dataset name.
*
* @param product_id the product identifier, must not be <code>NULL</code>
* @param dataset_name the dataset name, must not be <code>NULL</code>
@@ -1068,7 +1068,7 @@ const char* epr_get_dsd_name(const EPR_SDatasetId* dataset_id);
* Gets the MPH record from the given <code>product_id</code>.
*
* @param product_id the product identifier, must not be <code>NULL</code>
- * @return the MPH record or <code>NULL</code> if an error occured.
+ * @return the MPH record or <code>NULL</code> if an error occurred.
*/
EPR_SRecord* epr_get_mph(const EPR_SProductId* product_id);
@@ -1076,7 +1076,7 @@ EPR_SRecord* epr_get_mph(const EPR_SProductId* product_id);
* Gets the SPH record from the given <code>product_id</code>.
*
* @param product_id the product identifier, must not be <code>NULL</code>
- * @return the SPH record or <code>NULL</code> if an error occured.
+ * @return the SPH record or <code>NULL</code> if an error occurred.
*/
EPR_SRecord* epr_get_sph(const EPR_SProductId* product_id);
@@ -1084,7 +1084,7 @@ EPR_SRecord* epr_get_sph(const EPR_SProductId* product_id);
* Gets the dataset descriptor (DSD) for the dataset specified by <code>dataset_id</code>.
*
* @param dataset_id the dataset identifier, must not be <code>NULL</code>
- * @return the pointer at the dsd or <code>NULL</code> if an error occured.
+ * @return the pointer at the dsd or <code>NULL</code> if an error occurred.
*/
const EPR_SDSD* epr_get_dsd(const EPR_SDatasetId* dataset_id);
@@ -1092,7 +1092,7 @@ const EPR_SDSD* epr_get_dsd(const EPR_SDatasetId* dataset_id);
* Gets the number of records of the dataset specified by <code>dataset_id</code>.
*
* @param dataset_id the dataset identifier, must not be <code>NULL</code>
- * @return the number of records or <code>0</code> if an error occured.
+ * @return the number of records or <code>0</code> if an error occurred.
*/
uint epr_get_num_records(const EPR_SDatasetId* dataset_id);
@@ -1118,7 +1118,7 @@ EPR_SDSD* epr_get_dsd_at(const EPR_SProductId* product_id, uint dsd_index);
*
* @param dataset_id the dataset identifier, must not be <code>NULL</code>
* @return the new record instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRecord* epr_create_record(EPR_SDatasetId* dataset_id);
@@ -1138,7 +1138,7 @@ EPR_SRecord* epr_create_record(EPR_SDatasetId* dataset_id);
* @param record a pre-created record to reduce memory reallocation,
* can be <code>NULL</code> to let the function allocate a new record
* @return the record in which the data has been read into
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRecord* epr_read_record(EPR_SDatasetId* dataset_id,
uint record_index,
@@ -1173,7 +1173,7 @@ void epr_free_record(EPR_SRecord* record);
*
* @param record the record identifier, must not be <code>NULL</code>
* @param field_name the the name of required field, must not be <code>NULL</code>.
- * @return the field or <code>NULL</code> if an error occured.
+ * @return the field or <code>NULL</code> if an error occurred.
*/
const EPR_SField* epr_get_field(const EPR_SRecord* record, const char* field_name);
@@ -1181,7 +1181,7 @@ const EPR_SField* epr_get_field(const EPR_SRecord* record, const char* field_nam
* Gets the number of fields contained in the given record.
*
* @param record the record to be analysed, must not be <code>NULL</code>
- * @return the fields number or <code>0</code> if an error occured.
+ * @return the fields number or <code>0</code> if an error occurred.
*/
uint epr_get_num_fields(const EPR_SRecord* record);
@@ -1191,7 +1191,7 @@ uint epr_get_num_fields(const EPR_SRecord* record);
* @param record the record from the field shall be returned,
* must not be <code>NULL</code>
* @param field_index the zero-based index (position within record) of the field
- * @return the field or <code>NULL</code> if an error occured.
+ * @return the field or <code>NULL</code> if an error occurred.
*/
const EPR_SField* epr_get_field_at(const EPR_SRecord* record, uint field_index);
@@ -1199,7 +1199,7 @@ const EPR_SField* epr_get_field_at(const EPR_SRecord* record, uint field_index);
* Gets the unit of the field.
*
* @param field the field from which the unit shall be returned, must not be <code>NULL</code>
- * @return the field unit or <code>NULL</code> if an error occured.
+ * @return the field unit or <code>NULL</code> if an error occurred.
*/
const char* epr_get_field_unit(const EPR_SField* field);
@@ -1208,7 +1208,7 @@ const char* epr_get_field_unit(const EPR_SField* field);
*
* @param field field from which the description shall be returned, must not be <code>NULL</code>
*
- * @return the field description or <code>NULL</code> if an error occured.
+ * @return the field description or <code>NULL</code> if an error occurred.
*/
const char* epr_get_field_description(const EPR_SField* field);
@@ -1217,7 +1217,7 @@ const char* epr_get_field_description(const EPR_SField* field);
*
* @param field field to be analysed, must not be <code>NULL</code>
*
- * @return the number of elements of the field or <code>0</code> if an error occured.
+ * @return the number of elements of the field or <code>0</code> if an error occurred.
*/
uint epr_get_field_num_elems(const EPR_SField* field);
@@ -1226,7 +1226,7 @@ uint epr_get_field_num_elems(const EPR_SField* field);
*
* @param field field to be analysed, must not be <code>NULL</code>
*
- * @return the field name or <code>NULL</code> if an error occured.
+ * @return the field name or <code>NULL</code> if an error occurred.
*/
const char* epr_get_field_name(const EPR_SField* field);
@@ -1235,7 +1235,7 @@ const char* epr_get_field_name(const EPR_SField* field);
*
* @param field field to be analysed, must not be <code>NULL</code>
*
- * @return the field type or <code>0</code> if an error occured.
+ * @return the field type or <code>0</code> if an error occurred.
*/
EPR_EDataTypeId epr_get_field_type(const EPR_SField* field);
@@ -1375,7 +1375,7 @@ uint epr_copy_field_elems_as_doubles(const EPR_SField* field, double* buffer, ui
* @param source_step_y the subsampling step along track of the source when reading into the raster. See text above.
*
* @return the new raster instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRaster* epr_create_compatible_raster(EPR_SBandId* band_id,
uint source_width,
@@ -1393,7 +1393,7 @@ EPR_SRaster* epr_create_compatible_raster(EPR_SBandId* band_id,
* @param source_step_x the subsampling step across track of the source when reading into the raster. See description of epr_create_compatible_raster.
* @param source_step_y the subsampling step along track of the source when reading into the raster. See description of epr_create_compatible_raster.
* @return the new raster instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRaster* epr_create_raster(EPR_EDataTypeId data_type,
uint source_width,
@@ -1410,7 +1410,7 @@ EPR_SRaster* epr_create_raster(EPR_EDataTypeId data_type,
* @param source_step_x the subsampling step across track of the source when reading into the raster. See description of epr_create_compatible_raster.
* @param source_step_y the subsampling step along track of the source when reading into the raster. See description of epr_create_compatible_raster.
* @return the new raster instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRaster* epr_create_bitmask_raster(uint source_width,
uint source_height,
@@ -1420,13 +1420,13 @@ EPR_SRaster* epr_create_bitmask_raster(uint source_width,
/**
* Reads (geo-)physical values of the given band of the specified source-region.
* <p> The source-region is a defined part of the whole ENVISAT product image, which shall be read into
- * a raster. In this routine the co-ordinates are specified, where the source-region to be read starts.
+ * a raster. In this routine the coordinates are specified, where the source-region to be read starts.
* The dimension of the region and the sub-sampling are attributes of the raster into which the data are
* read.
*
* @param band_id the identified of the band to be read into the raster.
- * @param offset_x across-track source co-ordinate in pixel co-ordinates (zero-based) of the upper right corner of the source-region
- * @param offset_y along-track source co-ordinate in pixel co-ordinates (zero-based) of the upper right corner of the source-region
+ * @param offset_x across-track source coordinate in pixel coordinates (zero-based) of the upper right corner of the source-region
+ * @param offset_y along-track source coordinate in pixel coordinates (zero-based) of the upper right corner of the source-region
* @param raster the identifier to given raster information and raster buffer
*
* @return zero for success, and error code otherwise
@@ -1466,7 +1466,7 @@ void* epr_get_raster_line_addr(const EPR_SRaster* raster, uint y);
*
* @param raster the raster identifier, must not be <code>NULL</code>
* @return the raster's total scene width in pixels, or <code>0</code>
- * if an error occured.
+ * if an error occurred.
*/
uint epr_get_raster_width(EPR_SRaster* raster);
@@ -1475,7 +1475,7 @@ uint epr_get_raster_width(EPR_SRaster* raster);
*
* @param raster the product identifier, must not be <code>NULL</code>
* @return the raster's total scene height in pixels, or <code>0</code>
- * if an error occured.
+ * if an error occurred.
*/
uint epr_get_raster_height(EPR_SRaster* raster);
@@ -1540,10 +1540,10 @@ void epr_free_raster(EPR_SRaster* raster);
* (i.e. pixel) in a type-safe way. <br>
*
* @param raster the raster which contains the pixel, must not be <code>NULL</code>
- * @param x the (zero-based) X co-ordinate of the pixel
- * @param y the (zero-based) Y co-ordinate of the pixel
+ * @param x the (zero-based) X coordinate of the pixel
+ * @param y the (zero-based) Y coordinate of the pixel
*
- * @return the typed value at the given co-ordinate.
+ * @return the typed value at the given coordinate.
*/
uint epr_get_pixel_as_uint(const EPR_SRaster* raster, int x, int y);
int epr_get_pixel_as_int(const EPR_SRaster* raster, int x, int y);
@@ -1567,13 +1567,13 @@ double epr_get_pixel_as_double(const EPR_SRaster* raster, int x, int y);
* <p>
*
* @param product_id Identifier of the ENVISAT product for which the bit-mask shall be created.
- * This is used by the function to retreive the needed flags.
- * @param bm_expr A string holding the logical expression for the defintion of the bit-mask.
+ * This is used by the function to retrieve the needed flags.
+ * @param bm_expr A string holding the logical expression for the definition of the bit-mask.
* In a bit-mask expression, any number of the flag-names (found in the DDDB) can
* be composed with "(", ")", "NOT", "AND", "OR". Valid bit-mask expression are for example: <br>
* "flags.LAND OR flags.CLOUD" or "NOT flags.WATER AND flags.TURBID_S".
- * @param offset_x across-track co-ordinate in pixel co-ordinates (zero-based) of the upper right corner of the source-region
- * @param offset_y along-track co-ordinate in pixel co-ordinates (zero-based) of the upper right corner of the source-region
+ * @param offset_x across-track coordinate in pixel coordinates (zero-based) of the upper right corner of the source-region
+ * @param offset_y along-track coordinate in pixel coordinates (zero-based) of the upper right corner of the source-region
* @param raster the raster for the bit-mask. The data type of the raster must be either e_tid_uchar or e_tid_char.
*
* @return zero for success, an error code otherwise
diff --git a/src/epr_band.c b/src/epr_band.c
index 6e4b5a7..554f240 100644
--- a/src/epr_band.c
+++ b/src/epr_band.c
@@ -481,7 +481,7 @@ EPR_ESampleModel epr_str_to_sample_offset(const char* str) {
* @param source_step_x the subsampling step across track of the source when reading into the raster. See description of epr_create_compatible_raster.
* @param source_step_y the subsampling step along track of the source when reading into the raster. See description of epr_create_compatible_raster.
* @return the new raster instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRaster* epr_create_bitmask_raster(uint source_width,
uint source_height,
@@ -504,7 +504,7 @@ EPR_SRaster* epr_create_bitmask_raster(uint source_width,
* @param source_step_x the sub-sampling in X
* @param source_step_y the sub-sampling in Y
* @return the new raster instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRaster* epr_create_raster(EPR_EDataTypeId data_type,
uint source_width,
@@ -558,7 +558,7 @@ EPR_SRaster* epr_create_raster(EPR_EDataTypeId data_type,
*
* @param band_id the band identifier, must not be <code>NULL</code>
* @return the new raster instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRaster* epr_create_compatible_raster(EPR_SBandId* band_id,
uint source_width,
@@ -696,8 +696,8 @@ int epr_read_band_raster(EPR_SBandId* band_id,
* Reads the measurement data and converts its into physical values.
*
* @param band_id the information about properties and quantities of ENVISAT data.
- * @param offset_x X-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
- * @param offset_y Y-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
+ * @param offset_x X-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
+ * @param offset_y Y-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
* @param raster the instance to the buffer information was used
*
* @return zero for success, an error code otherwise
@@ -759,13 +759,13 @@ int epr_read_band_measurement_data(EPR_SBandId* band_id,
if (offset_x + raster->source_width > (int)scan_line_length) {
epr_free_record(record);
epr_set_err(e_err_illegal_arg,
- "epr_read_band_measurement_data: raster x co-ordinates out of bounds");
+ "epr_read_band_measurement_data: raster x coordinates out of bounds");
return epr_get_last_err_code();
}
if (offset_y + raster->source_height > (int)(rec_numb)) {
epr_free_record(record);
epr_set_err(e_err_illegal_arg,
- "epr_read_band_measurement_data: raster y co-ordinates out of bounds");
+ "epr_read_band_measurement_data: raster y coordinates out of bounds");
return epr_get_last_err_code();
}
raster_pos = 0;
@@ -783,8 +783,8 @@ int epr_read_band_measurement_data(EPR_SBandId* band_id,
scene_width = band_id->product_id->scene_width;
if (band_id->lines_mirrored) {
offset_x_mirrored = (scene_width - 1) - (offset_x + raster->source_width - 1);
- /* the extra offset is used to accomodate the the effect of sampling step
- * greather than one in case of mirrored lines */
+ /* the extra offset is used to accommodate the the effect of sampling step
+ * greater than one in case of mirrored lines */
{
int extra_offset = raster->source_width - ((raster->raster_width - 1) * raster->source_step_x + 1);
offset_x_mirrored += extra_offset;
@@ -835,8 +835,8 @@ int epr_read_band_measurement_data(EPR_SBandId* band_id,
* Reads the annotation data and converts its into physical values.
*
* @param band_id the information about properties and quantities of ENVISAT data.
- * @param offset_x X-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
- * @param offset_y Y-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
+ * @param offset_x X-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
+ * @param offset_y Y-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
* @param raster the instance to the buffer information was used
*
* @return zero for success, an error code otherwise
@@ -973,7 +973,7 @@ int epr_read_band_annotation_data(EPR_SBandId* band_id,
free(line_beg_buffer);
free(line_end_buffer);
epr_set_err(e_err_illegal_arg,
- "epr_read_band_data: raster x co-ordinates out of bounds");
+ "epr_read_band_data: raster x coordinates out of bounds");
return epr_get_last_err_code();
}
if (offset_y + raster->raster_height > (int)(rec_numb * lines_per_tie_pt)) {
@@ -981,7 +981,7 @@ int epr_read_band_annotation_data(EPR_SBandId* band_id,
free(line_beg_buffer);
free(line_end_buffer);
epr_set_err(e_err_illegal_arg,
- "epr_read_band_data: raster y co-ordinates out of bounds");
+ "epr_read_band_data: raster y coordinates out of bounds");
return epr_get_last_err_code();
}
raster_pos = 0;
@@ -1004,8 +1004,8 @@ int epr_read_band_annotation_data(EPR_SBandId* band_id,
scene_width = band_id->product_id->scene_width;
if (band_id->lines_mirrored) {
offset_x_mirrored = (scene_width - 1) - (offset_x + raster->source_width - 1);
- /* the extra offset is used to accomodate the the effect of sampling step
- * greather than one in case of mirrored lines */
+ /* the extra offset is used to accommodate the the effect of sampling step
+ * greater than one in case of mirrored lines */
{
int extra_offset = raster->source_width - ((raster->raster_width - 1) * raster->source_step_x + 1);
offset_x_mirrored += extra_offset;
diff --git a/src/epr_band.h b/src/epr_band.h
index b4b348d..68e64fb 100644
--- a/src/epr_band.h
+++ b/src/epr_band.h
@@ -76,8 +76,8 @@ float epr_get_scaling_params(EPR_SProductId* product_id, const char* str);
* Reads the measurement data and converts its in physical values.
*
* @param band_id the information about properties and quantities of ENVISAT data.
- * @param offset_x X-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
- * @param offset_y Y-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
+ * @param offset_x X-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
+ * @param offset_y Y-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
* @param raster the instance to the buffer information was used
*
* @return zero for success, and error code otherwise
@@ -88,8 +88,8 @@ int epr_read_band_measurement_data(EPR_SBandId* band_id, int offset_x, int offse
* Reads the annotation data and converts its in physical values.
*
* @param band_id the information about properties and quantities of ENVISAT data.
- * @param offset_x X-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
- * @param offset_y Y-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
+ * @param offset_x X-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
+ * @param offset_y Y-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
* @param raster the instance to the buffer information was used
*
* @return zero for success, and error code otherwise
@@ -188,7 +188,7 @@ float epr_interpolate2D(float wi, float wj, float x00, float x10, float x01, flo
* @param num_elems number of elements in one tie point scan-line
* @param band_id the information about properties and quantities of ENVISAT data.
* @param xo [PIXEL] X-coordinate (0-bazed) of the upper right corner raster to search
- * @param y_mod [PIXEL] relativ location of the point is been researched (in fly direction)
+ * @param y_mod [PIXEL] relative location of the point is been researched (in fly direction)
* @param raster_width [PIXEL] the width of the raster is been researched
* @param s_x [PIXEL] X-step to get the next point (in source coordinates) to search
* @param raster_buffer the float user array to be filled with physical values
diff --git a/src/epr_bitmask.c b/src/epr_bitmask.c
index cb62a85..f79d7eb 100644
--- a/src/epr_bitmask.c
+++ b/src/epr_bitmask.c
@@ -90,8 +90,8 @@ void epr_free_bm_eval_context(EPR_SBmEvalContext* context)
*
* @param product_id the product ID
* @param bm_expr the bit-mask expression
- * @param offset_x X-coordinate in pixel co-ordinates (zero-based) of the upper right raster corner to be searched for
- * @param offset_y Y-coordinate in pixel co-ordinates (zero-based) of the upper right raster corner to be searched for
+ * @param offset_x X-coordinate in pixel coordinates (zero-based) of the upper right raster corner to be searched for
+ * @param offset_y Y-coordinate in pixel coordinates (zero-based) of the upper right raster corner to be searched for
* @param raster the instance to the buffer information was used
*
* @return zero for success, an error code otherwise
@@ -164,8 +164,8 @@ int epr_read_bitmask_raster(EPR_SProductId* product_id,
* Evaluates the given bitmask expression.
*
* @param term the bitmask term
- * @param x the pixel's x co-ordinate
- * @param y the pixel's y co-ordinate
+ * @param x the pixel's x coordinate
+ * @param y the pixel's y coordinate
*/
epr_boolean epr_eval_bm_term(EPR_SBmEvalContext* context, EPR_SBmTerm* term, int x, int y) {
diff --git a/src/epr_bitmask.h b/src/epr_bitmask.h
index abf2136..64f932d 100644
--- a/src/epr_bitmask.h
+++ b/src/epr_bitmask.h
@@ -85,7 +85,7 @@ struct EPR_BmTerm {
* expressions. It is used internally only.
* <p>
* An instance of this structure holds the product ID, references to all flag datasets
- * required to evaluate the expression as well as information about the bitmask raster beeing
+ * required to evaluate the expression as well as information about the bitmask raster being
* created.
*
* @see EPR_SProductId
@@ -100,12 +100,12 @@ struct EPR_BmEvalContext
EPR_SProductId* product_id;
/**
- * X-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster.
+ * X-coordinate in pixel coordinates (zero-based) of the upper right corner raster.
*/
int offset_x;
/**
- * Y-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster.
+ * Y-coordinate in pixel coordinates (zero-based) of the upper right corner raster.
*/
int offset_y;
@@ -145,8 +145,8 @@ struct EPR_BmFlagDataset {
* for the given raster and offsets of start corner
*
* @param product_id the product ID
- * @param offset_x X-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
- * @param offset_y Y-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
+ * @param offset_x X-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
+ * @param offset_y Y-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
* @param raster the bitmask_raster
*
* @return bit-mask evaluated context for success, and error code otherwise
@@ -206,12 +206,12 @@ void epr_free_bm_eval_context(EPR_SBmEvalContext* context);
*
* @param product_id the product ID
* @param bm_expr the bit-mask expression
- * @param xo X-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
- * @param yo Y-coordinate in pixel co-ordinates (zero-based) of the upper right corner raster to search
- * @param raster_width the width in pixel co-ordinates of the raster to search
- * @param raster_height the height in pixel co-ordinates of raster to search
- * @param s_x X-step in pixel co-ordinates to get the next raster to search
- * @param s_y Y-step in pixel co-ordinates to get the next raster to search
+ * @param xo X-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
+ * @param yo Y-coordinate in pixel coordinates (zero-based) of the upper right corner raster to search
+ * @param raster_width the width in pixel coordinates of the raster to search
+ * @param raster_height the height in pixel coordinates of raster to search
+ * @param s_x X-step in pixel coordinates to get the next raster to search
+ * @param s_y Y-step in pixel coordinates to get the next raster to search
* @param raster_buffer [BYTE] the memory buffer to save information was read
*
* @return zero for success, and error code otherwise
@@ -232,8 +232,8 @@ int epr_read_bitmask_data(const EPR_SProductId* product_id,
* Evaluates the given bitmask expression.
*
* @param term the bitmask term
- * @param x the x co-ordinate in pixels
- * @param y the y co-ordinate in pixels
+ * @param x the x coordinate in pixels
+ * @param y the y coordinate in pixels
*/
epr_boolean epr_eval_bm_term(EPR_SBmEvalContext* context,
EPR_SBmTerm* term,
diff --git a/src/epr_core.c b/src/epr_core.c
index e1f6c50..a89d854 100644
--- a/src/epr_core.c
+++ b/src/epr_core.c
@@ -193,8 +193,8 @@ uint epr_get_data_type_size(EPR_EDataTypeId data_type_id)
* it is not <code>NULL</code> and if the given log
* level is greater than or equal to the global log level.
*
- * @param log_level the log level (or message type) for the mesage
- * @param log_message the mesage
+ * @param log_level the log level (or message type) for the message
+ * @param log_message the message
*/
void epr_log(EPR_ELogLevel log_level, const char* log_message)
{
@@ -216,7 +216,7 @@ void epr_log(EPR_ELogLevel log_level, const char* log_message)
* calls this API's error handler if it is not <code>NULL</code>.
*
* @param err_code the error code
- * @param err_message the error mesage
+ * @param err_message the error message
*/
void epr_set_err(EPR_EErrCode err_code, const char* err_message)
{
@@ -260,10 +260,10 @@ void epr_clear_err(void)
Changelog: 2002/01/05 nf initial version
*/
/**
- * Sets the error code of the error that occured during
+ * Sets the error code of the error that occurred during
* the last API function call.
*
- * @return the error code, <code>e_err_none</code> or zero if no error occured
+ * @return the error code, <code>e_err_none</code> or zero if no error occurred
*/
EPR_EErrCode epr_get_last_err_code(void)
{
@@ -276,10 +276,10 @@ EPR_EErrCode epr_get_last_err_code(void)
Changelog: 2002/01/05 nf initial version
*/
/**
- * Sets the error message of the error that occured during
+ * Sets the error message of the error that occurred during
* the last API function call.
*
- * @return the error message, <code>NULL</code> if no error occured
+ * @return the error message, <code>NULL</code> if no error occurred
*/
const char* epr_get_last_err_message(void)
{
@@ -304,7 +304,7 @@ void epr_set_err_handler(EPR_FErrHandler err_handler)
* @param file_path the path to the file.
*
* @return the file handle or
- * <code>NULL</code> if an error occured.
+ * <code>NULL</code> if an error occurred.
*/
FILE* epr_open_file(char* file_path)
{
@@ -382,7 +382,7 @@ int epr_str_to_number(const char* str)
* @param product_id the Product identifier containing the values
* for the Product
* @return the field length computed from the given string or
- * <code>(uint)-1</code> if an error occured.
+ * <code>(uint)-1</code> if an error occurred.
*/
uint epr_parse_value_count(EPR_SProductId* product_id, const char* count)
{
@@ -433,7 +433,7 @@ uint epr_parse_value_count(EPR_SProductId* product_id, const char* count)
* @param param_table the pointer to param_table
*
* @return the value of the given name or
- * <code>(uint)-1</code> if an error occured.
+ * <code>(uint)-1</code> if an error occurred.
*/
uint epr_param_to_value(const char* str, EPR_SPtrArray* param_table)
{
diff --git a/src/epr_core.h b/src/epr_core.h
index 1706379..6ead5e0 100644
--- a/src/epr_core.h
+++ b/src/epr_core.h
@@ -128,12 +128,12 @@ struct EPR_API
EPR_FLogHandler log_handler;
/**
- * The error code of the last error occured.
+ * The error code of the last error occurred.
*/
EPR_EErrCode last_err_code;
/**
- * The error message of the last error occured.
+ * The error message of the last error occurred.
*/
char* last_err_message;
@@ -174,8 +174,8 @@ void epr_free_product_id(EPR_SProductId* product_id);
* it is not <code>NULL</code> and if the given log
* level is greater than or equal to the global log level.
*
- * @param log_level the log level (or message type) for the mesage
- * @param log_message the mesage
+ * @param log_level the log level (or message type) for the message
+ * @param log_message the message
*/
void epr_log(EPR_ELogLevel log_level, const char* log_message);
@@ -184,7 +184,7 @@ void epr_log(EPR_ELogLevel log_level, const char* log_message);
* calls this API's error handler if it is not <code>NULL</code>.
*
* @param err_code the error code
- * @param err_message the error mesage
+ * @param err_message the error message
*/
void epr_set_err(EPR_EErrCode err_code, const char* err_message);
@@ -194,7 +194,7 @@ void epr_set_err(EPR_EErrCode err_code, const char* err_message);
*
* @param product_id the product identifier, must not be <code>NULL</code>
* @return a record representing the MPH of the specified product file
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRecord* epr_read_mph(EPR_SProductId* product_id);
@@ -204,7 +204,7 @@ EPR_SRecord* epr_read_mph(EPR_SProductId* product_id);
*
* @param product_id the product identifier, must not be <code>NULL</code>
* @return a record representing the MPH of the specified product file
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRecord* epr_read_sph(EPR_SProductId* product_id);
@@ -232,7 +232,7 @@ EPR_EDataTypeId epr_str_to_data_type_id(const char* str);
* @param param_table the parameter table containing the values
* for the parameter references in the string
* @return the field length computed from the given string or
- * <code>(uint)-1</code> if an error occured.
+ * <code>(uint)-1</code> if an error occurred.
*/
/*uint epr_str_to_field_length(const char* str, EPR_SParamTable* param_table);*/
diff --git a/src/epr_dddb.c b/src/epr_dddb.c
index a57e9fe..c8f995b 100644
--- a/src/epr_dddb.c
+++ b/src/epr_dddb.c
@@ -1009,7 +1009,7 @@ static const struct RecordDescriptor AT2_AR__2P_MDSR_sr_large_atsr2_rec_data[] =
{"sd_67toa_cl_for", e_tid_short, "%/100", 2, "1", "Standard deviation of above"},
{"sa_55toa_cl_for", e_tid_short, "%/100", 2, "1", "Spatially averaged 0.55 micron TOA reflectance of all cloudy pixels (forward view)"},
{"sd_55toa_cl_for", e_tid_short, "%/100", 2, "1", "Standard deviation of above"},
- {"fail_flag_for", e_tid_ushort, NULL, 2, "1", "Pixel threshold failure flags for averages, foward view"},
+ {"fail_flag_for", e_tid_ushort, NULL, 2, "1", "Pixel threshold failure flags for averages, forward view"},
{"pix_nsig_nad", e_tid_short, NULL, 2, "1", "Number of filled pixels (N-Sigma), nadir view"},
{"pix_ss", e_tid_short, "%/100", 2, "1", "Percentage filled pixels over sea surface"},
{"low_11bt_cl_nad", e_tid_short, "K/100", 2, "1", "Lowest 11 micron BT of all cloudy pixels, nadir view"},
@@ -1070,7 +1070,7 @@ static const struct RecordDescriptor AT2_AR__2P_MDSR_sr_small_atsr2_rec_data[] =
{"sa_87toa_cl_for", e_tid_short, "%/100", 2, "1", "Spatially averaged 0.87 micron TOA reflectance of all cloudy pixels (forward view)"},
{"sa_67toa_cl_for", e_tid_short, "%/100", 2, "1", "Spatially averaged 0.67 micron TOA reflectance of all cloudy pixels (forward view)"},
{"sa_55toa_cl_for", e_tid_short, "%/100", 2, "1", "Spatially averaged 0.55 micron TOA reflectance of all cloudy pixels (forward view)"},
- {"fail_flag_for", e_tid_ushort, NULL, 2, "1", "Pixel threshold failure flags for averages, foward view"}
+ {"fail_flag_for", e_tid_ushort, NULL, 2, "1", "Pixel threshold failure flags for averages, forward view"}
};
static const struct RecordDescriptor AT2_AR__2P_MDSR_sst_large_atsr2_rec_data[] = {
@@ -2049,8 +2049,8 @@ static const struct RecordDescriptor ASAR_Ocean_Spectra_MDSR_asar_rec_data[] = {
{"min_spectrum", e_tid_float, "m^4", 4, "1", "Min value of ocean wave spectrum"},
{"max_spectrum", e_tid_float, "m^4", 4, "1", "Max value of ocean wave spectrum"},
{"spare_3", e_tid_spare, NULL, 8, "1", "Spare"},
- {"wind_speed", e_tid_float, "m/s", 4, "1", "Forcast Wind speed (if provided)"},
- {"wind_direction", e_tid_float, "deg", 4, "1", "Forcast Wind direction (if provided)"},
+ {"wind_speed", e_tid_float, "m/s", 4, "1", "Forecast Wind speed (if provided)"},
+ {"wind_direction", e_tid_float, "deg", 4, "1", "Forecast Wind direction (if provided)"},
{"SAR_wave_height", e_tid_float, "m", 4, "1", "SAR swell wave height"},
{"SAR_az_shift_var", e_tid_float, "m^2", 4, "1", "Variance of the azimuth shift computed from the SAR swell wave spectra"},
{"backscatter", e_tid_float, "dB", 4, "1", "Backscattering coefficient"},
@@ -2090,7 +2090,7 @@ static const struct RecordDescriptor ASAR_Spectra_MDSR_asar_rec_data[] = {
{"min_real", e_tid_float, NULL, 4, "1", "Min value of Real part of cross spectrum"},
{"max_real", e_tid_float, NULL, 4, "1", "Max value of Real part of cross spectrum"},
{"spare_1", e_tid_spare, NULL, 64, "1", "Spare"},
- {"real_spectra", e_tid_uchar, NULL, 1, ".SPH.num_wl_bins,.SPH.num_dir_bins", "Real part of cross spectra polar gridNumber of bins in wavelength and direction defined in SPH (nominally 24 by 36). However, only 0 to 180 degree of the spectrum need be supplied (24 by 18). Arranged as: 24 wavelength values for 0-10 deg. sector, 24 valu"},
+ {"real_spectra", e_tid_uchar, NULL, 1, ".SPH.num_wl_bins,.SPH.num_dir_bins", "Real part of cross spectra polar gridNumber of bins in wavelength and direction defined in SPH (nominally 24 by 36). However, only 0 to 180 degree of the spectrum need be supplied (24 by 18). Arranged as: 24 wavelength values for 0-10 deg. sector, 24 value"},
{"imag_spectra", e_tid_uchar, NULL, 1, ".SPH.num_wl_bins,.SPH.num_dir_bins", "Complex part of cross spectra polar gridNumber of bins in wavelength and direction defined in SPH (nominally 24 by 36). However, only 0 to 180 degree of the spectrum need be supplied (24 by 18). Arranged as: 24 wavelength values for 0-10 deg. sector, 24 v"}
};
@@ -2148,8 +2148,8 @@ static const struct RecordDescriptor ASAR_SRGR_ADSR_asar_rec_data[] = {
static const struct RecordDescriptor ASAR_Wave_Geolocation_ADSR_asar_rec_data[] = {
{"zero_doppler_time", e_tid_time, "MJD", 12, "1", "Zero Doppler Time of first line of the first line of the imagette"},
{"attach_flag", e_tid_uchar, "flag", 1, "1", "Attachment Flag (set to 1 if unable to compute the cross spectra for a given SLC imagette (i.e. no Cross Spectra MDSR corresponding to this ADSR), set to 0 otherwise)"},
- {"center_lat", e_tid_int, "(1e-6) degrees", 4, "1", "Geodetic latitude of center point (positive north) This is the center point of the wave cell. It is calculated after the cross spectra processing, and thus may differ from the center sample latitude of the SLC imagette if slant range to ground range conve"},
- {"center_long", e_tid_int, "(1e-6) degrees", 4, "1", "Geodetic longitude of center point (positive east)This is the center point of the wave cell. It is calculated after the cross spectra processing, and thus may differ from the center sample latitude of the SLC imagette if slant range to ground range conver"},
+ {"center_lat", e_tid_int, "(1e-6) degrees", 4, "1", "Geodetic latitude of center point (positive north) This is the center point of the wave cell. It is calculated after the cross spectra processing, and thus may differ from the center sample latitude of the SLC imagette if slant range to ground range conversion"},
+ {"center_long", e_tid_int, "(1e-6) degrees", 4, "1", "Geodetic longitude of center point (positive east)This is the center point of the wave cell. It is calculated after the cross spectra processing, and thus may differ from the center sample latitude of the SLC imagette if slant range to ground range conversion"},
{"heading", e_tid_float, "deg", 4, "1", "Subsatellite Track Heading. Relative to North of centre point."}
};
@@ -3409,18 +3409,18 @@ static const struct RecordDescriptor ASA_INS_AX_GADS_asar_rec_data[] = {
{"spare_3", e_tid_spare, NULL, 64, "1", "Spare"},
{"cal_loop_ref_is1", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS1(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
{"cal_loop_ref_is2", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS2(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
- {"cal_loop_ref_is3_ss2", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS3/SS2(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, fo"},
- {"cal_loop_ref_is4_ss3", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS4/SS3(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, fo"},
- {"cal_loop_ref_is5_ss4", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS5/SS4(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, fo"},
- {"cal_loop_ref_is6_ss5", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS6/SS5(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, fo"},
+ {"cal_loop_ref_is3_ss2", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS3/SS2(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
+ {"cal_loop_ref_is4_ss3", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS4/SS3(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
+ {"cal_loop_ref_is5_ss4", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS5/SS4(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
+ {"cal_loop_ref_is6_ss5", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS6/SS5(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
{"cal_loop_ref_is7", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for IS7(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
{"cal_loop_ref_iss1", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Swath Reference Elevation Angle for SS1(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
{"cal_loop_cen_is1", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS1(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
{"cal_loop_cen_is2", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS2(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
- {"cal_loop_cen_is3_ss2", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS3/SS2(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, fo"},
- {"cal_loop_cen_is4_ss3", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS4/SS3(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, fo"},
- {"cal_loop_cen_is5_ss4", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS5/SS4(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, fo"},
- {"cal_loop_cen_is6_ss5", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS6/SS5(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, fo"},
+ {"cal_loop_cen_is3_ss2", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS3/SS2(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
+ {"cal_loop_cen_is4_ss3", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS4/SS3(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
+ {"cal_loop_cen_is5_ss4", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS5/SS4(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
+ {"cal_loop_cen_is6_ss5", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS6/SS5(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
{"cal_loop_cen_is7", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for IS7(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
{"cal_loop_cen_iss1", e_tid_float, NULL, 4, "128", "Calibration Loop Characterization Factors at the Center of Swath Elevation Angle for SS1(complex factor characterizing the path through the calibration loop and from the calibration coupler to the antenna face) 32 complex values for H polarization, follow"},
{"spare_4", e_tid_spare, NULL, 1024, "1", "Spare"}
@@ -5556,7 +5556,7 @@ const struct BandDescriptorTable dddb_band_tables[41] = {
{"ASA_APM_1P", "ASAR Alternating Polarization Medium Resolution Image", 6, ASA_APM_1P_band_data},
{"ASA_APP_1P", "ASAR Alternating Polarization Precision Image", 6, ASA_APP_1P_band_data},
{"ASA_APS_1P", "ASAR Alternating Polarization SLC Image", 8, ASA_APS_1P_band_data},
- {"ASA_AP__BP", "ASAR Alternatin Polarization Mode Browse Product", 5, ASA_AP__BP_band_data},
+ {"ASA_AP__BP", "ASAR Alternating Polarization Mode Browse Product", 5, ASA_AP__BP_band_data},
{"ASA_IMG_1P", "ASAR Image Mode Geocoded Image", 5, ASA_IMG_1P_band_data},
{"ASA_IMM_1P", "ASAR Image Mode Medium Resolution Image", 5, ASA_IMM_1P_band_data},
{"ASA_IMP_1P", "ASAR Image Mode Precision Image", 5, ASA_IMP_1P_band_data},
@@ -5587,7 +5587,7 @@ const struct BandDescriptorTable dddb_band_tables[41] = {
{"SAR_APM_1P", "ERS Simulated Alternating Polarization Medium Resolution Image", 6, ASA_APM_1P_band_data},
{"SAR_APP_1P", "ERS Simulated Alternating Polarization Precision Image", 6, ASA_APP_1P_band_data},
{"SAR_APS_1P", "ERS Simulated Alternating Polarization SLC Image", 6, ASA_APS_1P_band_data},
- {"SAR_AP__BP", "ERS Simulated Alternatin Polarization Mode Browse Product", 5, ASA_AP__BP_band_data},
+ {"SAR_AP__BP", "ERS Simulated Alternating Polarization Mode Browse Product", 5, ASA_AP__BP_band_data},
{"SAR_IMG_1P", "ERS Image Mode Geocoded Image", 5, ASA_IMG_1P_band_data},
{"SAR_IMM_1P", "ERS Image Mode Medium Resolution Image", 5, ASA_IMM_1P_band_data},
{"SAR_IMP_1P", "ERS Image Mode Precision Image", 5, ASA_IMP_1P_band_data},
diff --git a/src/epr_dsd.c b/src/epr_dsd.c
index 4ed4e7e..3c622c7 100644
--- a/src/epr_dsd.c
+++ b/src/epr_dsd.c
@@ -252,7 +252,7 @@ void epr_free_dsd(EPR_SDSD* dsd)
* @param envisat_source_file the handle of the given ENVISAT product file,
* must not be <code>NULL</code>
* @param pos number of the dataset description in ENVISAT product file,
-* @return a new dataset description or <code>NULL</code> if an error occured.
+* @return a new dataset description or <code>NULL</code> if an error occurred.
*/
EPR_SDSD* epr_read_each_dsd(FILE* envisat_source_file, int* pos)
{
@@ -495,7 +495,7 @@ uint epr_find_first_dsd(FILE* envisat_source_file, uint sph_length)
*
* @param product_id the file identifier, if <code>NULL</code> the function
* immediately returns <code>NULL</code>.
-* @return an array of dataset descriptions or <code>NULL</code> if an error occured.
+* @return an array of dataset descriptions or <code>NULL</code> if an error occurred.
*/
EPR_SPtrArray* epr_read_all_dsds(EPR_SProductId* product_id)
{
diff --git a/src/epr_dsd.h b/src/epr_dsd.h
index 8e79c55..eaf35c7 100644
--- a/src/epr_dsd.h
+++ b/src/epr_dsd.h
@@ -55,7 +55,7 @@ void epr_free_dsd(EPR_SDSD* dsd);
* @param envisat_source_file the handle of the given ENVISAT product file,
* must not be <code>NULL</code>
* @param pos number of the dataset description in ENVISAT product file,
- * @return a new dataset description or <code>NULL</code> if an error occured.
+ * @return a new dataset description or <code>NULL</code> if an error occurred.
*/
EPR_SDSD* epr_read_each_dsd(FILE* envisat_source_file, int* pos);
@@ -64,7 +64,7 @@ EPR_SDSD* epr_read_each_dsd(FILE* envisat_source_file, int* pos);
*
* @param product_id the file identifier, if <code>NULL</code> the function
* immediately returns <code>NULL</code>.
- * @return an array of dataset descriptions or <code>NULL</code> if an error occured.
+ * @return an array of dataset descriptions or <code>NULL</code> if an error occurred.
*/
EPR_SPtrArray* epr_read_all_dsds(EPR_SProductId* product_id);
diff --git a/src/epr_field.c b/src/epr_field.c
index 265017e..3d89c52 100644
--- a/src/epr_field.c
+++ b/src/epr_field.c
@@ -36,7 +36,7 @@
/**
- * Creates the field information of the given record and returns the poiter at it.
+ * Creates the field information of the given record and returns the pointer at it.
*
* @param data_type_id the data type identifier
* @param description the field description
@@ -142,7 +142,7 @@ void epr_free_field_info(EPR_SFieldInfo* field_info)
* @param the pointer at the field information.
* must not be <code>NULL</code>
* @return the new field instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SField* epr_create_field(EPR_SFieldInfo* field_info)
{
@@ -243,7 +243,7 @@ void epr_free_field(EPR_SField* field)
* @param record the record identifier, must not be <code>NULL</code>
* @param field_name the the name of required field, must not be <code>NULL</code>.
*
- * @return the field or <code>NULL</code> if an error occured.
+ * @return the field or <code>NULL</code> if an error occurred.
*/
const EPR_SField* epr_get_field(const EPR_SRecord* record, const char* field_name)
{
diff --git a/src/epr_msph.c b/src/epr_msph.c
index cea3780..4495658 100644
--- a/src/epr_msph.c
+++ b/src/epr_msph.c
@@ -41,7 +41,7 @@
*
* @param product_id the product identifier, must not be <code>NULL</code>
* @return a record representing the MPH of the specified product file
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRecord* epr_read_mph(EPR_SProductId* product_id)
@@ -87,7 +87,7 @@ EPR_SRecord* epr_read_mph(EPR_SProductId* product_id)
*
* @param product_id the product identifier, must not be <code>NULL</code>
* @return a record representing the MPH of the specified product file
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRecord* epr_read_sph(EPR_SProductId* product_id)
{
diff --git a/src/epr_param.c b/src/epr_param.c
index b15442f..b0f1d73 100644
--- a/src/epr_param.c
+++ b/src/epr_param.c
@@ -41,7 +41,7 @@
* @param param_name the name of the parameter,
* @param param_value the value of this parameter,
* @return the pointer at this element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SParamElem* epr_create_param_elem(const char* param_name, int param_value)
{
diff --git a/src/epr_product.c b/src/epr_product.c
index d7c7f88..9961217 100644
--- a/src/epr_product.c
+++ b/src/epr_product.c
@@ -363,7 +363,7 @@ void epr_free_product_id(EPR_SProductId* product_id) {
* Gets the scene width in pixel.
*
* @param product_id the product identifier, must not be <code>NULL</code>
- * @return width pixel number, or <code>0</code> if an error occured.
+ * @return width pixel number, or <code>0</code> if an error occurred.
*/
uint epr_get_scene_width(const EPR_SProductId* product_id) {
epr_clear_err();
@@ -380,7 +380,7 @@ uint epr_get_scene_width(const EPR_SProductId* product_id) {
* Gets the scene height in pixel.
*
* @param product_id the product identifier, must not be <code>NULL</code>
- * @return height pixel number, or <code>0</code> if an error occured.
+ * @return height pixel number, or <code>0</code> if an error occurred.
*/
uint epr_get_scene_height(const EPR_SProductId* product_id) {
epr_clear_err();
@@ -424,7 +424,7 @@ EPR_SRecord* epr_get_mph(const EPR_SProductId* product_id) {
*
* @param product_id the product identifier, must not be <code>NULL</code>
*
- * @return width pixel number, or <code>0</code> if an error occured.
+ * @return width pixel number, or <code>0</code> if an error occurred.
*/
uint epr_compute_scene_width(const EPR_SProductId* product_id) {
EPR_SRecord* sph_record = NULL;
@@ -465,7 +465,7 @@ uint epr_compute_scene_width(const EPR_SProductId* product_id) {
* the minimum number of records in all measurement datasets.
*
* @param product_id the product identifier, must not be <code>NULL</code>
- * @return height pixel number, or <code>0</code> if an error occured.
+ * @return height pixel number, or <code>0</code> if an error occurred.
*/
uint epr_compute_scene_height(const EPR_SProductId* product_id) {
EPR_SDSD* dsd = NULL;
diff --git a/src/epr_record.c b/src/epr_record.c
index d87854f..f849b1f 100644
--- a/src/epr_record.c
+++ b/src/epr_record.c
@@ -52,11 +52,11 @@
*
* @param dataset_name the name of the dataset, to which the record
* belongs to, must not be <code>NULL</code>
- * @param field_infos the pointer at the strucrure with information
- * of all fields wich belong to record,
+ * @param field_infos the pointer at the structure with information
+ * of all fields which belong to record,
* must not be <code>NULL</code>
* @return the new record instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRecordInfo* epr_create_record_info(const char* dataset_name, EPR_SPtrArray* field_infos)
{
@@ -287,7 +287,7 @@ EPR_SRecordInfo* epr_read_record_info(EPR_SProductId* product_id, EPR_SDatasetId
*/
/**
* Reads the record information with the given file path and
- * returns the poiter at it.
+ * returns the pointer at it.
*
* @param product_id the the product file identifier
* @param dataset_name the name of the dataset
@@ -313,7 +313,7 @@ EPR_SRecordInfo* epr_read_record_info(EPR_SProductId* product_id, EPR_SDatasetId
* @param the pointer at the record information.
* must not be <code>NULL</code>
* @return the new record instance
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
EPR_SRecord* epr_create_record_from_info(EPR_SRecordInfo* record_info)
{
diff --git a/src/epr_string.c b/src/epr_string.c
index 89a8197..a93c66e 100644
--- a/src/epr_string.c
+++ b/src/epr_string.c
@@ -110,14 +110,14 @@ void epr_free_string(char* str)
Changelog: 2002/01/10 mp initial version
*/
/**
- * Findes substrings between separators.
+ * Finds substrings between separators.
*
* @param str the string to search
- * @param seps the separator simbols string
+ * @param seps the separator symbols string
* @param pos position with a search begin
*
* @return the next substring (or own string) of the found name or
- * <code>(uint)NULL</code> if an error occured.
+ * <code>(uint)NULL</code> if an error occurred.
*/
char* epr_str_tok(const char* str, const char* seps, int* pos)
{
@@ -168,11 +168,11 @@ char* epr_str_tok(const char* str, const char* seps, int* pos)
* Findes substrings between double separators.
*
* @param str the string to search
- * @param seps the separator simbols string
+ * @param seps the separator symbols string
* @param pos position with a search begin
*
* @return the next substring (or own string) of the found name or
- * <code>(uint)NULL</code> if an error occured.
+ * <code>(uint)NULL</code> if an error occurred.
*/
char* epr_str_tok_tok(const char* str, const char* seps, const char* exceptions, uint* pos)
{
diff --git a/src/epr_typconv.c b/src/epr_typconv.c
index 82a6c66..561d4d4 100644
--- a/src/epr_typconv.c
+++ b/src/epr_typconv.c
@@ -29,14 +29,14 @@
/**
- * Interpretes a memory as a <code>char</code> value
+ * Interprets a memory as a <code>char</code> value
*
* @param field the pointer at the array to convert
* @param elem_index the index of the element
* in the given array to convert
*
* @return the <code>char</code> typed element
- * or <code>error_code</code> if an error occured.
+ * or <code>error_code</code> if an error occurred.
*/
char epr_get_field_elem_as_char(const EPR_SField* field, uint elem_index)
{
@@ -61,12 +61,12 @@ char epr_get_field_elem_as_char(const EPR_SField* field, uint elem_index)
}
/**
- * Interpretes a memory data as a <code>char</code> data
+ * Interprets a memory data as a <code>char</code> data
*
* @param field the pointer at the array to convert
*
* @return the <code>char</code> typed element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const char* epr_get_field_elems_char(const EPR_SField* field)
{
@@ -86,14 +86,14 @@ const char* epr_get_field_elems_char(const EPR_SField* field)
}
/**
- * Interpretes a memory as a <code>uchar</code> value
+ * Interprets a memory as a <code>uchar</code> value
*
* @param field the pointer at the array to convert
* @param elem_index the index of the element
* in the given array to convert
*
* @return the <code>uchar</code> typed element
- * or <code>error_code</code> if an error occured.
+ * or <code>error_code</code> if an error occurred.
*/
uchar epr_get_field_elem_as_uchar(const EPR_SField* field, uint elem_index)
{
@@ -118,12 +118,12 @@ uchar epr_get_field_elem_as_uchar(const EPR_SField* field, uint elem_index)
}
/**
- * Interpretes a memory data as a <code>uchar</code> data
+ * Interprets a memory data as a <code>uchar</code> data
*
* @param field the pointer at the array to convert
*
* @return the <code>uchar</code> typed element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const uchar* epr_get_field_elems_uchar(const EPR_SField* field)
{
@@ -143,14 +143,14 @@ const uchar* epr_get_field_elems_uchar(const EPR_SField* field)
}
/**
- * Interpretes a memory as a <code>short</code> value
+ * Interprets a memory as a <code>short</code> value
*
* @param field the pointer at the array to convert
* @param elem_index the index of the element
* in the given array to convert
*
* @return the <code>short</code> typed element
- * or <code>error_code</code> if an error occured.
+ * or <code>error_code</code> if an error occurred.
*/
short epr_get_field_elem_as_short(const EPR_SField* field, uint elem_index)
{
@@ -185,12 +185,12 @@ short epr_get_field_elem_as_short(const EPR_SField* field, uint elem_index)
}
/**
- * Interpretes a memory data as a <code>short</code> data
+ * Interprets a memory data as a <code>short</code> data
*
* @param field the pointer at the array to convert
*
* @return the <code>short</code> typed element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const short* epr_get_field_elems_short(const EPR_SField* field)
{
@@ -210,14 +210,14 @@ const short* epr_get_field_elems_short(const EPR_SField* field)
}
/**
- * Interpretes a memory as a <code>ushort</code> value
+ * Interprets a memory as a <code>ushort</code> value
*
* @param field the pointer at the array to convert
* @param elem_index the index of the element
* in the given array to convert
*
* @return the <code>ushort</code> typed element
- * or <code>error_code</code> if an error occured.
+ * or <code>error_code</code> if an error occurred.
*/
ushort epr_get_field_elem_as_ushort(const EPR_SField* field, uint elem_index)
{
@@ -251,12 +251,12 @@ ushort epr_get_field_elem_as_ushort(const EPR_SField* field, uint elem_index)
}
/**
- * Interpretes a memory data as a <code>ushort</code> data
+ * Interprets a memory data as a <code>ushort</code> data
*
* @param field the pointer at the array to convert
*
* @return the <code>ushort</code> typed element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const ushort* epr_get_field_elems_ushort(const EPR_SField* field)
{
@@ -276,10 +276,10 @@ const ushort* epr_get_field_elems_ushort(const EPR_SField* field)
}
/**
- * Interpretes a memory as a <code>int</code> value.
+ * Interprets a memory as a <code>int</code> value.
*
* <p> If an error occurs the method returns <code>0</code> (zero).
- * Whether an error really occured when zero is returned can by determined by
+ * Whether an error really occurred when zero is returned can by determined by
* using the <code>epr_get_last_err_code</code> function.
*
* @param field the pointer at the array to convert
@@ -326,12 +326,12 @@ int epr_get_field_elem_as_int(const EPR_SField* field, uint elem_index)
}
/**
- * Interpretes a memory data as a <code>int</code> data
+ * Interprets a memory data as a <code>int</code> data
*
* @param field the pointer at the array to convert
*
* @return the <code>int</code> typed element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const int* epr_get_field_elems_int(const EPR_SField* field)
{
@@ -351,14 +351,14 @@ const int* epr_get_field_elems_int(const EPR_SField* field)
}
/**
- * Interpretes a memory as a <code>uint</code> value
+ * Interprets a memory as a <code>uint</code> value
*
* @param field the pointer at the array to convert
* @param elem_index the index of the element
* in the given array to convert
*
* @return the <code>uint</code> typed element
- * or <code>error_code</code> if an error occured.
+ * or <code>error_code</code> if an error occurred.
*/
uint epr_get_field_elem_as_uint(const EPR_SField* field, uint elem_index)
{
@@ -398,12 +398,12 @@ uint epr_get_field_elem_as_uint(const EPR_SField* field, uint elem_index)
}
/**
- * Interpretes a memory data as a <code>uint</code> data
+ * Interprets a memory data as a <code>uint</code> data
*
* @param field the pointer at the array to convert
*
* @return the <code>uint</code> typed element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const uint* epr_get_field_elems_uint(const EPR_SField* field)
{
@@ -423,14 +423,14 @@ const uint* epr_get_field_elems_uint(const EPR_SField* field)
}
/**
- * Interpretes a memory as a <code>float</code> value
+ * Interprets a memory as a <code>float</code> value
*
* @param field the pointer at the array to convert
* @param elem_index the index of the element
* in the given array to convert
*
* @return the <code>float</code> typed element
- * or <code>error_code</code> if an error occured.
+ * or <code>error_code</code> if an error occurred.
*/
float epr_get_field_elem_as_float(const EPR_SField* field, uint elem_index)
{
@@ -477,12 +477,12 @@ float epr_get_field_elem_as_float(const EPR_SField* field, uint elem_index)
}
/**
- * Interpretes a memory data as a <code>float</code> data
+ * Interprets a memory data as a <code>float</code> data
*
* @param field the pointer at the array to convert
*
* @return the <code>float</code> typed element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const float* epr_get_field_elems_float(const EPR_SField* field)
{
@@ -502,14 +502,14 @@ const float* epr_get_field_elems_float(const EPR_SField* field)
}
/**
- * Interpretes a memory as a <code>double</code> value
+ * Interprets a memory as a <code>double</code> value
*
* @param field the pointer at the array to convert
* @param elem_index the index of the element
* in the given array to convert
*
* @return the <code>double</code> typed element
- * or <code>error_code</code> if an error occured.
+ * or <code>error_code</code> if an error occurred.
*/
double epr_get_field_elem_as_double(const EPR_SField* field, uint elem_index)
{
@@ -559,12 +559,12 @@ double epr_get_field_elem_as_double(const EPR_SField* field, uint elem_index)
}
/**
- * Interpretes a memory data as a <code>double</code> data
+ * Interprets a memory data as a <code>double</code> data
*
* @param field the pointer at the array to convert
*
* @return the <code>double</code> typed element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const double* epr_get_field_elems_double(const EPR_SField* field)
{
@@ -585,13 +585,13 @@ const double* epr_get_field_elems_double(const EPR_SField* field)
}
/**
- * Interpretes a memory data as a <code>short</code> data
+ * Interprets a memory data as a <code>short</code> data
*
* @param field the pointer at the array to convert
* @param time the pointer at the time structure to get
*
* @return the time [days, seconds, microseconds]
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const EPR_STime* epr_get_field_elem_as_mjd(const EPR_SField* field)
{
@@ -614,12 +614,12 @@ const EPR_STime* epr_get_field_elem_as_mjd(const EPR_SField* field)
}
/**
- * Interpretes a memory data as a string.
+ * Interprets a memory data as a string.
*
* @param field the pointer at the array to convert
*
* @return the <code>char</code> typed element
- * or <code>NULL</code> if an error occured.
+ * or <code>NULL</code> if an error occurred.
*/
const char* epr_get_field_elem_as_str(const EPR_SField* field)
{
diff --git a/src/examples/tiff.h b/src/examples/tiff.h
index 4e7c797..533bca2 100644
--- a/src/examples/tiff.h
+++ b/src/examples/tiff.h
@@ -278,7 +278,7 @@ typedef enum {
#define TIFFTAG_PREDICTOR 317 /* prediction scheme w/ LZW */
#define TIFFTAG_WHITEPOINT 318 /* image white point */
#define TIFFTAG_PRIMARYCHROMATICITIES 319 /* !primary chromaticities */
-#define TIFFTAG_COLORMAP 320 /* RGB map for pallette image */
+#define TIFFTAG_COLORMAP 320 /* RGB map for palette image */
#define TIFFTAG_HALFTONEHINTS 321 /* !highlight+shadow info */
#define TIFFTAG_TILEWIDTH 322 /* !rows/data tile */
#define TIFFTAG_TILELENGTH 323 /* !cols/data tile */
@@ -390,7 +390,7 @@ typedef enum {
/* tag 34750 is a private tag registered to Pixel Magic */
#define TIFFTAG_JBIGOPTIONS 34750 /* JBIG options */
/* tags 34908-34914 are private tags registered to SGI */
-#define TIFFTAG_FAXRECVPARAMS 34908 /* encoded Class 2 ses. parms */
+#define TIFFTAG_FAXRECVPARAMS 34908 /* encoded Class 2 ses. params */
#define TIFFTAG_FAXSUBADDRESS 34909 /* received SubAddr string */
#define TIFFTAG_FAXRECVTIME 34910 /* receive time (secs) */
/* tags 37439-37443 are registered to SGI <gregl@sgi.com> */
diff --git a/src/examples/tiffio.h b/src/examples/tiffio.h
index 16658a5..f147cd8 100644
--- a/src/examples/tiffio.h
+++ b/src/examples/tiffio.h
@@ -157,7 +157,7 @@ struct _TIFFRGBAImage {
uint16 samplesperpixel; /* image samples/pixel */
uint16 orientation; /* image orientation */
uint16 photometric; /* image photometric interp */
- uint16* redcmap; /* colormap pallete */
+ uint16* redcmap; /* colormap palette */
uint16* greencmap;
uint16* bluecmap;
/* get image data routine */
diff --git a/src/examples/write_rgb.c b/src/examples/write_rgb.c
index 49eb8a4..a08647e 100644
--- a/src/examples/write_rgb.c
+++ b/src/examples/write_rgb.c
@@ -11,7 +11,7 @@
* This program uses 3 channels of an ENVISAT product for the generation of the RGB image.
*
* The created TIF-image has the same name as a ENVISAT product data file
- * however - with the extention ".tif"
+ * however - with the extension ".tif"
*
* Usage: create_RGB_image <ENVISAT-file-path> <output-directory>
* <R-band-name> <G-band-name> <B-band-name> [<XY-step>]
@@ -21,7 +21,7 @@
* <R-band-name> - the dataset name for the R-channel
* <G-band-name> - the dataset name for the G-channel
* <B-band-name> - the dataset name for the B-channel
- * <XY-step> - sub-sampling in the both directions, optinal. Default:1.
+ * <XY-step> - sub-sampling in the both directions, optional. Default:1.
*
* Example:
* create_RGB_image
@@ -240,7 +240,7 @@ int main(int argc, char** argv)
/**
* Builds the raster for the given dataset name and given product
*
- * @return the instance of the scaned data
+ * @return the instance of the scanned data
*/
EPR_SRaster* make_layer(EPR_SProductId* product_id,
const char* ds_name,
diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
index 1df6bac..18f0b63 100644
--- a/src/test/CMakeLists.txt
+++ b/src/test/CMakeLists.txt
@@ -30,14 +30,14 @@ elseif(BUILD_STATIC_LIB)
endif(BUILD_STATIC_LIB)
-# endianess
+# endianness
include(TestBigEndian)
TEST_BIG_ENDIAN(BIGENDIAN)
if(${BIGENDIAN})
- set(ENDIANESS BE)
+ set(ENDIANNESS BE)
else(${BIGENDIAN})
- set(ENDIANESS LE)
+ set(ENDIANNESS LE)
endif(${BIGENDIAN})
@@ -46,4 +46,4 @@ endif(${BIGENDIAN})
#add_test(TEST_EPR_02 epr_subset_test)
add_test(TEST_EPR_03 epr_test_endian)
set_tests_properties(TEST_EPR_03 PROPERTIES PASS_REGULAR_EXPRESSION
- ${ENDIANESS})
+ ${ENDIANNESS})
diff --git a/src/test/api_unit_tests.c b/src/test/api_unit_tests.c
index 0a5a639..6e9778b 100644
--- a/src/test/api_unit_tests.c
+++ b/src/test/api_unit_tests.c
@@ -139,16 +139,16 @@ int main(int argc, char** argv) {
int i;
#if defined(WIN32) && defined(_DEBUG)
- /* Aktuelles Attribut ermitteln */
+ /* Determine current attribute */
int tmpFlag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
- /* Speicherverlust-Pr�fbit aktivieren */
+ /* Enable memory leakage check bit */
tmpFlag |= _CRTDBG_LEAK_CHECK_DF;
- /* CRT-Block-Pr�fbit deaktivieren */
+ /* Disable CRT block check bit */
tmpFlag &= ~_CRTDBG_CHECK_CRT_DF;
- /* Attribut auf neuen Wert setzen */
+ /* Set attribute to new value */
_CrtSetDbgFlag(tmpFlag);
/*_CrtSetBreakAlloc(4694);*/
@@ -835,15 +835,15 @@ epr_boolean parse_field_adress(const char* str, SFieldAddress* field_adress) {
|| field_adress->name_field == NULL
|| strstr(field_adress->name_rec, "[") == field_adress->name_rec
|| strstr(field_adress->name_field, "[") == field_adress->name_field)
- goto finaly;
+ goto finally;
if (!parse_index(field_adress->name_rec, (int*)&field_adress->index_rec))
- goto finaly;
+ goto finally;
if (!parse_index(field_adress->name_field, (int*)&field_adress->index_field))
- goto finaly;
+ goto finally;
result = TRUE;
- finaly:
+ finally:
epr_free_string(temp);
return result;
diff --git a/src/test/epr_subset_test.c b/src/test/epr_subset_test.c
index 2071f09..63e60bc 100644
--- a/src/test/epr_subset_test.c
+++ b/src/test/epr_subset_test.c
@@ -215,7 +215,7 @@ int main(int argc, char** argv)
/**
* Builds the raster for the given dataset name and given product
*
- * @return the instance of the scaned data
+ * @return the instance of the scanned data
*/
EPR_SRaster* make_layer(EPR_SProductId* product_id,
const char* ds_name,
|