Hi,
Evearyone,When I ran ./cruPGI5.x,some errors appeared.I don't know how to deal with them.
Please help me!
Thank you very much!
/regcm3/regcm/Obs/CRU> ./cruPGI5.x
CRU2RCM.f:
INPUT FILE:./TS2.1/CRUPRE.CDF
./TS2.1/CRUTMP.CDF
./TS2.1/CRUDTR.CDF
./TS2.1/CRUVAP.CDF
./TS2.1/CRUCLD.CDF
./TS2.1/CRUFRS.CDF
./TS2.1/CRUTMN.CDF
./TS2.1/CRUTMX.CDF
./TS2.1/CRUWET.CDF
OUTPUT FILE:PRE1994.nc
TMP1994.nc
DTR1994.nc
VAP1994.nc
CLD1994.nc
FRS1994.nc
TMN1994.nc
TMX1994.nc
WET1994.nc
CALL PARAM
DS= 60.00000 DDEG= 5.3967768E-04
-4.888416 37.03973 1050.000 32.60123 54.29552
1050.000
OPENING NetCDF FILE: PRE1994.nc
ITIM= 1123
READ/WRITE: PRE 1994071500 1123 828672.0000000000
ncvarid: ncid 4: Variable not found
ncdimid: ncid 4: Invalid dimension id or name
ncvarid: ncid 4: Variable not found
ncvarid: ncid 4: Variable not found
*ERROR* in putdef in grbtst
---------------------------------------------------------------------------------------
vi cruPGI5.x:
ln -sf ../../Input/DOMAIN.INFO fort.10
ln -sf ../../PreProc/Terrain/domain.param
pgf77 -byteswapio CRU2RCM.f -L/public1/software/netcdf3.6.0/lib -lnetcdf -o cru
./cru
rm cru fort.10 domain.param
vi cru.param:
c ** PGI compile: pgf77 CRU2RCM.f -L../../Commons/env/liblinux -lnetcdf
c ** IFC compile: ifc -tpp7 -O3 -cm -w -w90 -w95 CRU2RCM.f -L../../Commons/env/liblinux -lnetcdf -o cru
C ** idatecru0 = First year-month of the CRU dataset (YYYYMM)
C ** idatecru1 = First year-month desired (YYYYMM)
C ** idatecru2 = Last year-month desired (YYYYMM)
integer idatecru0, idatecru1, idatecru2
parameter(idatecru0=190101)
parameter(idatecru1=199407)
parameter(idatecru2=199407)
C ** ORIGINAL CRU GRID
C ** nfld = number of CRU fields
C ** nlon = number of longitudes
C ** nlat = number of latitudes
C ** dlon = Resolution in the x-direction
C ** dlat = Resolution in the y-direction
C ** glon1 = Longitude position of the western most point
C ** glat1 = Latitude position of the southern most point
integer nfld, ifld, nlon, nlat
real glon1, glat1, dlat, dlon
PARAMETER (nfld=9)
PARAMETER (NLON=720, NLAT=360, dlat=0.5, dlon=0.5 )
PARAMETER (GLON1=-179.75, GLAT1=-89.75)
c NAME OF THE CRU FILES ON THE RegCM GRID.
character outfile(nfld)*50
DATA (outfile(ifld),ifld=1,nfld)
& /'PRE1994.nc'
& ,'TMP1994.nc'
& ,'DTR1994.nc'
& ,'VAP1994.nc'
& ,'CLD1994.nc'
& ,'FRS1994.nc'
& ,'TMN1994.nc'
& ,'TMX1994.nc'
& ,'WET1994.nc'/
c NAME OF THE GLOBAL INPUT CRU FILES
character infile(nfld)*50
DATA (infile(ifld),ifld=1,nfld)
& /'./TS2.1/CRUPRE.CDF'
& ,'./TS2.1/CRUTMP.CDF'
& ,'./TS2.1/CRUDTR.CDF'
& ,'./TS2.1/CRUVAP.CDF'
& ,'./TS2.1/CRUCLD.CDF'
& ,'./TS2.1/CRUFRS.CDF'
& ,'./TS2.1/CRUTMN.CDF'
& ,'./TS2.1/CRUTMX.CDF'
& ,'./TS2.1/CRUWET.CDF'/
c NAME OF THE CRU VARIABLES
character vnam(nfld)*10
DATA (vnam(ifld),ifld=1,nfld)
& /'PRE'
& ,'TMP'
& ,'DTR'
& ,'VAP'
& ,'CLD'
& ,'FRS'
& ,'TMX'
& ,'WET'/
-------------------------------------------------------------------------------------------