source: branches/iLoveclim/SOURCES/Antarctique_general_files/lect-Ant_clim_CISM_gen_dat.f90 @ 30

Last change on this file since 30 was 4, checked in by dumas, 10 years ago

initial import GRISLI trunk

File size: 2.0 KB
Line 
1!> \file lect-Ant_clim_CISM_gen_dat.f90
2!!Module pour la lecture du climat
3!<
4
5!> \namespace lect_clim_act_ant_gen
6!! Module pour la lecture du climat
7!! \author ...
8!! \date ...
9!! @note Used module
10!! @note   - use module3D_phy
11!! @note   - use ablation_ann
12!<
13module lect_clim_act_ant_gen
14
15  use module3D_phy
16  use ablation_ann                     ! le module pdd base sur Tann et Tjuly
17  use interface_input
18  character(len=100) :: precip_file      ! precipitations
19
20contains
21
22  subroutine input_climat_ref()
23
24    namelist/climat_CISM_gen/precip_file
25
26428 format(A)
27    rewind(num_param)                     ! pour revenir au debut du fichier param_list.dat
28    read(num_param,climat_CISM_gen)
29
30    write(num_rep_42,428)'!___________________________________________________________' 
31    write(num_rep_42,428)'!  module  lect_topo_ant_CISM      '
32    write(num_rep_42,climat_CISM_gen)
33    write(num_rep_42,428)'!___________________________________________________________' 
34
35
36    precip_file  = trim(dirnameinp)//trim(precip_file)
37
38    call lect_input(3,'precip',1,precip,precip_file,trim(dirnameinp)//trim(runname)//'.nc')
39    !call lect_datfile(nx,ny,precip,1,precip_file)                  ! precipitation
40
41    precip(:,:)=precip(:,:)/0.91
42    acc(:,:)=precip(:,:)
43
44
45    !    temperature en surface :
46    !    parametrisation de Fortuin pour la temperature annuelle.
47    do j=1,ny
48       do i=1,nx
49
507         if (s0(i,j).le.200.) then   ! shelfs
51             tann(i,j)=49.642-0.943*abs(ylat(i,j))
52          else if ((s0(i,j).gt.200.).and.(s0(i,j).lt.1500.)) then ! pente
53             tann(i,j)=36.689-0.005102*s0(i,j)-0.725*abs(ylat(i,j))
54          else if (s0(i,j).ge.1500.) then        ! plateau
55             tann(i,j)=7.405-0.014285*s0(i,j)-0.180*abs(ylat(i,j))
56          endif
57
58          ta0(i,j)=tann(i,j)
59
60          !           pour la temperature d'ete, idem parametrisation huybrechts
61          tjuly(i,j)=tann(i,j)-17.65+0.00222*s0(i,j)&
62               +0.40802*abs(ylat(i,j))
63       end do
64    end do
65
66  end subroutine input_climat_ref
67
68end module  lect_clim_act_ant_gen
Note: See TracBrowser for help on using the repository browser.