Changeset 3168 for LMDZ6/trunk/libf
- Timestamp:
- Jan 30, 2018, 2:08:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dynphy_lonlat/phylmd/limit_netcdf.F90
r3163 r3168 43 43 ,'degsC ','degrees_C ','degreesC ','degs_C '& 44 44 ,'degree_Celsius','celsius '], & 45 Perc(2) =['%','percent '], &46 Frac(2) =['1.0','1 ']45 Perc(2) =['% ','percent '], & 46 Frac(2) =['1.0 ','1 '] 47 47 48 48 CONTAINS … … 92 92 include "comgeom2.h" 93 93 94 !--- INPUT NETCDF FILES NAMES -------------------------------------------------- 95 CHARACTER(LEN=20) :: icefile, sstfile, dumstr, fnam 96 CHARACTER(LEN=10) :: varname 94 !--- INPUT NETCDF FILES AND VARIABLES NAMES ------------------------------------ 95 CHARACTER(LEN=ns) :: icefile, sstfile, fnam, varname 97 96 98 97 !--- OUTPUT VARIABLES FOR NETCDF FILE ------------------------------------------ 99 REAL :: fi_ice(klon) , verif(klon)98 REAL :: fi_ice(klon) 100 99 REAL, POINTER :: phy_rug(:,:)=>NULL(), phy_ice(:,:)=>NULL() 101 100 REAL, POINTER :: phy_sst(:,:)=>NULL(), phy_alb(:,:)=>NULL() … … 104 103 105 104 !--- VARIABLES FOR OUTPUT FILE WRITING ----------------------------------------- 106 INTEGER :: ierr,nid, ndim, ntim, k, dims(2), ix_sic, ix_sst105 INTEGER :: nid, ndim, ntim, k, dims(2), ix_sic, ix_sst 107 106 INTEGER :: id_tim, id_SST, id_BILS, id_RUG, id_ALB 108 107 INTEGER :: id_FOCE, id_FSIC, id_FTER, id_FLIC, varid_longitude, varid_latitude 109 108 INTEGER :: NF90_FORMAT 110 109 INTEGER :: ndays !--- Depending on the output calendar 111 CHARACTER(LEN= 256) :: str110 CHARACTER(LEN=ns) :: str 112 111 113 112 !--- INITIALIZATIONS ----------------------------------------------------------- … … 342 341 ! Arguments: 343 342 CHARACTER(LEN=*), INTENT(IN) :: fnam ! NetCDF file name 344 CHARACTER(LEN= 10),INTENT(IN) :: varname ! NetCDF variable name345 CHARACTER(LEN= 3), INTENT(IN) :: mode ! RUG, SIC, SST or ALB343 CHARACTER(LEN=*), INTENT(IN) :: varname ! NetCDF variable name 344 CHARACTER(LEN=*), INTENT(IN) :: mode ! RUG, SIC, SST or ALB 346 345 INTEGER, INTENT(IN) :: ndays ! current year number of days 347 346 REAL, POINTER, DIMENSION(:, :) :: champo ! output field = f(t) … … 352 351 !--- NetCDF 353 352 INTEGER :: ncid, varid ! NetCDF identifiers 354 CHARACTER(LEN= 30) :: dnam ! dimension name353 CHARACTER(LEN=ns) :: dnam ! dimension name 355 354 !--- dimensions 356 355 INTEGER :: dids(4) ! NetCDF dimensions identifiers … … 366 365 REAL, ALLOCATABLE :: champan(:,:,:) 367 366 !--- input files 368 CHARACTER(LEN= 20) :: fnam_m, fnam_p ! previous/next files names369 CHARACTER(LEN= 20) :: cal_in ! calendar370 CHARACTER(LEN= 20) :: units ! attribute "units" in sic/sst file367 CHARACTER(LEN=ns) :: fnam_m, fnam_p ! previous/next files names 368 CHARACTER(LEN=ns) :: cal_in ! calendar 369 CHARACTER(LEN=ns) :: units ! attribute "units" in sic/sst file 371 370 INTEGER :: ndays_in ! number of days 372 371 REAL :: value ! mean/max value near equator 373 372 !--- misc 374 INTEGER :: i, j, k, l , ll! loop counters373 INTEGER :: i, j, k, l ! loop counters 375 374 REAL, ALLOCATABLE :: work(:,:) ! used for extrapolation 376 CHARACTER(LEN= 128):: title, mess ! for messages375 CHARACTER(LEN=ns) :: title, mess ! for messages 377 376 LOGICAL :: is_bcs ! flag for BCS data 378 377 LOGICAL :: extrp ! flag for extrapolation 378 LOGICAL :: ll 379 379 REAL :: chmin, chmax, timeday, al 380 380 INTEGER ierr, idx … … 666 666 !------------------------------------------------------------------------------- 667 667 ! Local variables: 668 CHARACTER(LEN= 256):: modname="start_init_orog0"668 CHARACTER(LEN=ns) :: modname="start_init_orog0" 669 669 INTEGER :: fid, llm_tmp,ttm_tmp, iml,jml, iml_rel,jml_rel, itau(1) 670 670 REAL :: lev(1), date, dt, deg2rad
Note: See TracChangeset
for help on using the changeset viewer.