Skip to content

Commit b7691db

Browse files
added copyright statements
1 parent 5022e43 commit b7691db

File tree

15 files changed

+945
-145
lines changed

15 files changed

+945
-145
lines changed

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@
9393
"forward_list": "cpp",
9494
"list": "cpp",
9595
"typeindex": "cpp",
96-
"expected": "cpp"
96+
"expected": "cpp",
97+
"cfenv": "cpp",
98+
"csetjmp": "cpp",
99+
"csignal": "cpp",
100+
"regex": "cpp",
101+
"scoped_allocator": "cpp",
102+
"shared_mutex": "cpp",
103+
"valarray": "cpp",
104+
"cuchar": "cpp"
97105
}
98106
}

CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# * Copyright (C) 2022 Benjamin Thomas Schwertfeger
2+
#
3+
# This program is free software: you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation, either version 3 of the License, or
6+
# (at your option) any later version.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
15+
# ================================================================================
16+
117
cmake_minimum_required(VERSION 3.10)
218

319
project(BiasAdjustmentCpp

LICENSE

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ price. Our General Public Licenses are designed to make sure that you
2424
have the freedom to distribute copies of free software (and charge for
2525
them if you wish), that you receive source code or can get it if you
2626
want it, that you can change the software or use pieces of it in new
27-
free programs, and that you know you can do these thißgs.
27+
free programs, and that you know you can do these things.
2828

2929
To protect your rights, we need to prevent others from denying you
3030
these rights or asking you to surrender the rights. Therefore, you have
@@ -620,19 +620,7 @@ copy of the Program in return for a fee.
620620

621621
END OF TERMS AND CONDITIONS
622622

623-
How to Apply These Terms to Your New Programs
624-
625-
If you develop a new program, and you want it to be of the greatest
626-
possible use to the public, the best way to achieve this is to make it
627-
free software which everyone can redistribute and change under these terms.
628-
629-
To do so, attach the following notices to the program. It is safest
630-
to attach them to the start of each source file to most effectively
631-
state the exclusion of warranty; and each file should have at least
632-
the "copyright" line and a pointer to where the full notice is found.
633-
634-
<one line to give the program's name and a brief idea of what it does.>
635-
Copyright (C) <year> <name of author>
623+
Copyright (C) 2022 Benjamin Thomas Schwertfeger
636624

637625
This program is free software: you can redistribute it and/or modify
638626
it under the terms of the GNU General Public License as published by
@@ -646,29 +634,3 @@ the "copyright" line and a pointer to where the full notice is found.
646634

647635
You should have received a copy of the GNU General Public License
648636
along with this program. If not, see <https://www.gnu.org/licenses/>.
649-
650-
Also add information on how to contact you by electronic and paper mail.
651-
652-
If the program does terminal interaction, make it output a short
653-
notice like this when it starts in an interactive mode:
654-
655-
<program> Copyright (C) <year> <name of author>
656-
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657-
This is free software, and you are welcome to redistribute it
658-
under certain conditions; type `show c' for details.
659-
660-
The hypothetical commands `show w' and `show c' should show the appropriate
661-
parts of the General Public License. Of course, your program's commands
662-
might be different; for a GUI interface, you would use an "about box".
663-
664-
You should also get your employer (if you work as a programmer) or school,
665-
if any, to sign a "copyright disclaimer" for the program, if necessary.
666-
For more information on this, and how to apply and follow the GNU GPL, see
667-
<https://www.gnu.org/licenses/>.
668-
669-
The GNU General Public License does not permit incorporating your program
670-
into proprietary programs. If your program is a subroutine library, you
671-
may consider it more useful to permit linking proprietary applications with
672-
the library. If this is what you want to do, use the GNU Lesser General
673-
Public License instead of this License. But first, please read
674-
<https://www.gnu.org/licenses/why-not-lgpl.html>.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
<div style="text-align: center">
44

55
[![GitHub](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/btschwertfeger/Bias-Adjustment-Cpp)
6-
[![Generic badge](https://img.shields.io/badge/license-MIT-green.svg)](https://shields.io/)
6+
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-orange.svg)](https://www.gnu.org/licenses/gpl-3.0)
7+
![C++](https://img.shields.io/badge/-C++-blue?logo=c%2B%2B)
78

89
</div>
10+
911
Command line tool/program to apply different scale- and distribution-based bias adjustment techniques for climatic research. Many of these methods have also been implemented in Python. This can be found here: https://github.com/btschwertfeger/Bias-Adjustment-Python.
1012

1113
---

cmake/modules/FindNetCDFCxx.cmake

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
#
22
# Find the netCDF C++ API cmake files
3-
#
3+
#
4+
# * Copyright (C) 2022 Benjamin Thomas Schwertfeger
5+
#
6+
# This program is free software: you can redistribute it and/or modify
7+
# it under the terms of the GNU General Public License as published by
8+
# the Free Software Foundation, either version 3 of the License, or
9+
# (at your option) any later version.
10+
#
11+
# This program is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU General Public License
17+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
#
419
# ----- R E F E R E N C E S -----
520
# Inspired by:
621
# Peter Hill (2021)

images/dm-doy-plot.png

-584 KB
Loading

include/CMethods.hxx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@
77
* @copyright Benjamin Thomas Schwertfeger
88
* @link https://b-schwertfeger.de
99
* @github https://github.com/btschwertfeger/Bias-Adjustment-Cpp
10+
*
11+
* * Copyright (C) 2022 Benjamin Thomas Schwertfeger
12+
*
13+
* This program is free software: you can redistribute it and/or modify
14+
* it under the terms of the GNU General Public License as published by
15+
* the Free Software Foundation, either version 3 of the License, or
16+
* (at your option) any later version.
17+
*
18+
* This program is distributed in the hope that it will be useful,
19+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
* GNU General Public License for more details.
22+
*
23+
* You should have received a copy of the GNU General Public License
24+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
25+
*
1026
*/
1127

1228
#ifndef __CMETHODS__

include/MathUtils.hxx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@
77
* @copyright Benjamin Thomas Schwertfeger
88
* @link https://b-schwertfeger.de
99
* @github https://github.com/btschwertfeger/Bias-Adjustment-Cpp
10+
*
11+
* * Copyright (C) 2022 Benjamin Thomas Schwertfeger
12+
*
13+
* This program is free software: you can redistribute it and/or modify
14+
* it under the terms of the GNU General Public License as published by
15+
* the Free Software Foundation, either version 3 of the License, or
16+
* (at your option) any later version.
17+
*
18+
* This program is distributed in the hope that it will be useful,
19+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
* GNU General Public License for more details.
22+
*
23+
* You should have received a copy of the GNU General Public License
24+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
25+
*
1026
*/
1127

1228
#ifndef __MathUtils__

include/NcFileHandler.hxx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@
77
* @copyright Benjamin Thomas Schwertfeger
88
* @link https://b-schwertfeger.de
99
* @github https://github.com/btschwertfeger/Bias-Adjustment-Cpp
10+
*
11+
* * Copyright (C) 2022 Benjamin Thomas Schwertfeger
12+
*
13+
* This program is free software: you can redistribute it and/or modify
14+
* it under the terms of the GNU General Public License as published by
15+
* the Free Software Foundation, either version 3 of the License, or
16+
* (at your option) any later version.
17+
*
18+
* This program is distributed in the hope that it will be useful,
19+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
* GNU General Public License for more details.
22+
*
23+
* You should have received a copy of the GNU General Public License
24+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
25+
*
1026
*/
1127

1228
#ifndef __NcFileHandler__

include/Utils.hxx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,33 @@
77
* @copyright Benjamin Thomas Schwertfeger
88
* @link https://b-schwertfeger.de
99
* @github https://github.com/btschwertfeger/Bias-Adjustment-Cpp
10+
*
11+
* * Copyright (C) 2022 Benjamin Thomas Schwertfeger
12+
*
13+
* This program is free software: you can redistribute it and/or modify
14+
* it under the terms of the GNU General Public License as published by
15+
* the Free Software Foundation, either version 3 of the License, or
16+
* (at your option) any later version.
17+
*
18+
* This program is distributed in the hope that it will be useful,
19+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
* GNU General Public License for more details.
22+
*
23+
* You should have received a copy of the GNU General Public License
24+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
25+
*
1026
*/
1127

1228
#ifndef __UTILS__
1329
#define __UTILS__
30+
#include <CMethods.hxx>
1431
#include <iostream>
32+
1533
/*
16-
* ----- ----- ----- C O N T E N T ----- ----- ----- */
34+
* ----- ----- ----- C O N T E N T ----- ----- -----
35+
*/
36+
1737
namespace utils {
1838
/** Class to create log files */
1939
class Log {
@@ -28,8 +48,10 @@ class Log {
2848

2949
private:
3050
};
31-
51+
bool isInStrV(std::vector<std::string> v, std::string string);
3252
void progress_bar(float part, float all);
53+
void show_license();
54+
void show_usage(std::string name);
3355

3456
} // namespace utils
3557

0 commit comments

Comments
 (0)