Skip to content

Commit

Permalink
Merge pull request #304 from mbruckner-work/develop
Browse files Browse the repository at this point in the history
longitude wrap satellite level 3 pairing
  • Loading branch information
rschwant authored Dec 16, 2024
2 parents 0e613bf + da7a553 commit 9534f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions melodies_monet/util/satellite_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def mopitt_l3_pairing(model_data,obs_data,co_ppbv_varname):
raise
# initialize regridder for horizontal interpolation
# from model grid to MOPITT grid
grid_adjust = xe.Regridder(model_obstime[['latitude','longitude']],obs_data[['lat','lon']],'bilinear')
grid_adjust = xe.Regridder(model_obstime[['latitude','longitude']],obs_data[['lat','lon']],'bilinear',periodic=True)
co_model_regrid = grid_adjust(model_obstime[co_ppbv_varname])
pressure_model_regrid = grid_adjust(model_obstime['pres_pa_mid']/100.)

Expand Down Expand Up @@ -137,7 +137,7 @@ def omps_l3_daily_o3_pairing(model_data,obs_data,ozone_ppbv_varname):
column = (du_fac*(model_data['dp_pa']/100.)*model_data[ozone_ppbv_varname]).sum('z')

# initialize regrid and apply to column data
grid_adjust = xe.Regridder(model_data[['latitude','longitude']],obs_data[['latitude','longitude']],'bilinear')
grid_adjust = xe.Regridder(model_data[['latitude','longitude']],obs_data[['latitude','longitude']],'bilinear',periodic=True)
mod_col_obsgrid = grid_adjust(column)
# Aggregate time-step to daily means
daily_mean = mod_col_obsgrid.resample(time='1D').mean()
Expand Down

0 comments on commit 9534f6e

Please sign in to comment.