[gradsusr] Low Level I/O Error: Seek error on data file [GrADS] -
Jennifer Adams
jma at cola.iges.org
Fri Sep 20 20:03:07 EDT 2013
On Sep 20, 2013, at 6:13 PM, Leopoldo Alvarez wrote:
> Hi jennifer,
>
> I am running a script (nuevo.gs) to extract info domain mm5 model data. I use GrADS 2.0.2 version. I use 'options big_endian' but my data file weighs 32 GB and
> shows multiple mutiple on screen- ->
>
> Low Level I/O Error: Seek error on data file
This error generally occurs when your binary data file is too small. Check your file size -- it should be xsize*ysize*zsize*tsize*esize*4 (assuming 4 bytes per data point and you're not writing out sequential data).
--Jennifer
> Data file name = test.dat
> 650 rc=-1 fpos=-172300 pfi->fhdr=0
>
> I think the problem is when running the mm5_to_grads.csh and creates the .ctl and .dat and not script. I can see the data well, until the time of step 1062 (set t 1062, then 'd t' it`s ok), but when i exceeded from 1062 time of step gives me that error ... How i can run my script saving this problem???. One clue http://gradsusr.org/pipermail/gradsusr/2008-April/006883.html
>
> I'm on a machine that works -> uname -a
> Linux login1 2.6.16.53-0.16-ppc64 #1 SMP Tue Oct 2 16:57:49 UTC 2007 ppc64 ppc64 ppc64 GNU/Linux
>
>
> nuevo.gs script
> ***************
> ***************
> 'set lon -110.1829'
> 'set lat 34.6518'
> 'set lev 0.99199'
>
> #8737
> timeend = 4198
> i = 1
> while(i <= timeend)
> 'set t 'i''
> 'q time'
> timehr = substr(result, 8, 3)
> timedy = substr(result, 11, 2)
> timemo = substr(result, 13, 3)
> timeyr = substr(result, 16, 4)
>
> #velocidad viento
> 'tg1=mag(u,v)'
> 'd tg1'
> a.nr1 = subwrd(result,4)
> #direccion viento
> 'd dir'
> a.nr11 = subwrd(result,10)
> # tv de Jeffrey iowa
> 'tv=t+t*0.61*q'
> 'rho=prs/(286.9*tv)'
> 'd rho'
> a.nr = subwrd(result,4)
> 'd t-273.15'
> a.nr2 = subwrd(result,10)
> 'd rh'
> a.nr3 = subwrd(result,10)
> 'd prs/100'
> a.nr4 = subwrd(result,10)
>
> val = timeyr%"-"%timemo%"-"%timedy"-"%timehr" "%a.nr1" "%a.nr11" "%a.nr" "%a.nr2" "%a.nr3" "%a.nr4
> rec = write('drylake_80v.txt',val, append)
> i = i + 1
> endwhile
> *******************
> *******************
>
> best regards,
>
> Leopoldo ÁLVAREZ
> Tenerife - Canary Islands
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130920/588a296d/attachment.html
More information about the gradsusr
mailing list