Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
when pairing was performed for multiple model datasets scaling of mopitt observation occured each time. This carried over after pairing for each model because observation dataset was being shallow copied into the paired dataset.
  • Loading branch information
mebruckner authored Mar 6, 2024
1 parent 0114784 commit 45d9734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion melodies_monet/util/satellite_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def mopitt_l3_pairing(model_data,obs_data,co_ppbv_varname):

# Add variable name to smoothed model dataarray, combine with obs_data
smoothed = smoothed.rename(co_ppbv_varname+'_column_model')
ds = xr.merge([smoothed,obs_data])
ds = xr.merge([smoothed,obs_data.copy(deep=True)])

# Apply scaling to drop scientific notation (x10^{18} molec/cm2 instead of molec/cm2)
## Taylor plot doesn't work if don't do this.
Expand Down

0 comments on commit 45d9734

Please sign in to comment.