Skip to content

Read skin temperature from input netcdf file#167

Open
ChrisC28 wants to merge 3 commits intodalesteam:devfrom
ChrisC28:dev
Open

Read skin temperature from input netcdf file#167
ChrisC28 wants to merge 3 commits intodalesteam:devfrom
ChrisC28:dev

Conversation

@ChrisC28
Copy link

@ChrisC28 ChrisC28 commented Apr 3, 2025

I've modified modsurface.f90 to

  • read from a netcdf file with dimension x,y,time
  • initialise profiles from input tskin
  • temporally interpolate to the current model time step (following the proceedure in the temporally varying surface flux routines)

I've added several helper subroutines in modnetcdf.f90 to faciliate read write.
The user needs to specify ltskininp = .true. in the NAMOPTIONS file.

Input checking needs some additional work. For example, need to check the input file timesteps to ensure that they align with the model timesteps. At present, the model will not fail but simply set the tskin equal to the fist timestep in the file.

call initchem
call initsurface
PRINT *, thls
PRINT *, '============='
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess these print statements are for debugging? Can you remove those before we merge your branch? Otherwise, the changes look good to me :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants