[Thread Prev][Thread Next][Index]

[ferret_users] Data reading



Hello,

I have a reading problem:

I have a stream big endian r*4 file with 6 variables on 227964 land points for 31 days.

The data are ordered such that there are first all variables of day 1, then of day 2, …

I tried the below, but ferret crashed (see below) – with or without /swap.

This is:

                FERRET v6.84 

                Linux 2.6.32-220.23.1.el6.x86_64 64-bit - 08/13/13

 

I checked the file size and it fits with 4*6*227964*31

 

I could write fortran code to convert to netcdf, but it would be nice if I could do this via ferret….

Any help greatly appreciated.

 

Cheers,

Joerg

 

 

 

yes? define axis/x=1:227964:1 xa

yes? define axis/t=1:31:1 xt

yes? define grid/x=xa/t=xt xgr

yes? file/var=sd,ld,ta,q,w,p/grid=xgr/format=stream/type=r4/swap GB_1km_197101.bin

yes? show data

     currently SET data sets:

    1> ./GB_1km_197101.bin  (default)

name     title                             I         J         K         L         M         N

SD       SD                               1:227964  ...       ...       1:31      ...       ...

LD       LD                               1:227964  ...       ...       1:31      ...       ...

TA       TA                               1:227964  ...       ...       1:31      ...       ...

Q        Q                                1:227964  ...       ...       1:31      ...       ...

W        W                                1:227964  ...       ...       1:31      ...       ...

P        P                                1:227964  ...       ...       1:31      ...       ...

yes? SET MEMORY/SIZE=1000

Cached data cleared from memory

yes? list sd[i=1:100,l=1]

             VARIABLE : SD

             FILENAME : GB_1km_197101.bin

             SUBSET   : 100 points (X)

             T        : NaN

At line 72 of file var_data_fmt.F

Fortran runtime error: End of record

 

 

Jörg Kaduk

Senior lecturer

http://www.geog.le.ac.uk/staff/jk61/

t: +44 (0)116 252 3848

Department of Geography, University of Leicester, University Road, Leicester LE1 7RH, UK

 

Elite Without Being Elitist

 

Times Higher Awards Winner 2007, 2008, 2009, 2010, 2011, 2012, 2013

 


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement