Re: Removing missing values from a 3D array

From: Brandon Fisel <bjfisel_at_nyahnyahspammersnyahnyah>
Date: Sun Jun 19 2011 - 13:24:30 MDT

You could bury your ascii output code into a conditional statement:

if (.not.(ismissing(yourvariable))) then
  output your data to ascii
  code goes here
else

endif

-------------------------------------------------------------
Brandon Fisel

On Sun, Jun 19, 2011 at 13:26, Justin Glisan <glisanj@iastate.edu> wrote:

> Hello,
>
> I have a script that cuts out a sub-region within an Arctic domain. Then I
> use a sea ice and ocean mask to get only the land points. When I print out a
> variable, say precipitation, I get a value for all grid points within the
> sub-region, but outside the "box" the printed value is -999. I would like to
> remove these values from the outputted ascii file, as they take up a lot of
> space. Is there anyway to have only the "sub-region" outputted?
>
> Thank you,
>
> Justin
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Jun 19 13:25:04 2011

This archive was generated by hypermail 2.1.8 : Mon Jun 20 2011 - 12:30:20 MDT