Hello ferrret users I have some problems to read 2 variables of 4
dimension in a binary/stream file. I solve this problem in a ASCII file, this file has 2
columns and in each column a variable who increase in lon,lat,levels,days (from
faster to slower) V1(lon,lat,lev,day) V2(lon,lat,lev,day) V1( (lon+i,lat,lev,day) V2( (lon+i,lat,lev,day) Using Yes? file /var="ulist,vlist"/grid=grid_4d
UV.txt Where grid_4d is the 4dimensional grid, x,y,z,t This case works, but if I try to do the same with a
binary/stream file it doesn’t work. I wrote the stream file PROGRAM ficheros real valor(130000,2) integer wo open(1,file="UV.txt",status="unknown") open(2,file="UVbin",recl=(4*2) +
,access='direct',form='UNFORMATTED') do wo=1,6336 write(1,*') valor(wo,1),valor(wo,2) read(2,rec=wo) valor(wo,1),valor(wo,2) enddo In ferret in use : file /format=STREAM/grid=grid_4d/var=”ubin,vbin”
UV.bin and the values are fill in a bad way. Can someone help me???? Thanks Miguel Cordoba |