Go to the documentation of this file.
58 integer :: i,j,k,l,m,n
62 integer,
dimension(10) :: hdfStart, hdfStride, hdfEdge
63 integer :: sds_id, sds_index
74 INTEGER,
PARAMETER :: gridsize = 721
75 integer*2,
DIMENSION(gridsize, gridsize) :: niseNorth, niseSouth
269 AlbedoMean, errorLevel )
271 character (len = *),
intent( in) :: statsfn
273 dimension(:,0:,:),
intent(inout):: albedomean
274 integer ,
intent( in) :: numalbbnds, &
277 INTEGER,
INTENT(OUT) :: errorlevel
314 integer ,
dimension(10) :: hdfstart, hdfstride, hdfedge
315 integer :: sds_id, newhdfid, sds_index
316 character(len = 200) :: sdsname
318 dimension(1:2,1:NumAlbBnds,0:numEco,1:1,1:2) :: dummyalb
347 integer :: dfacc_read = 1
357 newhdfid = c_sfstart(
trim(statsfn), dfacc_read )
358 if (newhdfid == fail)
then
359 print *,
"Can't Reopen the NEW HDF File",
trim(statsfn)
388 hdfedge( 3 ) = numeco
389 hdfedge( 2 ) = numalbbnds
390 hdfedge( 1 ) = numsnowtypes
393 sdsname =
'Snow_Albedo_Year_Mean'
395 sds_index = c_sfn2index( newhdfid,
trim(sdsname) )
397 sds_id = c_sfselect(newhdfid,sds_index)
400 status = c_sfrdata(sds_id, hdfstart, hdfstride, hdfedge, dummyalb)
405 do k = 1, numsnowtypes
406 albedomean(i,j,k) = dummyalb(k,i,j,1,1)
412 if (sds_index == fail .or. &
413 sds_id == fail .or. &
420 status = c_sfendacc(sds_id)
421 if (status == fail)
then
429 status = c_sfend(newhdfid)
430 if (status == fail)
then
431 print *,
"Can't End access to the NEW HDF File",
trim(statsfn)
string & trim(string &s, const string &delimiters)
subroutine, public readsnowalbstats(StatsFN, NumSnowTypes, NumAlbBnds, numEco, AlbedoMean, errorLevel)