diff --git a/src/cluster/cluster.cpp b/src/cluster/cluster.cpp
index 8429523f47bd069333baf5be16045f37e07b6c16..a24d950338f93993fd002fde948c7089e4c390d7 100644
--- a/src/cluster/cluster.cpp
+++ b/src/cluster/cluster.cpp
@@ -1,6 +1,19 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
 
-/*! \file cluster.cp
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
+
+/*! \file cluster.cpp
  *
  * \brief Implementation of the calculation for a cluster of spheres.
  */
diff --git a/src/cluster/np_cluster.cpp b/src/cluster/np_cluster.cpp
index f6cac7c2dd98cf5b5774b6aea2c9fb9568f5853b..8b3dab779a1a32b92a1047c0555452af49a6d2a7 100644
--- a/src/cluster/np_cluster.cpp
+++ b/src/cluster/np_cluster.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file np_cluster.cpp
  *
diff --git a/src/libnptm/Commons.cpp b/src/libnptm/Commons.cpp
index 694854ec9589e55470f7baf00e73da801484f392..f6a1c46a93af496fda1eae00aeb3cbc492427a65 100644
--- a/src/libnptm/Commons.cpp
+++ b/src/libnptm/Commons.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file Commons.cpp
  *
diff --git a/src/libnptm/Configuration.cpp b/src/libnptm/Configuration.cpp
index 79968b97e885238e85ea62a8a69c42438bea7652..3aaa1bb425cd31b01583dccaf50a196d0cc544fb 100644
--- a/src/libnptm/Configuration.cpp
+++ b/src/libnptm/Configuration.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file Configuration.cpp
  *
diff --git a/src/libnptm/TransitionMatrix.cpp b/src/libnptm/TransitionMatrix.cpp
index cb383e9f5ee58ce3d237e1f2dc869f7a3358f4f9..12d0671dcb4defd0db86f1bdf5314d35be4d57b9 100644
--- a/src/libnptm/TransitionMatrix.cpp
+++ b/src/libnptm/TransitionMatrix.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file TransitionMatrix.cpp
  *
diff --git a/src/libnptm/algebraic.cpp b/src/libnptm/algebraic.cpp
index 8811abca884727176dc5c76439004ddc1b27f69e..637091765d2fe7d5c1de7d6d332de69ce208a1db 100644
--- a/src/libnptm/algebraic.cpp
+++ b/src/libnptm/algebraic.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file algebraic.cpp
  *
diff --git a/src/libnptm/clu_subs.cpp b/src/libnptm/clu_subs.cpp
index 937ac24d4c512133c1d6c224fd9f675a9698a9a0..5a7e3db5c1b79121277e112d3e3a25feb0fd7d52 100644
--- a/src/libnptm/clu_subs.cpp
+++ b/src/libnptm/clu_subs.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file clu_subs.cpp
  *
diff --git a/src/libnptm/lapack_calls.cpp b/src/libnptm/lapack_calls.cpp
index 363ba2afca48486f1799b394506401c267294f24..718b1ecbdeb14b79849ba9d6cb20d201e0be8178 100644
--- a/src/libnptm/lapack_calls.cpp
+++ b/src/libnptm/lapack_calls.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file lapack_calls.cpp
  *
diff --git a/src/libnptm/logging.cpp b/src/libnptm/logging.cpp
index cbec205616d0572d30f93036a70d01f2b8ff6ea1..7565e91305f9f8e00d75714a5b8fc6279a9b50e1 100644
--- a/src/libnptm/logging.cpp
+++ b/src/libnptm/logging.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file logging.cpp
  *
diff --git a/src/libnptm/sph_subs.cpp b/src/libnptm/sph_subs.cpp
index ec130527737499311537c3eea4264b9927220c98..208f4bd3d4013c5a6ee44f811ab94164912be4d4 100644
--- a/src/libnptm/sph_subs.cpp
+++ b/src/libnptm/sph_subs.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file sph_subs.cpp
  *
diff --git a/src/libnptm/tfrfme.cpp b/src/libnptm/tfrfme.cpp
index 081563e3ff10777d893dd6af051c26ae18c5d87a..b0216522c549b4418caa1391c5f845b4953ec34b 100644
--- a/src/libnptm/tfrfme.cpp
+++ b/src/libnptm/tfrfme.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file tfrfme.cpp
  *
diff --git a/src/libnptm/tra_subs.cpp b/src/libnptm/tra_subs.cpp
index 74b8f1b642e51558775b2eb81ec7a94d0eec3ed3..b952d467f68ffec75bbaaddbfa2df6a4ad2bd8db 100644
--- a/src/libnptm/tra_subs.cpp
+++ b/src/libnptm/tra_subs.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file tra_subs.cpp
  *
diff --git a/src/libnptm/types.cpp b/src/libnptm/types.cpp
index a9fd71be5682403b831ca13926fb6eff88ebac69..2f17bc9627125eae563ffea7131f381ed5b80083 100644
--- a/src/libnptm/types.cpp
+++ b/src/libnptm/types.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file types.cpp
  *
diff --git a/src/sphere/np_sphere.cpp b/src/sphere/np_sphere.cpp
index afb3fdbd2a0d4d2256e5ef9c9b33f6bedca1d9fa..506931cce1a6411ed233b55b19777080682ffa49 100644
--- a/src/sphere/np_sphere.cpp
+++ b/src/sphere/np_sphere.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file np_sphere.cpp
  *
diff --git a/src/sphere/sphere.cpp b/src/sphere/sphere.cpp
index 2c0dd6fdf65b2afde730afc88f3e5a5cfb500342..c7f6b11f4bc0bb8691517fbcec75f763d46e0c07 100644
--- a/src/sphere/sphere.cpp
+++ b/src/sphere/sphere.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file sphere.cpp
  *
diff --git a/src/testing/test_TEDF.cpp b/src/testing/test_TEDF.cpp
index b790afd907df1dbb229e0f0ac4b214fd42ea7d5b..11ba3f55182380b867b4359c181feb15ca65dd6c 100644
--- a/src/testing/test_TEDF.cpp
+++ b/src/testing/test_TEDF.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 //! \file test_TEDF.cpp
 
diff --git a/src/testing/test_TTMS.cpp b/src/testing/test_TTMS.cpp
index 77b8d7c22b1fdc59a73a7165ae2369c2e3c368ff..1ed1615d9c069bdfaedca56647425cfda5da20f6 100644
--- a/src/testing/test_TTMS.cpp
+++ b/src/testing/test_TTMS.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 //! \file test_TTMS.cpp
 
diff --git a/src/trapping/cfrfme.cpp b/src/trapping/cfrfme.cpp
index eb26b6c0b634cf50c75acb097d74116708e0ed8d..d67d464dbce342fdaa0e8e22d0ee8a92b4a9f888 100644
--- a/src/trapping/cfrfme.cpp
+++ b/src/trapping/cfrfme.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file cfrfme.cpp
  *
diff --git a/src/trapping/clffft.cpp b/src/trapping/clffft.cpp
index 4107563a8d566fb3a2ecd8ee0c9ee0e7216d362e..0fe64aec2adf821c4d01520b7fd72b662ee0ae8a 100644
--- a/src/trapping/clffft.cpp
+++ b/src/trapping/clffft.cpp
@@ -1,4 +1,17 @@
-/* Distributed under the terms of GPLv3 or later. See COPYING for details. */
+/* Copyright 2024 INAF - Osservatorio Astronomico di Cagliari
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ */
 
 /*! \file clffft.cpp
  *