Diferencia entre revisiones de «ORCHIDEE»
Sin resumen de edición |
|||
| Línea 439: | Línea 439: | ||
qsub launch_orchidee.pbs | qsub launch_orchidee.pbs | ||
</pre> | </pre> | ||
== Test: let's look at Marcos Juárez, Córdoba, Argentina == | == Test: let's look at Marcos Juárez, Córdoba, Argentina == | ||
| Línea 699: | Línea 697: | ||
python3 $pyHOME3/nc_var.py -o valmod -S mulc,3600 -f ~/sandbox/get/WFDE5_CRU_GPCC_2002.nc -v time | python3 $pyHOME3/nc_var.py -o valmod -S mulc,3600 -f ~/sandbox/get/WFDE5_CRU_GPCC_2002.nc -v time | ||
python3 $pyHOME3/nc_var.py -o varaddattrk -S 'units|seconds!since!1900-01-01!00:00:00|S' -v time -f sandbox/get/WFDE5_CRU_GPCC_2002.nc | python3 $pyHOME3/nc_var.py -o varaddattrk -S 'units|seconds!since!1900-01-01!00:00:00|S' -v time -f sandbox/get/WFDE5_CRU_GPCC_2002.nc | ||
If everything went fine, one should have (at least) | If everything went fine, one should have (at least) | ||
Revisión del 15:08 25 sep 2026
ORCHIDEE
This manual provides the information about the land-surface model ORCHIDEE (technical page for advanced users) from Institute Pierre Simone Laplace (IPSL). Its installation on the HPC of the CIMA called hydra.
Model description
- ORCHIDEE: sechiba & stomate
- Two major modes of simulations: Off-line (no feedback) / on-line (LMDZ, WRF)
All forcing data to run ORCHIDEE is located here in CIMA's HPC:
${ORforcing}=/share/DATA/ORCHIDEE/IGCM/SRF
Off-line atmospheric forcings
Desdcribed here: ORforcings
Atmoshperic variables required by ORCHIDEE: LWdown, PSurf, Qair, Rainf, SWdown, Snowf, Tair, Wind_E, Wind_N
Available data-bases in hydra:
- WFDE5 CRU GPCC (v1, 0.5°): mixing ERA5 CRU and GPCC:
WFDE5_CRU_GPCC_[YYYY].ncathydra:
${ORforcing}/METEO/WFDE5_CRU_GPCC/v1/
Morphological forcings as data-base
Installed in CIMA's HPC hydra at
/share/DATA/ORCHIDEE/IGCM/SRF
To be interpolated to the domain of simulation (region and resolution) at the first time step (done by ORCHIDEE) Mandatory:
PFT map
15 PFT, percentage of each by grid-point (maxvegetfrac, see table for equivalencies of PFT)
| num | description |
|---|---|
| 1 | bare ground |
| 2 | tropical broad-leaved evergreen |
| 3 | tropical broad-leaved raingreen |
| 4 | temperate needleleaf evergreen |
| 5 | temperate broad-leaved evergreen |
| 6 | temperate broad-leaved summergreen |
| 7 | boreal needleleaf evergreen |
| 8 | boreal broad-leaved summergreen |
| 9 | boreal needleleaf summergreen |
| 10 | C3 grass |
| 11 | C4 grass |
| 12 | C3 agriculture |
| 13 | C4 agriculture |
| 14 | C3 tropical natural grassland |
| 15 | C4 boreal natural grassland |
PFTmap_IPCC_[YYYY].nc (0.5°, basic), a file per/year ESA-LUH2, v2 at:
${ORforcing}/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v2/PFTmap_2000.nc
carteveg5km.nc (Olson's global classification of 94 PFT, 5km transformation)
No temporal evolution at:
${ORforcing}/PFTMAPS/

Soil characterisitcs
soilcolorused to define background-albedo: albedowet, albedodry (using values from 1 to 8). To be find insoils_param.nc, soils_param_zobler.ncsoiltextureto define soil type, to be grouped as 3 types: corse, medium, fine (from 7 values). 3 different sources:soils_param.nc(1.°, basic)soils_param_zobler.nc: 7 types (1°)soils_param_usda.nc: 12 types (0.08331404°)
WOODHARVEST
SOIL_BULK
Additional
- LAI: on runs without
stomate(otherwise, LAI is dynamic), one needs to provide climatologies of the LAI: 13 LAI values which evolves along time (monthly climatology)lai2D_[00/01/03].nc - Albedo: on runs without
stomate(otherwise, albedo is dynamic) new maps only for the bare soil albedo at higher resolution to avoid the use ofsoilcolorfromsoils_param.nc. Fixed values for wet/dry background albedo. Or a new filealb_bg_jrctip.nc: albedos climatologies retrieved from MODIS satellite JRC-TIP packagealb_bg_modisopt_2D.nc: Another non.climatological albedo from MODIS
${ORforcing}/albedo
- Routing:
routing.nc: worldwide data-base of river basins at 0.5°: 1-8 direction, <89 point at the sea, ... (trip), riverID (basins), water retention (topoind), etc...,cartepente2d_15min.nctopography slope (0.25°) - Floodplains:
floodplain.ncTo account for maximum flooded area:lake, dam, swamp, saline, pond, irrig - Chemistry:
orchidee_fertilizer_1995.ncwith fertilization (for N2) for rice and the others - Reference Temperature: To be used as a reference temperature for the soil (
reftemp.nc)
All ORCHIDEE configuration is controlled by run.def.: Domain, period, physics activation, sechiba/stomate, routing, floodplains, ... ORparameters
I/O controlled by *.xml files from XIOS libraries
iodef.xml: main XIOS configurationcontext_orchidee.xml: I/O global configuration for ORCHIDEEfield_def_orchidee.xml: definition of I/O variables (names, units, dimensions, long-name, ...)file_def_orchidee.xml: definition of variables at each file (output frequency, level of output, ...)
Water balance & routing scheme
ORCHDIEE represent water dynamics in 2 main aspects: soil moisture, river routing (when activated).
Model manages water via 3 different reservoirs: river, fast and slow
soil moisture
This accounts for the water that reaches the soil. Precipitation can be intercepted by vegetation or direcly move away as runoff if it can not infiltrate.
Soil misture can directly evaporated from surface, or by transpiration from vegetation (via its roots).
river routing
Water than it is not kept in soil and translates horizontally in the surface as river water. This water is not evaporated unless it reaches a floodplains (when activated) from where it can evaporate.
![]() |
Installation
This installation guide is based on the installation in different machines from CIMA/DCAO computational resources:
- CIMA's HPC ORcompHYDRA hydra
- DCAO's computational classroom ORcompDCAO DCAO
which it must have pre-installed: netCDF libraries (netcdf-dev, netcdff), MPI libraries (mpi, mpich), Fortan and C compilers (gcc, gcc++ gfortran), pre-processing tools (cpp), subversion repository code tool (svn), Makefile (make, gmake), shells (ksh, csh)
NOTE
Each new version of the code, has its own XIOS files! Make sure that you're using the right ones!! (otherwise, you would have an error...)
Running the model
ORCHIDEE can run in a large variety of forms. Here is desribed a simple way to run a year of simulation using the off-line configuration and the trunk branch.
Ejemplo básico
Preparé un ejemplo muy rápido para ver si las cosas funcionan con el work-flow (voy a ir documentándolo). Pero por el momento podríamos empezar por esto. Es una simulación de 5 días, troceada cada 2 días.
/share/tools/workflows/OR4L/hydra/examples/OR4L_fast_daily
Acá encontrarás un archivo y un directorio:
EXPERIMENTparameters.txt: Este es el archivo que controla todo el workflow. En él se definen los parámetros de ejecución, periodo, etc...EXPinf: este directorio contiene todas las namelist y archivos afines que se necesitan para poder realizar la simulación
En el EXPERIMENTSparameters.txt tendrías que configurar los directorios de trabajo del workflow y reemplazar [user] por tu nombre de usuaria.
La idea del workflow es la siguiente:
domainHOME: directorio con toda la información de las namelists. Es donde tiene que moverse el directorio EXPinfexpHOME: directorio raíz del workflow. En donde se lanza por primera vez el job inicial del workflow llamado'launch_experiment.pbs'. De este directorio se creará la estructura de directorios de la parte de manejo del workflow. Este directorio se llamará[ExpName]/[SimName](los valores de[ExpName]y[SimName]están definidos dentro deEXPERIMENTSparameters.txt)runHOME: directorio donde correrá el modelo (distinto de'expHOME'). En este directorio se creará también los nuevos directorios[ExpName]/[SimName]storageHOME: directorio donde se guardarán las salidas y los logs de la simulación. En este directorio también se creará la estructura[ExpName]/[SimName]
La idea detrás de esto es que uno puede tener muchas simulaciones dentro del mismo experimento [ExpName]
Todos los archivos del workflow están en:
/share/tools/workflows/OR4L/hydra
¿Cómo simular?
- Siempre trabajar desde el direcotorio
/home/[user]/salidas/ - Crear un duirectorio en salidas que te sirva de punto de partida de todos los experimentos. Por ejemplo yo tengo
/home/[user]/salidas/estudios
- Crear el directorio raíz del workflow (el
expHOME). Por ejemplo
/home/[user]/salidas/estudios/ORtest
- Desde
/home/[user]/salidas/estudios/ORtest, copia:
cp /share/tools/workflows/OR4L/hydra/launch_experiment.pbs ./ cp /share/tools/workflows/OR4L/hydra/examples/OR4L_fast_daily/EXPERIM ENTparameters.txt ./
- Adapta los valores de
EXPERIMENTSparamaters.txta tu antojo. Por ejemplo:
domainHOME = /home/[user]/salidas/EXPS/ORtest/EXPinf expHOME = /home/[user]/salidas/estudios/ORtest runHOME = /home/[user]/salidas/RUN/ORtest storageHOME = /home/[user]/salidas/EXPS/ORtest
- Modifica el valor de
[user]delaunch_experiment.pbs
#PBS -M [user]@cima.fcen.uba.ar
- Ya podés lanzar la simulación test
qsub launch_experiment.pbs
La simulación dura menos de 1 hora (si no hay atasco en la cola)
Yo propongo lo siguiente:
- Probá el test
- Creá una nueva simulación (cambiándole el nombre y modificando algún valor del
run.def). Esto se puede hacer desdeEXPERIMENTparameters.txten la entrada:nlparameters. Por ejemplo duplícale el valor del CO2 atmosférico a 700. - Corré una nueva simulación que corra 3 meses con trozos de 1 mes
salida
La salida está organizada de esta manera en el directorio storageHOME (hasta ahí donde yo entiendo, haría falta listar el contendio de cada archivo y ver qué contienene exactamante):
forcing_by_ORCHIDEE_[period_chunk].nc: Variables usadas para forzar off-line ORCHIDEEsechiba_rest_out_[period_chunk].nc: restart de SECHIBAstomate_rest_out_[period_chunk].nc: restart de STOMATEsechiba_history_[period_chunk].nc: salida estándard de SECHIBAsechiba_history_4dim_[period_chunk].nc: salida de SECHIBA de
variables con más de 1 nivel
sechiba_out_2_[period_chunk].nc: otra salida de SECHIBAstomate_history_[period_chunk].nc: salida estándard de STOMATEstomate_ipcc_history_[period_chunk].nc: salida de STOMATE para el IPCCstomate_history_4dim_[period_chunk].nc: salida de STOMATE de variables con más de 1 nivelstomate_fixed_dia_[period_chunk].nc: salida de STOMATE de clases de diámetro fijosechiba_stomate_history_[period_chunk].nc: mezcla de variables de SECHIVA y STOMATE
Toda la información de las variables que contiene cada archivo está en el archivo EXPinf/file_def_orchidee.xml
No sé mucho de la cantidad infinita de variables. Acordáte que aproximádamente:
- SECHIBA: parte física
- STOMATE: parte bioquímica
Ejemplos de variables a mirar serían:
- SECHIBA 1D
lai: LAILAImean: LAI medioevap: evaporaciónevapot: evaporación potencialfluxlat: flujo de calor latentefluxsens: flujo de calor sensiblevegetfrac: fracción de cobertura por PFT en la celdamaxvegetfrac: máxima fracción de cobertura posible por PFT en la celda
- SECHIBA 3D
SoilMoist: humedad del suelotemp_sol_new: temperatura del suelo
- STOMATE
npp: producción primaria netagpp: producción primaria bruta
Algunas variables están en porcentajes de la celda, o en flujos, ... es importante tenerlo claro para ir entendiendo qué quire decir cada variable.
Tené presente que estas simulaciones no son nada realistas, puesto que sólo son 4 días y ORCHIDEE anda en medio del spin-up (de al menos 1 año...)
Copié mi simualción de test a Papa-Deimos:
https://wiki.cima.fcen.uba.ar/index.php/papa-deimos
Para que no tengas que descargarte nada y puedas hacer todas tus pruebas.
/datos/MOD/ORCHIDEE/benchmark/OR4L_fast_daily/orig
Running the model in DCAO's computational lab
Follow this link runORDCAO to set-up the runs in the machines of DCAO's computational laboratory
OR4L: L. Fita's work-flow management for ORCHIDEE
ORCHIDEE should be run with libIGCM which is a work-flow management for ORCHIDEE developed at the IPSL.
However, L. Fita developed an independent simpler and less potent work-flow called OR4L. See how it works in this wiki page ORCHIDEE/OR4L OR4L
OR_1proc: DCAO's 1-proc work-flow management for ORCHIDEE
DCAO's computational lab machines are 1 processors standard machines. A new work-flow management has been created for such cases. Mostly related to the UMI & DCAO course of [land-atmosphere interaction and its modelling]. All the iformation is available in the wiki page OR1proc OR 1proc
