[Thread Prev][Thread Next][Index]

Fw: [ferret_users] new beginner to plot bathymetry file in ASCII







Thank you William for quick response in answer my question.

I already did your suggestion, but when I use show command like this:
yes? set data bathy_input.btm
yes? show data
the result like this:
currently set data sets:
1> C:\Program Files\TMAP\fer_dsets\data\bathy_input.btm (default)
name    title    I               J       K    L
ps         ps    1:197    1:169    ...    ...
and I also try this command:
yes? set grid ps
grid bathymetry
name        axis            # pts        start                            end
longitude    longitude    197mr    114.34e(114.34)        115.18e(115.18)
latitude        latitude        169r        8.774s                    8.052s
normal        Z
normal        T

So, the number of points in x direction is not 180 points.
I try to make sure the format of my data, and I am completely sure that the format is f12.3.
I have no idea to fix this kind of problem.
I please for any help and suggestion.
Thank you in advance.

Kindest regards,

dessy


From: William S. Kessler <william.s.kessler@xxxxxxxx>
To: dessy berlianty <dessyberlianty@xxxxxxxxx>
Cc: Ferret users <oar.pmel.ferret_users@xxxxxxxx>
Sent: Wed, May 25, 2011 8:48:04 AM
Subject: Re: [ferret_users] new beginner to plot bathymetry file in ASCII

You need to specify a format, number of columns (and possibly the order of reading).

Also you need to explicitly define the grid called bathymetry, not just the axes

> yes? define axis/x=114.3389435E:115.1776276E:0.00453/unit=degree longitude
> yes? define axis/y=8.0546379S:8.7746868S:0.00453/unit=degree latitude


define grid/x=longitude/y=latitude bathymetry
file/format=(186f14.3)/var=ps/grid=bathymetry/columns=186 bathy_input.btm

That should work if each row contains all the 186 x-values for a single y, and moves down one row for each y. Otherwise, adjust format and columns. If the order of x and y are switched, use the /order=yx qualifier on FILE.

BK

On May 24, 2011, at 3:21 PM, dessy berlianty wrote:

> Dear ferret_users,
>
> I am a beginner of ferret, and trying to using it for my model input and output file in ASCII.
> Hope someone can give some help for my basic question.
> Thanks in advance.
>
> I have bathymetry data in 186x160 grids, for example like this:
>      0.000        0.000        .....      124.234        34.796        0.000        0.000        0.000        0.000        0.000
>      0.000        0.000        .....      19.129        0.000        0.000        0.000        0.000        0.000        0.000
>        .....
>
> Firstly, I put the bathymetry data in folder ..\TMAP\fer_dsets\data\bathy_input.btm, as I read from Ferret Users'mail archive that we can not read from our work directory(please correct me if it's wrong).
> After that, I use this following command to identify the x and y limit, so I hope I can continue to plot the bathymetry:
> yes? define axis/x=114.3389435E:115.1776276E:0.00453/unit=degree longitude
> yes? define axis/y=8.0546379S:8.7746868S:0.00453/unit=degree latitude
> yes? file/grid=bathymetry/var="ps" bathy_input.btm
> yes? plot bathymetry
>
> I know that the command is not correct, because of my limitation in using ferret, so I haven't successful to make it.
>
> Thank you for any help and suggestion.
>
>
> Sincerely yours,
>
> dessy
> (Special thanks to Ansley who suggest me to send this message to this email address)


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

Privacy Policy | Disclaimer | Accessibility Statement