[R] HIRHAM netcdf files

Roy Mendelssohn Roy.Mendelssohn at noaa.gov
Fri Jul 29 17:11:10 CEST 2011


Hi Ana:
On Jul 29, 2011, at 8:03 AM, Ana wrote:
> netcdf precip.DMI.HS1 {
> dimensions:
> 	rlat = 84 ;
> 	rlon = 90 ;
> 	time = 10800 ;
> 	time_bnds = 2 ;
> variables:
> 	float lat(rlat, rlon) ;
> 		lat:standard_name = "latitude" ;
> 		lat:long_name = "latitude" ;
> 		lat:units = "degrees_north" ;
> 	float lon(rlat, rlon) ;
> 		lon:standard_name = "longitude" ;
> 		lon:long_name = "longitude" ;
> 		lon:units = "degrees_east" ;
> 	float rlat(rlat) ;
> 		rlat:axis = "Y" ;
> 		rlat:standard_name = "rotated_latitude" ;
> 		rlat:long_name = "rotated latitude" ;
> 		rlat:units = "degrees" ;
> 	float rlon(rlon) ;
> 		rlon:axis = "X" ;
> 		rlon:standard_name = "rotated_longitude" ;
> 		rlon:long_name = "rotated longitude" ;
> 		rlon:units = "degrees" ;
> 	char rotated_pole ;
> 		rotated_pole:grid_mapping_name = "rotated_latitude_longitude" ;
> 		rotated_pole:grid_north_pole_latitude = 37.f ;
> 		rotated_pole:grid_north_pole_longitude = -153.f ;
> 

Unless I am totally misreading this, rlat, rlon are the coordinates in the projection, lat(rlat, rlon) and lon(rlat,rlon) are the actual lat, lon at those points.  In R, you an use ncdf4  (or the older ncdf) to read in those values.

-Roy

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 



More information about the R-help mailing list