Skip to content

When selecting single-point execution (SOIL_DATA_OPTION=2), how should I set SOILCL1, SOILCL2, SOILCL3, and SOILCL4? #176

Answered by tslin2
yxjdbly asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
you can try borrowing the code logistics for other variables like soil_category or leaf_area_index to implement SOILCL1, SOILCL2, SOILCL3, SOILCL4, and you had to give each layer soil type variable a value for soil type either in the namelist or in this code directly.

if you do it in the code directly, for example, you give each variable a number to represent soil type for each layer of soil

real :: SOILCL1 = 1
real :: SOILCL2 = 2
real :: SOILCL3 = 2
real :: SOILCL4 = 1

1 means SAND and 2 means LOAMY SAND, you can change to the type you want based on the number you give

Then you will add each variable in the netCDF format, such as

integer ::        var_id_soilcl1

iret = nf90_def_var(…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@yxjdbly
Comment options

@tslin2
Comment options

tslin2 May 7, 2024
Collaborator

Answer selected by yxjdbly
@cenlinhe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants