Ent_utils.git
Contact: Nancy.Y.Kiang@nasa.gov, James.Lui@nasa.gov
Cite:  See comments in the different scripts for authors and citations for different utilities.

Requirements: R, Python, and their NetCDF libraries

-------------
This is a repository for programs and scripts for generating and making various alterations of Ent Terrestrial Biosphere Model (Ent TBM) data files for use in ModelE, specifically those used as the VEG, CROPS, HITEent, LAImax, and LAI monthly input files.  In addition, there are utilities for analyzing ground hydrology.

user:  The user should run all scripts from this directory using relative paths.

extending_data:  Programs to extend vegetation boundary conditions across the coastlines.

kglut_modelE:  Scripts to generate a lookup table of Koeppen-Geiger classification of (usually observed) climate (monthly temperature and precipiation) and vegetation canopy boundary conditions for ModelE (VEG, HITEent, LAImax, and LAI monthly maps); classify a new climate from a ModelE simuations; and output new maps of ModelE input files for VEG, HITEent, LAImax, and LAI for the new climate.

reg_testing:  Scripts for performing regression testing of changes to the Ent TBM codes.

Rfiles:  R driver scripts that use functions in Rfunctions.

Rfunctions:  R utility functions.

Rfunctions/config:  Template config input files to some R files.

--------------------------------
For use on the NASA Center fo Climate Simulation (NCCS) discover linux cluster:
As of 5/07/2025:

#Make an environment file in your home directory:
cd
vi .Renviron
#Put this in your .Renviron:   R_Ent=/discover/nobackup/<username>/Ent_utils/Rfiles

On discover, load these modules, and best to do a module purge beforehand:
module load R/4.3.1
module load python/GEOSpyD/Min24.4.0-0_py3.12

