[Thread Prev][Thread Next][Index]

Is data out of range?



dear ferret users:
    i use ferret read a data file "tp-1993-01-10.out".The following is the data's description file used by GRADS.
 
(dset ^./%y4/TP-%y4-%m2-%d2.out      
title TP  SSHA product    
options template                    
options little_endian               
undef   -9999.00
xdef 1440 linear      0.125     0.250
ydef  720 linear    -89.875     0.250
zdef 1  linear 1. 1.                
tdef   325 linear  00:00Z22OCT1992 10DY
vars 1                              
ssh  1 99  TOPEX sea level anomaly cm
endvars   ) 
 
 my ferret command is those listed as following,
1)read the data from a "direct formatted " binary file
 
define axis/x=0.125:359.875:0.25/units=degrees xaxis
define axis/y=-89.875:89.875:0.25/units=degrees yaxis
def grid/x=xaxis/y=yaxis aaa
file/format=stream/grid=aaa/var=sss TP-1993-01-10.out
list sss
!maybe the error information caused by out of range
!  0 [main] ferret 1656 open_stackdumpfile: Dumping stack trace to ferret.exe
!.stackdump
!Segmentation fault (core dumped)
!bash-2.05$
 
2)on the other hand , when i tried to save the variable "sss" into a cdf file, the information hinted by the machine is the same
yes? save/file=9123.cdf sss
!      0 [main] ferret 416 open_stackdumpfile: Dumping stack trace to
!ferret.exe.
!stackdump
!Segmentation fault (core dumped)
!bash-2.05$ ferret
 
3)as said before, i guessed that it is because of the data's overflow that casued my failure to access data, so i tried to restructre another data array "aaa",which resolution is 4 times of the refered "sss"
 
DEFINE AXIS/x=0.125:359.875:1/units=degrees xaxis
DEFINE AXIS/y=-89.875:89.875:1/units=degrees yaxis
define grid/x=xaxis/y=yaxis new_grid
let aaa=sss[g=new_grid, d=tp-1993-01-10]
save/file=hello.cdf aaa
!then the same error came again
!      0 [main] ferret 416 open_stackdumpfile: Dumping stack trace to
!ferret.exe.
!stackdump
!Segmentation fault (core dumped)
!bash-2.05$ ferret
 
how should i proceed such data, could you give me a valid way to get access to the data and restruct a smaller data array ?
if there still anything describely not clearly please contact me.
thanks very much.
Best wishes!

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement