Since you are on the NCAR machine bluefire, I copied
your script to my linux box; made a few changes to allow
a big-endian binary to be read/written on a little endian machine;
used a system call to remove any preexisting
binary file; and, ran it.
It ran successfully.
===
I do not understand your comment about "readable in gradsnc".
You are using a binary write. This is not a netCDF file.
--- The script I used is on bluefire: /home/shea/pop_remap.ncl --- Good luck On 6/28/10 6:48 PM, Ioana Colfescu wrote: > Hi, > > I try to use an NCL script : > > > > #* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > # dump data from a pop netcdf data set readable in gradsnc > # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > > ;*************************************************************** > > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl" > ;get ncl ccsm remap functions > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/popRemap.ncl" > > begin > > fili = "fluxin.ares.dat" > filo = "fluxout.dat" > i=0 > do while (i.lt.2000) > x = fbinrecread(fili, i, (/180,360/), "float") > xout = PopLatLon(x,"1x1d","gx1v3","aave","da","010821") > fbinrecwrite(filo,-1,xout) > i=i+1 > end do > > end > > > > > I get the error : > > fatal:fbinrecread: a read error occurred while reading (fluxin.ares.dat) , can't continue > fatal:Execute: Error occurred at or near line 19 > > I don t know where it comes from because the dimensions are correct and if I take i =0 works so I think is a problem with the while loop but I don t know what problem. Could someone give me an advice about how should I fix it or from where it comes ? > Thank you, > > Ioana > _______________________________________________ > 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-talkReceived on Mon Jun 28 21:00:05 2010
This archive was generated by hypermail 2.1.8 : Fri Jul 02 2010 - 07:45:13 MDT