Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetProj function in geospatial.R #94

Open
ChuliangXiao opened this issue Mar 6, 2018 · 0 comments
Open

GetProj function in geospatial.R #94

ChuliangXiao opened this issue Mar 6, 2018 · 0 comments

Comments

@ChuliangXiao
Copy link

ChuliangXiao commented Mar 6, 2018

This is an example of the global attributes in a geo_em.d02.nc file
DX : 2500 DY : 2500 DYN_OPT : 2 CEN_LAT : 41.38548 CEN_LON : -84.25238 TRUELAT1 : 30 TRUELAT2 : 60 MOAD_CEN_LAT : 41.2 STAND_LON : -84.5 POLE_LAT : 90 POLE_LON : 0 corner_lats : <ARRAY of 16 elements> corner_lons : <ARRAY of 16 elements> MAP_PROJ : 1
In your code, you use "CEN_LAT", which is true when no domain is nested.

cen_lat <- ncdf4::ncatt_get(coordNC, varid=0, attname="CEN_LAT")$value

CEN_LAT and CEN_LON are specific to the nest. If available, MOAD_CEN_LAT and STAND_LON are should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant