[gradsusr] Fitting between coastlines and swell field

Marsh, Kieren [FGUAE] k.marsh at fugro-uae.com
Wed Nov 26 23:01:17 EST 2014


You can get country shapefiles from here.

http://www.diva-gis.org/gdata

Just point GrADS to the folder you have the shapefiles in as in my example below [your_shape_file_location].

Kieren Marsh



From: Rabah Hachelaf [mailto:r.hachelaf at gmail.com]
Sent: 26 November 2014 17:23
To: GrADS Users Forum; Marsh, Kieren [FGUAE]
Subject: Re: [gradsusr] Fitting between coastlines and swell field

Hi Kieren,
what kind of shapefile did you use in this example.

Thanks.

Rabah

2014-11-25 1:58 GMT-05:00 Marsh, Kieren [FGUAE] <k.marsh at fugro-uae.com<mailto:k.marsh at fugro-uae.com>>:
You need to use the const function to set all missing values to 0

‘d const(your_swell_field, 0, -u)

This will fill in the blanks as if they were zero, including the land. What you then need to do is draw a map over the top of this using the shapefile functions.

[cid:image001.png at 01D00A18.5293DFA0]

‘set rgb 31 240 240 170’
‘set shpopts 31’
‘draw shp /../your_shape_file_location’

Above example is using NCEP mww3 data.

Kieren Marsh


From: gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org> [mailto:gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org>] On Behalf Of Rabah Hachelaf
Sent: 22 November 2014 02:04
To: GrADS Users Forum
Subject: [gradsusr] Fitting between coastlines and swell field

Hi GRADS users,

I have an issue about empty grid cells between my field (swell) and coasts.
my data has a resolution of 0.05°.(like shown in attached image)

is there some command or tick to avoid this empty area.

Thank you.

 Rabah
--



_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr



--
------------------------------
Cordialement,
Best regards,
Rabah Hachelaf
     ____
    (       )
   (        )
  (___ __)
   /////////
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20141127/4c32e2ba/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1542 bytes
Desc: image001.png
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20141127/4c32e2ba/attachment.png 


More information about the gradsusr mailing list