We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ee90af commit 258d1f2Copy full SHA for 258d1f2
.DS_Store
-10 KB
.travis.yml
@@ -0,0 +1,2 @@
1
+language: python
2
+script: true
tests/test_proj.py
@@ -50,14 +50,24 @@
50
51
ax = axes[0]
52
m=ax.pcolormesh(XLON, XLAT, np.abs(lats-XLAT))
53
-ax.set_title('error of lats (m)')
+ax.set_title('error of lats (deg)')
54
ax.colorbar(m, loc='b')
55
56
ax = axes[1]
57
m=ax.pcolormesh(XLON, XLAT, np.abs(lons-XLON))
58
-ax.set_title('error of lons (m)')
+ax.set_title('error of lons (deg)')
59
60
61
axes.format(abc='(a)')
62
63
64
+#%% write proj info into NetCDF
65
+from pyproj import CRS
66
+
67
+projcrs = CRS(crs.proj4_init)
68
69
+cf = projcrs.to_cf()
70
+crs_new = projcrs.from_cf(cf)
71
+crs_new == projcrs
72
73
0 commit comments