Skip to content

Commit

Permalink
Merge pull request #1441 from knutfrode/dev
Browse files Browse the repository at this point in the history
Updated CMEMS arithmetic example to also sum Eulerian+Stokes+Tides
  • Loading branch information
knutfrode authored Nov 11, 2024
2 parents 25093ee + 8ea05a0 commit d2132d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/example_long_cmems_currents.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#%%
# Mapping other variables to required standard_name's
reader_tides_only = Reader(ds, standard_name_mapping={
reader_tides = Reader(ds, standard_name_mapping={
'utide': 'x_sea_water_velocity',
'vtide': 'y_sea_water_velocity',
}, name='Tides only')
Expand All @@ -45,11 +45,12 @@
#%%
# Run and compare simulations using the different current components
cases = {'Eulerian current': reader_default,
'Tides only': reader_tides_only,
'Tides only': reader_tides,
'Stokes drift only': reader_stokes,
'Total current': reader_total,
'SUM: Eulerian + Tides': reader_default + reader_tides_only, # Experimental feature
'SUM: Eulerian + Tides': reader_default + reader_tides, # Experimental feature
'SUM: Eulerian + Stokes': reader_default + reader_stokes, # Experimental feature
'SUM: Eulerian + Tides + Stokes': reader_default + reader_tides + reader_stokes # Experimental feature
}

simulations = []
Expand Down

0 comments on commit d2132d3

Please sign in to comment.