Skip to content

PORTAL-CEOS/ANHALYZE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANHALIZE (beta)

ANHALIZE is an analysis tool for the ANHA configuration of the NEMO model.

Description

ANHALIZE is an analysis tool for the Arctic and Northern Hemisphere Atlantic (ANHA) configuration of the NEMO model. The focus is on data manipulation, analysis, and visualization.

This tool has been originally developed to support ocean modeling research at the Centre for Earth Observation Science (CEOS), at the University of Manitoba.

NOTE: This code is stable, but new features are currently under development.

Installation

Clone this GitHub repo:

git clone https://github.com/PORTAL-CEOS/ANHALYZE.git

Install the dependencies in your environment with:

cd ANHALYZE/
python -m pip install -r requirements.txt

Then install the package with:

python -m pip install .

Future Note: This will become a PyPI application.

Usage

Once installed you can import library:

import anhalyze as ah
aa = ah.AnhaDataset(filename)
aaa = aa.sel(lat_range=[50,65],lon_range=[-93,-75])

Example

This simple example requires a .nc grid file, and a .nc mask file.

import anhalyze as ah

# Open file
aa = ah.AnhaDataset(filename)

# Apply mask file
aa.apply_mask(mask_filename)

# Do selection of lat_range, lon_range, and depth_range, in that order.
aaa = aa.sel([50,65],[-93,-75],[0,300])

# Plot region for a selected variable.
aaa.show_var_data_map(var='votemper')

Version History

  • 0.7 (upcoming)
    • To release AnhalyzeLocation class.
  • 0.6 (upcoming)
    • To release AnhalyzeProject class.
  • 0.5 (upcoming)
  • 0.0.1
    • Current version in Beta.

License

This is a placeholder.

-------------------- Deprecated below this line. --------------------

Need to add the following environmental variables to your .bash_profile (or .bashrc, etc..), and edith paths to your needs:

#------------------------------------------------------------- 
#ANHALIZE setup
#-------------------------------------------------------------
export MASK_PATH='/root_path/user/ANALYSES/MASKS/'
export DATA_PATH='/root_path/user/NEMO/ANHA4/ANHA4-Wxx000-S/'
#-------------------------------------------------------------

About

Python support for ANHA research at CEOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages