r - How to convert a rotated NetCDF back to normal lat/long? -


i have netcdf file rotated coordinates. need convert normal lat/long coordinates (-180 180 long , -90 90 lat).

library(ncdf4) nc_open('dat.nf') 

for dimensions, shows:

[1] "     5 variables (excluding dimension variables):" [1] "        double time_bnds[bnds,time]   " [1] "        double lon[rlon,rlat]   " [1] "            long_name: longitude" [1] "            units: degrees_east" [1] "        double lat[rlon,rlat]   " [1] "            long_name: latitude" [1] "            units: degrees_north" [1] "        char rotated_pole[]   " [1] "            grid_mapping_name: rotated_latitude_longitude" [1] "            grid_north_pole_longitude: 83" [1] "            grid_north_pole_latitude: 42.5" [1] "        float tasmax[rlon,rlat,time]   " [1] "            long_name: daily maximum near-surface air temperature" [1] "            standard_name: air_temperature" [1] "            units: k" [1] "            cell_methods: time:maximum within days time:mean on days" [1] "            coordinates: lon lat" [1] "            grid_mapping: rotated_pole" [1] "            _fillvalue: 1.00000002004088e+20"  [1] "     4 dimensions:" [1] "        rlon  size:310" [1] "            long_name: longitude in rotated pole grid" [1] "            units: degrees" [1] "            axis: x" [1] "            standard_name: grid_longitude" [1] "        rlat  size:260" [1] "            long_name: latitude in rotated pole grid" [1] "            units: degrees" [1] "            axis: y" [1] "            standard_name: grid_latitude" [1] "        bnds  size:2" 

could show me how convert rotated coordinates normal lat/long? thanks.

i use cdo purpose https://code.zmaw.de/boards/2/topics/102

another option create mapping between rotated , geographic coordinates , use original data without interpolation. can find equations if necessary.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -