Changeset 146 for trunk/LMDZ.MARS/libf/phymars
- Timestamp:
- Jun 8, 2011, 12:04:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/datareadnc.F
r38 r146 41 41 c (rlatvd de 89 a -89) 42 42 c======================================================================= 43 44 ! to use 'getin' 45 use ioipsl_getincom 43 46 44 47 implicit none … … 77 80 REAL zthe(imdp1*jmdp1) 78 81 79 INTEGER lnblnk, ierr 80 EXTERNAL lnblnk 82 INTEGER ierr 81 83 82 84 INTEGER unit,nvarid … … 95 97 DIMENSION string(4) 96 98 97 CHARACTER*80 file98 99 99 100 #include "lmdstd.h" … … 109 110 c Lecture NetCDF des donnees latitude et longitude 110 111 c----------------------------------------------------------------------- 111 write(*,*) 'ouverture du fichier surface.nc' 112 113 ierr = NF_OPEN (datafile(1:lnblnk(datafile))//'/surface.nc', 112 write(*,*) 'datareadnc: opening file surface.nc' 113 114 datafile="/u/forget/WWW/datagcm/datafile" ! default path to surface.nc 115 call getin("datadir",datafile) ! but users may specify another path 116 117 ierr = NF_OPEN (trim(datafile)//'/surface.nc', 114 118 & NF_NOWRITE,unit) 115 119 IF (ierr.NE.NF_NOERR) THEN 116 120 write(*,*)'Error : cannot open file surface.nc ' 117 121 write(*,*)'(in phymars/datareadnc.F)' 118 write(*,*)'It should be in :', datafile(1:lnblnk(datafile)),'/'119 write(*,*)'1) You can change this directory address in'120 write(*,*)' file phymars/datafile.h'122 write(*,*)'It should be in :',trim(datafile),'/' 123 write(*,*)'1) You can set this path in the callphys.def file:' 124 write(*,*)' datadir=/path/to/the/datafiles' 121 125 write(*,*)'2) If necessary surface.nc (and other datafiles)' 122 126 write(*,*)' can be obtained online on:' … … 176 180 string(2) = 'thermal' 177 181 if (relief.ne.'pla') then 178 write(*,*) ' La topographie est celle de MOLA'182 write(*,*) ' MOLA topography' 179 183 relief = 'MOL' 180 184 string(3) = 'z'//relief … … 282 286 phisinit(i)=1000.*phisinit(i) 283 287 ENDDO 284 CALL dump2d(iimp1,jjp1,phisinit,'Altitude en m')288 CALL dump2d(iimp1,jjp1,phisinit,'Altitude in m') 285 289 CALL multscal(iimp1*jjp1,phisinit,g,phisinit) 286 290
Note: See TracChangeset
for help on using the changeset viewer.