[Thread Prev][Thread Next][Index]

Re: [ferret_users] Error while defining irregular depth axis



At the second depth level , the depth value is not monotonically increasing. You may check your variable or remove the constraint npoints=100 . Also just check the syntax perhaps of the last sentence.

On Thu, Sep 10, 2020 at 5:53 PM Akash. S <akash013akash@xxxxxxxxx> wrote:
Dear Ferret users,
I am trying to convert ASCII to NC. I am getting an error while defining an irregular depth axis. My depths consisting of 100 npoints have attached the file below (zaxis). 

My code and error message is; 

define axis/x=65.0:65.0/npoints=1/unit=degree lon
define axis/y=8.0:8.0/npoints=1/unit=degree lat
!define axis/z=0:500:5/npoints=100/DEPTH/unit=meter depth
file/var=depth/format=(F700.2) zaxis
define axis/z/depth/npoints=100/unit=meter/name=depth/from_data depth

 **ERROR: improper grid or axis definition: data for DEFINE AXIS/FROM_VARIABLE is not monotonically increasing at index 2
define axis/z/depth/npoints=100/unit=meter/name=depth/from_data depth
Command file, command group, or REPEAT execution aborted


Where I am doing wrong? How can I define these types of irregular depths? I have already gone through previous similar threads in the forum, but nothing solved my problem.

Many thanks in advance.

Thanks and regards,
Akash. S 




--
G Satyesh


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

Privacy Policy | Disclaimer | Accessibility Statement