Part 10: Visualising Results
FATES typically writes one NetCDF output file per month.
Before analysis it is often useful to concatenate them into a single file.
Move to the Run Directory
Example:
cd output/fates-tutorial-bci_jra-inventory_init.2024-08-30/run
Concatenate Monthly Files
Use NCO:
ncrcat -h \
fates-tutorial-bci_jra-inventory_init.2024-08-30.elm.h0.190*.nc \
fates-tutorial-bci_jra-inventory_init.2024-08-30.sofar.nc
This command combines all monthly files into a single NetCDF file.
Inspect the Output
View metadata:
ncdump -h fates-tutorial-bci_jra-inventory_init.2024-08-30.sofar.nc
View dimensions and variables:
ncks -m fates-tutorial-bci_jra-inventory_init.2024-08-30.sofar.nc
Visualise interactively:
ncview fates-tutorial-bci_jra-inventory_init.2024-08-30.sofar.nc
Plotting Tutorials
Example analysis notebooks are available from the FATES tutorial:
https://github.com/NGEET/fates-tutorial/tree/main/fates-tutorial-jupyter-book
Both:
Python
R
versions are available.
These provide examples for:
- Biomass trajectories
- Basal area
- PFT composition
- Mortality
- Recruitment
- Carbon fluxes
Example Plotting Scripts
Additional plotting scripts are available at:
https://github.com/sdeherto/CLM-FATES4UGent/tree/main/plotting
These can be used as a starting point for analysing your own simulations.