Re: How to draw precipitation in U.S. only

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 12 Apr 2007 15:03:47 -0600 (MDT)

Lawrence,

If you don't have any kind of masking information in your file, then it's
going to be difficult coming up with set of masked values tailored
to your data.

Perhaps another way you can do this is by physically masking out the ocean
areas when you draw your plot. Please see the examples at:

    http://www.ncl.ucar.edu/Applications/mask.shtml

In particular, example 3 shows how to draw contours only over
Africa.

If this is still not what you're looking for, then perhaps you can
send me a personal email with a sample graphic, and your dataset so I
can try to reproduce it for you.

--Mary

On Thu, 12 Apr 2007, Lawrence wrote:

> Hi Kyle,
>
> Thank you for your reply, but the script you sent doesn't seem to
> work well for me. In my netcdf files, the dimension sizes of "lon" and "lat"
> are different, so when execute to the line
> "r=(lon-lonmin)^2 + (lat-latmin)^2", I always get the following error
> message:
> fatal:Plus: Dimension size, for dimension number 0, of operands does not
> match, can't continue.
>
> Regars
> Lawrence
>
>
>
>
>
> 2007/4/11, Kyle Wilcox <Kyle.Wilcox_at_noaa.gov>:
>>
>> I have attached a script that Tom Gross (UNSECO) wrote to 'stub' down
>> the contents of a netCDF file for the Chesapeake Bay region. He
>> graciously wrote it to be used universally.
>>
>> You will have to change the variables to export starting at line 117.
>> Let me know how this works for you.
>>
>>
>> Lawrence wrote:
>> > Dear NCL users,
>> >
>> > I want to draw the U.S. precipitation without drawing the values
>> > beyond the U.S. boundary, i.e. set all the other data to missing values.
>> Is
>> > there any convenient way to do this in NCL? Any suggestion will be
>> > appreciated.
>> >
>> > Regards,
>> > Lawrence
>> >
>> >
>> > ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > ncl-talk mailing list
>> > ncl-talk_at_ucar.edu
>> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>> --
>>
>> Kyle Wilcox
>> NOAA Chesapeake Bay Office
>> 410 Severn Avenue
>> Suite 107A
>> Annapolis, MD 21403
>> office: (410) 295-3151
>> Kyle.Wilcox_at_noaa.gov
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk_at_ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>>
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Apr 12 2007 - 15:03:47 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 17 2007 - 15:41:32 MDT