Skip to content

Commit

Permalink
codacy fix and update citation file
Browse files Browse the repository at this point in the history
  • Loading branch information
whitetuft committed Feb 29, 2024
1 parent d0f4eeb commit dd9f554
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 66 deletions.
75 changes: 44 additions & 31 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,39 +1,52 @@
title: "PyRTlib: a python package for non-scattering line-by-line microwave Radiative Transfer simulations."
abstract:
"PyRTlib is an attractive educational software to simulate observations from ground-based,
airborne, and satellite microwave sensors. It provides a flexible and user-friendly tool to broadly
simulate how electromagnetic radiation travels through the atmosphere as it interacts with atmospheric constituents.
Reference:
Larosa, S., Cimini, D., Gallucci, D., Nilo, S. T., and Romano, F.: PyRTlib: an educational Python-based library
for non-scattering atmospheric microwave Radiative Transfer computations, Geosci.
Model Dev. Discuss. (preprint), https://doi.org/10.5194/gmd-2023-171, in review, 2023."
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: >-
PyRTlib: a python package for non-scattering line-by-line
microwave Radiative Transfer simulations.
message: 'If you use this software, please cite it as below.'
type: software
authors:
- family-names: "Larosa"
given-names: "Salvatore"
orcid: "https://orcid.org/0000-0003-2588-6082"
- family-names: "Cimini"
given-names: "Domenico"
orcid: "https://orcid.org/0000-0002-5962-223X"
- family-names: "Gallucci"
given-names: "Donatello"
orcid: "https://orcid.org/0000-0002-6814-193X"
- family-names: "Nilo"
given-names: "Saverio Teodosio"
orcid: "https://orcid.org/0000-0003-2630-8727"
- family-names: "Romano"
given-names: "Filomena"
orcid: "https://orcid.org/0000-0002-0544-073X"
version: 1.0.4
license: GPL-3.0
- family-names: Larosa
given-names: Salvatore
orcid: 'https://orcid.org/0000-0003-2588-6082'
- family-names: Cimini
given-names: Domenico
orcid: 'https://orcid.org/0000-0002-5962-223X'
- family-names: Gallucci
given-names: Donatello
orcid: 'https://orcid.org/0000-0002-6814-193X'
- family-names: Nilo
given-names: Saverio Teodosio
orcid: 'https://orcid.org/0000-0003-2630-8727'
- family-names: Romano
given-names: Filomena
orcid: 'https://orcid.org/0000-0002-0544-073X'
repository-code: 'https://github.com/SatCloP/pyrtlib'
url: 'https://satclop.github.io/pyrtlib/'
repository: 'https://pypi.org/project/pyrtlib/'
abstract: >-
PyRTlib is an attractive educational software to simulate
observations from ground-based, airborne, and satellite
microwave sensors. It provides a flexible and
user-friendly tool to broadly simulate how
electromagnetic radiation travels through the atmosphere
as it interacts with atmospheric constituents.
Reference: Larosa, S., Cimini, D., Gallucci, D., Nilo, S.
T., and Romano, F.: PyRTlib: an educational Python-based
library for non-scattering atmospheric microwave
Radiative Transfer computations, Geosci. Model Dev.
Discuss. (preprint), https://doi.org/10.5194/gmd-2023-171,
in review, 2023.
keywords:
- atmospheric-modelling
- microwave
- radiative-transfer-models
- python
license: GPL-3.0
version: 1.0.4
date-released: '2023-12-06'
doi: 10.5281/zenodo.8219145
date-released: 2023-12-06
repository-code: "https://github.com/SatCloP/pyrtlib"
url: "https://satclop.github.io/pyrtlib/"
73 changes: 38 additions & 35 deletions pyrtlib/uncertainty/covariance_matrix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,55 +28,57 @@

PATH = os.path.dirname(os.path.abspath(__file__))

nc = Dataset(os.path.join(PATH, "R17", "Cov_parameters_Cimini_et_al_2018_V1.1.nc"))
nc = Dataset(os.path.join(
PATH, "R17", "Cov_parameters_Cimini_et_al_2018_V1.1.nc"))
R17_111 = np.asarray(nc.variables['Cov_p'][:])
nc.close()

nc = Dataset(os.path.join(PATH, "R17", "Cov_parameters_Cimini_et_al_2019_V2.0.nc"))
nc = Dataset(os.path.join(
PATH, "R17", "Cov_parameters_Cimini_et_al_2019_V2.0.nc"))
R17_112 = np.asarray(nc.variables['Cov_p'][:])
nc.close()

# This file contains uncertainty covariance matrix for oxygen and water vapor parameters
# This file contains uncertainty covariance matrix for oxygen and water vapor parameters
# as estimated in Gallucci et al. ACPD 2023 (https://doi.org/10.5194/egusphere-2023-3160).
# The reference code is Rosenkranz 2019 - version of 2019-02-01,
# available at: http://cetemps.aquila.infn.it/mwrnet/lblmrt_ns.html,
# Note that this is an extension to the one developed in Cimini et al. ACP 2018,
# https://doi.org/10.5194/acp-18-15231-2018-supplement,
# which is also valid for upwelling Brightness Temperatures,
# Radiative Transfer calculations in the range 16-700 GHz.
#
# The list of 135 parameters with units is as follows:
# The reference code is Rosenkranz 2019 - version of 2019-02-01,
# available at: http://cetemps.aquila.infn.it/mwrnet/lblmrt_ns.html,
# Note that this is an extension to the one developed in Cimini et al. ACP 2018,
# https://doi.org/10.5194/acp-18-15231-2018-supplement,
# which is also valid for upwelling Brightness Temperatures,
# Radiative Transfer calculations in the range 16-700 GHz.
#
# The list of 135 parameters with units is as follows:
# 1 : O2 S(300) [%]
# 2 : O2 n_a [adim]
# 3 : O2 gamma_0(300) [GHz/bar]
# 4- 37 : O2 gamma_a(300) [GHz/bar] for N=1-,1+,3-,...,33-,33+ lines
# 38- 71 : O2 y(300) [1/bar] for N=1-,1+,3-,...,33-,33+ lines
# 72-105 : O2 v [1/bar] for N=1-,1+,3-,...,33-,33+ lines
# 106 : H2O C_f(300) [km-1 mb-2 GHz-2]
# 107 : H2O C_s(300) [km-1 mb-2 GHz-2]
# 108 : H2O n_Cf [adim]
# 109 : H2O n_Cs [adim]
# 110 : H2O S 022GHz (line 01) [Hz*cm2]
# 111 : H2O S 183GHz (line 02) [Hz*cm2]
# 112 : H2O S 325GHz (line 04) [Hz*cm2]
# 113 : H2O S 448GHz (line 08) [Hz*cm2]
# 114 : H2O S 556GHz (line 12) [Hz*cm2]
# 115 : H2O S 752GHz (line 15) [Hz*cm2]
# 3 : O2 gamma_0(300) [GHz/bar]
# 4- 37 : O2 gamma_a(300) [GHz/bar] for N=1-,1+,3-,...,33-,33+ lines
# 38- 71 : O2 y(300) [1/bar] for N=1-,1+,3-,...,33-,33+ lines
# 72-105 : O2 v [1/bar] for N=1-,1+,3-,...,33-,33+ lines
# 106 : H2O C_f(300) [km-1 mb-2 GHz-2]
# 107 : H2O C_s(300) [km-1 mb-2 GHz-2]
# 108 : H2O n_Cf [adim]
# 109 : H2O n_Cs [adim]
# 110 : H2O S 022GHz (line 01) [Hz*cm2]
# 111 : H2O S 183GHz (line 02) [Hz*cm2]
# 112 : H2O S 325GHz (line 04) [Hz*cm2]
# 113 : H2O S 448GHz (line 08) [Hz*cm2]
# 114 : H2O S 556GHz (line 12) [Hz*cm2]
# 115 : H2O S 752GHz (line 15) [Hz*cm2]
# 116 : H2O gamma_a 022GHz line01 [GHz/bar]
# 117 : H2O gamma_a 183GHz line02 [GHz/bar]
# 118 : H2O gamma_a 325GHz line04 [GHz/bar]
# 119 : H2O gamma_a 448GHz line08 [GHz/bar]
# 120 : H2O gamma_a 556GHz line12 [GHz/bar]
# 121 : H2O gamma_a 752GHz line15 [GHz/bar]
# 122 : H2O n_a 022GHz (line 01) [adim]
# 123 : H2O n_a 183GHz (line 02) [adim]
# 124 : H2O n_a 325GHz (line 04) [adim]
# 125 : H2O n_a 448GHz (line 08) [adim]
# 126 : H2O n_a 556GHz (line 12) [adim]
# 127 : H2O n_a 752GHz (line 15) [adim]
# 128 : H2O S 380GHz (line 05) [Hz*cm2]
# 129 : H2O S 474GHz (line 10) [Hz*cm2]
# 130 : H2O S 620GHz (line 13) [Hz*cm2]
# 122 : H2O n_a 022GHz (line 01) [adim]
# 123 : H2O n_a 183GHz (line 02) [adim]
# 124 : H2O n_a 325GHz (line 04) [adim]
# 125 : H2O n_a 448GHz (line 08) [adim]
# 126 : H2O n_a 556GHz (line 12) [adim]
# 127 : H2O n_a 752GHz (line 15) [adim]
# 128 : H2O S 380GHz (line 05) [Hz*cm2]
# 129 : H2O S 474GHz (line 10) [Hz*cm2]
# 130 : H2O S 620GHz (line 13) [Hz*cm2]
# 131 : H2O gamma_a 620GHz line13 [GHz/bar]
# 132 : O2 gamma_a(300) 234 GHz [GHz/bar]
# 133 : O2 gamma_a(300) 368 GHz [GHz/bar]
Expand All @@ -85,6 +87,7 @@

PATH = os.path.dirname(os.path.abspath(__file__))

nc = Dataset(os.path.join(PATH, "R19", "Cov_parameters_Gallucci_et_al_ACPD_2023_V1.0.nc"))
nc = Dataset(os.path.join(
PATH, "R19", "Cov_parameters_Gallucci_et_al_ACPD_2023_V1.0.nc"))
R19 = np.asarray(nc.variables['Cov_p'][:])
nc.close()

0 comments on commit dd9f554

Please sign in to comment.