Re: binary data reading problem

From: Jatin Kala <jatin.kala.jk_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 19 2014 - 15:17:12 MST

Hi,
I’ve had to deal with binary data (had no choice) for a few projects.
You’ve probably messed up the order of the dimensions or something when reading the variable.
My advice: Don’t write to binary format, it’s a Pain (in my opinion).
I don’t use grads, but it seems you can write to netcdf:
http://www.iges.org/grads/gadoc/gradcomdsdfwrite.html
I would use that instead, then, reading in NCL is a breeze.
Cheers,
Jatin.

On 20 Feb 2014, at 4:52 am, Colfescu Ioana <colfiii@yahoo.it> wrote:

> Hi,
>
> I'm trying to read in NCL binary data I wrote in GrAds and I don't understand what error I'm doing so that NCL mixes the values.
> The data I m trying to read is written as follows :
> while( day <= daymax )
> 'thfrn=thfr-tr(t-'shift')'
> 'set x 1 128'
> 'set y 1 64'
> 'd thfrn'
> 'd nsfrn'
> 'd zwsrn'
> 'd mwsrn'
> 'd fwfrn'
> day=day+1
> endwhile
> mo=mo+1
> endwhile
> year=year+1
> endwhile
>
> I try to read the data like :
> thf=fbindirread(path,1,(/64,128,5,nt/),"float").
> I get the values but they are mixed. Does anyone know what am I doing wrong ?
> Thanks,
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 19 15:17:31 2014

This archive was generated by hypermail 2.1.8 : Mon Mar 03 2014 - 14:26:18 MST