Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

scivision/FClimDex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8773b8a · Feb 5, 2020

History

64 Commits
Nov 29, 2017
Dec 1, 2017
Nov 29, 2017
Nov 29, 2017
Nov 28, 2017
Nov 28, 2017
Dec 24, 2017
Dec 6, 2017
Dec 20, 2017
Nov 28, 2017
Jan 3, 2018
Jan 16, 2018
Dec 20, 2017
Nov 29, 2017
Nov 29, 2017
May 8, 2018
Jan 16, 2018

Repository files navigation

https://travis-ci.org/scivision/FClimDex.svg?branch=master)

FClimDex

http://etccdi.pacificclimate.org/software.shtml

Plots NetCDF4 climate data on animated map. Processes climate text files with Python calling Fortran FClimDex on all files in a directory.

Install

Prereqs

Python >= 3.6

apt install gfortran

Build

python -m pip install -e .

Usage

Process each text *.dat file in directory data/ into 33 output files, in a unique directory for each input file:

python RunFClimdex.py data/

Reads the text data files from the Fortran program FClimdex (as part of RunFClimdex.py) and converts them to a single NetCDF4 file (3-D: time, lat, lon):

python index2nc.py data/ out.nc

Takes NetCDF4 input files and plots a movie of precipitation from them, overlaid on a colorful map:

python PlotPrecip.py

Notes

If you get error

PermissionError: [Errno 13] Permission denied: './FClimDex'

then as usual

chmod +x FClimDex