seagrid...

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

seagrid...

#1 Unread post by mashinde »

please see the attached doc file with figure.......


mahesh
fillseg.doc
(48 KiB) Downloaded 295 times
------------------------------------------------------------------------
x=axis;
>> lon_range=ax(1:2),

lon_range =

-20 50

>> lat_range=ax(3:4);
>> lon_range=ax(1:2);
>> lat_range=ax(3:4);
>> lon_range=ax(1:2);
>> lat_range=ax(3:4);
%reading the bathymetry......
>> [xbathy,ybathy,zbathy]=read_srtm30plus(lon_range,lat_range);

ans =

Maximum image width 4096 exceeded. Please try again.


why this happning.......
please tell the solution

perezro

Re: seagrid...

#2 Unread post by perezro »

Hello,
First thing, i need to tell you that i'm not a professional, but i sort out how to pass that problem..

You get the coastline, bur you need the one without borders, i mean (1:2000000 or so) then change the name to get rid of .dat, then:
load coastNAME
plot (coast(:,1),coast(:,2));
fillseg (coast);
coast_new=join_cst(coast,.005)
fillseg (coast_new)

if you don't like it change the value in green... not too much you will see....

after that insert a couple of values on the right positions, trial and error.... i mean look for the first second third... NaN and add one line using values that give you one land/water difference that you like....

tomorrow I will attach the files...
good luck: R

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: seagrid...

#3 Unread post by mashinde »

hello dear perezro,

i did as your suggestions but it won't work fine. where i have to add the points...

mahesh

perezro

Re: seagrid...

#4 Unread post by perezro »

Hello!
Could you attach you coastline data so i work with it and then I can tell you exatly in which line you need to add the new points??
Ciaociao: R

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: seagrid...

#5 Unread post by mashinde »

Dear perezro,

i did as you reply me...here i am sending you figure...please check the arrows...

please see the figure.....
Attachments
medi.doc
(44.5 KiB) Downloaded 267 times

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: seagrid...

#6 Unread post by mashinde »

ok here is my coastline data file.....
Attachments
medi3.txt
(3.2 MiB) Downloaded 267 times

perezro

Re: seagrid...

#7 Unread post by perezro »

I know about the arrows... it happen to me yesterday...but without the exact coordinates that you use for the coast (do u use coastline extractor, don't you??) i can not tell you where to exactly insert the numbers...
if you attach the file `coastline extractor` give you in matlab format, would be better so i tell you directly where to look......
ciao:R

perezro

Re: seagrid...

#8 Unread post by perezro »

Y try to do your example... you can download it and see that if you add two lines in the variable coast_new, one in line 43887 lat 39 lon 28 and other at line 61925 lat 32 lon 27.5 you can manage to get the disturbing lines out the middle part of your nice-coastline-draw... :P
hope it help: R
Attachments
seagrid_coast.zip
(2.08 MiB) Downloaded 259 times

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: seagrid...

#9 Unread post by mashinde »

Dear perezro,

ok.....i have other question...
i want to make a grid of 1/16 deg x 1/16 deg having 70 levels ......so how to make it.....

-mahesh

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: seagrid...

#10 Unread post by mashinde »

Dear perezro,


here is my coastline extractor file in mat fomrat

mahesh
Attachments
mediblacksea.mat.zip
(2.24 MiB) Downloaded 245 times

perezro

Re: seagrid...

#11 Unread post by perezro »

Hello again!
Did you figured out how??
I did not know...
Sorry: R

Post Reply