grids.js 1011 B

1234567891011121314151617181920212223
  1. // Based on . CTABLE structure :
  2. // FIXME: better to have array instead of object holding longitudes, latitudes members
  3. // In the former case, one has to document index 0 is longitude and
  4. // 1 is latitude ...
  5. // In the later case, grid object gets bigger !!!!
  6. // Solution 1 is chosen based on pj_gridinfo.c
  7. exports.null = { // name of grid's file
  8. "ll": [-3.14159265, - 1.57079633], // lower-left coordinates in radians (longitude, latitude):
  9. "del": [3.14159265, 1.57079633], // cell's size in radians (longitude, latitude):
  10. "lim": [3, 3], // number of nodes in longitude, latitude (including edges):
  11. "count": 9, // total number of nodes
  12. "cvs": [ // shifts : in ntv2 reverse order : lon, lat in radians ...
  13. [0.0, 0.0],
  14. [0.0, 0.0],
  15. [0.0, 0.0], // for (lon= 0; lon<lim[0]; lon++) {
  16. [0.0, 0.0],
  17. [0.0, 0.0],
  18. [0.0, 0.0], // for (lat= 0; lat<lim[1]; lat++) { p= cvs[lat*lim[0]+lon]; }
  19. [0.0, 0.0],
  20. [0.0, 0.0],
  21. [0.0, 0.0] // }
  22. ]
  23. };