[Thread Prev][Thread Next][Index]

[ferret_users] How to asign 1 to missing values (gaps) with exact mask



Hi all,
  I want to assign value 1 to all missing values in variable var1. (left panel is var1) (also it is given that var1 is always more than 10 (always positive))
 I am aware that, for such mask, the syntax is 
 let mask_var1=if var1 gt 0 then 1/0 else 1
^ this will assign value 1 to all missing values (gaps) in var1.
 Now to visualise whether such a mask is proper or not, I have plotted the right side image which is rose*mask_var1 (rose being etopo5, a default dataset in ferret). So in the right panel, colour should come at the places where the left panel is white (gaps). But the colour is not coming in the right image corresponding to all white spaces of the left image. It only comes at the places where high gaps are there in the left image, small gaps are being kind of ignored. (gxy grids are the same in both the panels). Another instance is also given as the 2nd image.
What is the way to get EXACT such masks with exact gaps  ??

(I want 1 at the gaps, 1/0 elsewhere)

Thanks for the time,
G Satyesh,
India.

Attachment: 2.jpg
Description: JPEG image

Attachment: 1.jpg
Description: JPEG image


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

Privacy Policy | Disclaimer | Accessibility Statement