[R-sig-Geo] read the .nc file and obtain the vector data of a region

Andres Diaz madiazl at gmail.com
Tue Mar 21 02:31:29 CET 2017


There are some packages like gdal or the overlay/extract function of sp
that can help you. The most important is to open the information and once
you have the matrix (of the data) if you have the positions in the matrix
which correspond to your geographical units (china) you can extract only
those pixels/positions.

All the best,

Andres

On 21 Mar 2017 02:26, "hnstedu" <hnstedu at 163.com> wrote:

Hi, dear friend,
I have download the surface PM2.5 data provided in  NetCDF [.nc] file (
http://fizz.phys.dal.ca/~atmos/martin/?page_id=140).
My goal is to obtain the PM2.5 data of various provinces in China using
this nc file. I know wo can employ the "ncdf4" package
to load the nc file in R. However, I have no idea to obtain the
corresponding data of one region (e.g. China Provinces).
Any idea?


Thanks very much !


Bests,
wanhaiyou
        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list