Skip to content

Read skin temperature from input netcdf file #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

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.

@@ -364,6 +364,9 @@ subroutine startup(path)
call initradiation
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