Git Product home page Git Product logo

cmac2.0's Introduction

CMAC 2.0

CMAC: Corrected Precipitation Radar Moments in Antenna Coordinates

CMAC 2.0 (Corrected Moments in Antenna Coordinates version 2) is a set of algorithms and code that does corrections to Radar data, but also adds fields to the original data. Using fuzzy logic CMAC also calculates gate IDs such as rain, snow and second-trip. Some other examples of the corrections done are velocity dealiasing and attenuation-corrected reflectivity. Example of fields added are rain_rate_A, velocity_texture and filtered_corrected_differential_phase.

More information can be found at https://www.arm.gov/capabilities/vaps/xsapr-cmac-142

Interactive notebooks on the cloud

The Atmospheric Community Toolkit is installed in this binder and can be used to download data for CMAC2.0 from ARM Data Discovery. For an example on how to download ARM datastreams from Data Discovery, click here.

All ARM files are in the format that is needed by CMAC2.0 for processing.

Install

CMAC 2.0 and the required environment can be installed by using the instructions below:

git clone https://github.com/EVS-ATMOS/cmac2.0.git
cd cmac2.0
conda env create -f environment-3.6.yml
source activate cmac_env
export COIN_INSTALL_DIR=/Users/yourusername/youranacondadir/envs/cmac_env

You will need to install Anaconda Compilers for the installation of CyLP. These compilers can be found here and differ between OS: https://docs.conda.io/projects/conda-build/en/latest/resources/compiler-tools.html

After the compilers are installed, you should be able to install CyLP with:

pip install git+https://github.com/coin-or/CyLP.git

Scripts such as cmac_animation and cmac_dask require additional dependencies:

source activate cmac_env
conda install -c menpo ffmpeg=version
conda install dask ipyparallel

Note: For ffmpeg, depending on the user's operating system, the version will need to be replaced with corresponding version number found here:

https://anaconda.org/menpo/ffmpeg

Using CMAC 2.0

Once downloaded, CMAC 2.0 can be used in the terminal. The required arguments are radar_file, sonde_file, clutter_file and config_dict. There are optional arguments such as out_radar, image_directory and sweep for the quicklooks.

An example:

cmac /home/user/cmac2.0/data/radar_file.nc /home/user/cmac2.0/data/sonde
_file.cdf /home/user/cmac2.0/data/clutter_file.nc config_xsapr_i5

Optional arguments can be called by using:

-o -id -sw

There is currently a config.py file with dictionaries for radars. Down the road, radars such as C-SAPR can be added to config.py which then can be called with the config_dict argument.

Lead Developers

  • Scott Collis
  • Robert Jackson
  • Zach Sherman

cmac2.0's People

Contributors

jrobrien91 avatar rcjackson avatar scollis avatar zssherman avatar

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.