Skip to content

k1bb/xgtool3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xgtool3

A Python library to read Gtool3 files as an xarray DataArray.

Installation

pip install git+https://github.com/k1bb/xgtool3

Requirements

  • xgtool3 depends on numpy, pandas, dask, and xarray.
  • The location of the directory containing Gtool3 axis files must be set as the environment variable $GTAXDIR.

How to use

Open a single file

import xgtool3 as xgt3
path = 'your_data_dir/ATM/Ts'
file = xgt3.Gtool3(path)
da = file.open()

Open multiple files separated by year

import xgtool3 as xgt3
path = 'your_data_dir/y????/OCN/sst'
# You can specify the path using wildcards.
files = xgt3.MultiFileGtool3(path)
da = files.mfopen()

About

A Python library to read Gtool3 files as xarray.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages