Hi Lu, The 2-D coordinate variables do not need anything done to them, just the property variables. For each variable, define a new variable which is the same as U wherever U is not 0. LET u_new = IF u NE 0 THEN uthere is an implied "ELSE missing" So "u_new" will be missing everywhere that the value of "u" is 0. Now, you will want to keep other attributes of the variables such as their units and so forth. You would add qualifiers on the LET command, /UNITS= /TITLE= and so forth to define those attributes. The above method is unfortunate because you wind up working with variables that have different names from the originals. Now, there's another way to do this a bit more elegantly and completely. Rename the original variables to a dummy name, and then make definitions to fix the variables, renaming them back to the original names yes? USE the_data.ncAnd, you can copy all the attributes of the input variable to the new variable: yes? SET ATT/LIKE=u_input uAnsley Lu Wang wrote: Dear users, |