We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff6dd3 commit 1a3f507Copy full SHA for 1a3f507
hypergas/unit_spectrum.py
@@ -164,8 +164,9 @@ def _read_refdata(self):
164
E_filename = 'solar_irradiance_0400-2600nm_highres_sparse.nc'
165
Edata = xr.open_dataset(os.path.join(self.irradiance_dir, E_filename))['irradiance']
166
167
- # convert units to W m-2 um-1
+ # convert units to mW m-2 nm-1
168
Edata *= 1e3
169
+ Edata.attrs['units'] = 'mW m-2 nm-1'
170
171
# read abs data
172
abs_filename = f'absorption_cs_ALL_{MODE[self.model]}.nc'
0 commit comments