Code Monkey home page Code Monkey logo

diagnostics_vec's Introduction

diagnostics_vec: A diagnostics package for MITgcm

Authors: Michael Wood, Ian Fenty, April Shin

Citation

If you use this package in your work, the authors kindly request that you cite Wood et al 2024 (DOI: 10.1029/2023GL107983)

Package Purpose and Motivation

The MITgcm model has one method for outputting model "diagnostics" for a particular experiment: dump the entire field. While entire model fields are desired for many experiements, this is not always the case. Here, we design a model package which is capable of outputting model diagnostics in a subset of the model domain e.g. along a vector (or "vec").

Getting Started

The purpose of this repository is to provide a convenient way to merge new package files, verification experiments, and documentation into a fresh clone (and potentially an eventual fork) of the main branch of MITgcm. To faciliate this merge, there are three convenient scripts provided in the utils directory. To start, clone this repository into a convenient drive on your machine. Then, cd to the utils directory and run the following code from the command line, passing the path to a (preferrably fresh) clone of the main branch of the MITgcm:

python3 copy_doc_files_to_MITgcm.py -m /path/to/MITgcm_fresh
python3 copy_pkg_files_to_MITgcm_.py -m /path/to/MITgcm_fresh
python3 copy_verification_files_to_MITgcm.py -m /path/to/MITgcm_fresh

Repository Structure:

The main components to be included in the eventual pull request are staged in three directories as follows:

  • doc: updates to the documentation for the readthedocs page
  • pkg: the diagnostics_vec package files
  • verification: experiments to be added to the verification directory of MITgcm to ensure the package is working as desired

Note that this repository has two additional directories which will not be included in the eventual pull request:

  • example_configurations: a set of examples showing how the package works in a variety of configurations - jupyter notebooks are additionally provided to demonstrate the package use
  • utils: functions that facilitate the development of this package and the eventual pull request, as described above

Recommended Future Improvements to diagnostics_vec

  1. Implement option to output data into a netCDF file, using the mnc package.
  2. Add option to output a "snapshot" by providing frequecy as a negative number (following the convention established in the diagnostics package)
  3. Add option to use different averaging frequencies for each mask. โœ…
  4. Add option to limit number of iterations stored in output files โœ…

California Institute of Technology Copyright Statement

Copyright 2021, by the California Institute of Technology. ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged. Any commercial use must be negotiated with the Office of Technology Transfer at the California Institute of Technology.

This software may be subject to U.S. export control laws. By accepting this software, the user agrees to comply with all applicable U.S. export laws and regulations. User has the responsibility to obtain export licenses, or other export authority as may be required before exporting such information to foreign countries or providing access to foreign persons.

diagnostics_vec's People

Contributors

mhwood avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

owang01 mpoinelli

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.