[ncl-talk] Fwd: Masking a U.S. county from a netcdf file
Mary Haley
haley at ucar.edu
Mon Aug 4 10:58:51 MDT 2014
Hi,
You can use a combination of shapefiles and the "gc_inout" function in
order to collect values for a given county and get an average.
My suggestion is to use the USA_adm2.shp shapefile downloaded from
gadm.org/country, and then look at example "shapefiles_13.ncl" at:
http://www.ncl.ucar.edu/Applications/shapefiles.shtml#ex13
You can also look at the example right after that, which does the same
thing for the coastal counties of Germany, "
Germany_coastal_counties_DEU_adm.ncl
<http://www.ncl.ucar.edu/Applications/Scripts/Germany_coastal_counties_DEU_adm.ncl>
".
The "shapefiles_13.ncl" example only does the counties of Georgia. Let me
know if you need help extending it to do all the counties of the US. It
would help, however, if you could provide me with your two WRF output files.
--Mary
On Thu, Jul 31, 2014 at 5:09 PM, Mohammadhassan Mohegh <mohegh at usc.edu>
wrote:
>
> Hi
>
> I'm working with WRF model output and I need to average the differences of
> 2 outputs within a county. Is there any way to do this? Are there
> shapefiles or netcdf files available for US counties that NCL recognizes?
>
> I have created a netcdf file containing these counties using ARCGIS. The
> problem is that it does not have the same grid and I can't use the mask()
> function with it. Does any one know of a
>
> Thanks in advance for your help.
>
>
>
> --
> Mohammadhassan Mohegh, PhD student
> Astani Dept of Civil and Environmental Engineering
> University of Southern California
> 3620 South Vermont Ave, KAP227
> Los Angeles, CA
> mohegh at usc.edu
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140804/8992036d/attachment.html
More information about the ncl-talk
mailing list