[gradsusr] Fitting between coastlines and swell field

Marsh, Kieren [FGUAE] k.marsh at fugro-uae.com
Tue Nov 25 01:58:17 EST 2014


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 01D0089E.2C298D40]

‘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] 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
--


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20141125/3262d168/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/20141125/3262d168/attachment.png 


More information about the gradsusr mailing list