Coder Social home page Coder Social logo

cmip6hack-ocean-o2's People

Contributors

matt-long avatar

Watchers

 avatar  avatar  avatar

cmip6hack-ocean-o2's Issues

plot O2 versus temperature

Examine upper ocean O2 change as a function of temperature.

Here are results from CMIP5, including observations of Ito et al. (2017).
13-o2change-temp-phase-diag

Started in
notebooks/o2_v_temp.ipynb

plot AOU v O2sat phase diagram

Oxygen change results from the combination of direct temperature effects (O2sat) and indirect effects of circulation and respiration on AOU. CMIP5 model should consistent behavior in the extratropics, but divergent behavior in the tropics, leading a complicated picture at the global scale.

10-aou-o2sat-phase-diag

Let's make this plot for CMIP6.

Model skill characterization

Comparisons of simulated O2 fields to WOA:

  • maps of 200-600 m O2 with RMSE, bias, pattern corr
  • volumes at 80, 50, 5 mmol/m^3
  • etc.

General code for model selection?

What models have oxygen data? Well, some have it annually and others monthly. In notebooks/o2_v_temp.ipynb I wrote the following code to select the appropriate union of models.

Should this be moved to util.py to be shared across notebooks?

experiments = ['historical', 'ssp585']

def get_models(table_id, variable_id):
    # all models
    models = set(uni_dict['source_id']['values'])

    for experiment_id in experiments:
        query = dict(experiment_id=experiment_id, variable_id=variable_id, 
                     table_id=table_id, grid_label='gn')  
        cat = col.search(**query)
        models = models.intersection({model for model in cat.df.source_id.unique().tolist()})

    # ensure the CESM2 models are not included (oxygen was erroneously submitted to the archive)
    return models - {'CESM2-WACCM', 'CESM2'}
    
models = {}    

# look for models with O2
# prioritize getting data from annual table, if present
models['Oyr.o2'] = get_models('Oyr', 'o2')
models['Omon.o2'] = get_models('Omon', 'o2') - models['Oyr.o2']
have_oxygen = models['Oyr.o2'].union(models['Omon.o2'])

# find models with temperature that also have O2
models['Omon.theta'] = get_models('Omon', 'thetao').intersection(have_oxygen)

models_all = list(models['Omon.theta'])
models

O2 volume census

How does the volume of hypoxic waters change? How does the volume of anoxic waters change?

Hypoxic threshold = 60 mmol/m^3
Anoxic threshold = 5 mmol/m^3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.