⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zenith.f90

📁 CCSM Research Tools: Community Atmosphere Model (CAM)
💻 F90
字号:
#include <misc.h>#include <params.h>subroutine zenith(calday  ,clat    , clon   ,coszrs  ,ncol    )!----------------------------------------------------------------------- ! ! Purpose: ! Compute cosine of solar zenith angle for albedo and radiation!   computations.! ! Method: ! <Describe the algorithm(s) used in the routine.> ! <Also include any applicable external references.> ! ! Author: J. Kiehl! !-----------------------------------------------------------------------   use precision   use shr_orb_mod   implicit none#include <crdcon.h>#include <comsol.h>!------------------------------Arguments--------------------------------!! Input arguments!   integer, intent(in) :: ncol                 ! number of positions   real(r8), intent(in) :: calday              ! Calendar day, including fraction   real(r8), intent(in) :: clat(ncol)          ! Current centered latitude (radians)   real(r8), intent(in) :: clon(ncol)          ! Centered longitude (radians)!! Output arguments!   real(r8), intent(out) :: coszrs(ncol)       ! Cosine solar zenith angle!!---------------------------Local variables-----------------------------!   integer i         ! Position loop index   real(r8) delta    ! Solar declination angle  in radians   real(r8) eccf     ! Earth orbit eccentricity factor!!-----------------------------------------------------------------------!   call shr_orb_decl (calday  ,eccen     ,mvelpp  ,lambm0  ,obliqr  , &                      delta   ,eccf      )!! Compute local cosine solar zenith angle,!   do i=1,ncol      coszrs(i) = shr_orb_cosz( calday, clat(i), clon(i), delta )   end do!   returnend subroutine zenith

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -