{"action":"created","issue":{"url":"https://api.github.com/repos/ClimateGlobalChange/tempestremap/issues/9","labels_url":"https://api.github.com/repos/ClimateGlobalChange/tempestremap/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ClimateGlobalChange/tempestremap/issues/9/comments","events_url":"https://api.github.com/repos/ClimateGlobalChange/tempestremap/issues/9/events","html_url":"https://github.com/ClimateGlobalChange/tempestremap/issues/9","id":88215974,"number":9,"title":"Help with CS meshes and feedback on NCO/ncks support","user":{"login":"czender","id":5597049,"avatar_url":"https://avatars.githubusercontent.com/u/5597049?v=3","gravatar_id":"","url":"https://api.github.com/users/czender","html_url":"https://github.com/czender","followers_url":"https://api.github.com/users/czender/followers","following_url":"https://api.github.com/users/czender/following{/other_user}","gists_url":"https://api.github.com/users/czender/gists{/gist_id}","starred_url":"https://api.github.com/users/czender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czender/subscriptions","organizations_url":"https://api.github.com/users/czender/orgs","repos_url":"https://api.github.com/users/czender/repos","events_url":"https://api.github.com/users/czender/events{/privacy}","received_events_url":"https://api.github.com/users/czender/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-14T17:02:16Z","updated_at":"2015-06-16T18:09:03Z","closed_at":null,"body":"Hola Paul et al, \r\n\r\nNCO version 4.5.0 (latest stable release) works well with all SCRIP and ESMF-generated map-files that I have tested. Version 4.5.1-alpha1 (just now released) can apply (some) Tempest-generated map-files. Regridding rectangular lat-lon (RLL) meshes RLL<->RLL seems to work. I don't understand the parameters to generate correct cubed-sphere (CS) meshes, so I can't yet test CS<->CS and CS<->RLL.\r\n\r\nI have ne120np4 and ne30np4 (pentagons) data from ACME, and am trying to regrid ne120np4 to ne30np4. Can Tempest do this? If so, please help me refine this Tempest procedure, which completes but issues many non-conservative warnings, and then has unexpected dimension sizes on both source and destination grids:\r\n\r\n```\r\nGenerateCSMesh --res 30 --file ${DATA}/rgr/msh_ne30.g\r\nGenerateCSMesh --res 120 --file ${DATA}/rgr/msh_ne120.g\r\nGenerateOverlapMesh --a ${DATA}/rgr/msh_ne120.g --b ${DATA}/rgr/msh_ne30.g --out ${DATA}/rgr/msh_ovr_ne120_to_ne30.g\r\nGenerateOfflineMap --in_mesh ${DATA}/rgr/msh_ne120.g --out_mesh ${DATA}/rgr/msh_ne30.g --ov_mesh ${DATA}/rgr/msh_ovr_ne120_to_ne30.g --in_type cgll --out_type cgll --in_np 4 --out_np 4 --out_map ${DATA}/maps/map_ne120np4_to_ne30np4.20150613.nc\r\n```\r\n\r\nI am out of my depth with CS FV/FE options. If Tempest cannot do this then please suggest a different unstructured grid test that I can perform with some CAM data.\r\n\r\nThis is also a request for any feedback on the NCO implementation, where ncks plays the role of Tempest ApplyOfflineMap. Source + docs at\r\nhttps://github.com/czender/nco/releases\r\nhttp://nco.sf.net/nco.html#regrid\r\nEspecially interested in feature requests to better handle 0D, 1D, and grid-dependent variables, and in supporting awesome Tempest meshes. \r\n\r\nThanks!\r\nCharlie"},"comment":{"url":"https://api.github.com/repos/ClimateGlobalChange/tempestremap/issues/comments/112517142","html_url":"https://github.com/ClimateGlobalChange/tempestremap/issues/9#issuecomment-112517142","issue_url":"https://api.github.com/repos/ClimateGlobalChange/tempestremap/issues/9","id":112517142,"user":{"login":"paullric","id":5330916,"avatar_url":"https://avatars.githubusercontent.com/u/5330916?v=3","gravatar_id":"","url":"https://api.github.com/users/paullric","html_url":"https://github.com/paullric","followers_url":"https://api.github.com/users/paullric/followers","following_url":"https://api.github.com/users/paullric/following{/other_user}","gists_url":"https://api.github.com/users/paullric/gists{/gist_id}","starred_url":"https://api.github.com/users/paullric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paullric/subscriptions","organizations_url":"https://api.github.com/users/paullric/orgs","repos_url":"https://api.github.com/users/paullric/repos","events_url":"https://api.github.com/users/paullric/events{/privacy}","received_events_url":"https://api.github.com/users/paullric/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T18:09:02Z","updated_at":"2015-06-16T18:09:02Z","body":"I will have a look into why nv_a = nv_b = 1, but might not get a chance this week.  This might be a bug in the output.  I’m not sure if it’s actually needed for performing the remapping, since all it requires is that n_a matches the length of ncol in the input array.\n\nRegarding quadrilateral data, I haven’t had a problem with using standard CAM output.\n\n~ Paul\n\n> On Jun 14, 2015, at 4:04 PM, Charlie Zender <notifications@github.com> wrote:\n> \n> With --alt the commands completed approximately as before, with similar warnings like these\n> \n> ....OfflineMap is not conservative in column 777598 (2.338265645186064e-32 / 2.298959801752191e-05)\n> ....OfflineMap is not conservative in column 777599 (-6.121658933823181e-32 / 2.290116807872842e-05)\n> ....OfflineMap is not conservative in column 777600 (-6.121658933823080e-32 / 2.290116807872857e-05)\n> ....OfflineMap is not conservative in column 777601 (1.602671115628291e-31 / 2.281239541626004e-05)\n> Writing output\n> ..Writing offline map\n> ------------------------------------------------------------\n> By pentagons I mean nv_a and nv_b = 5 and the coordinates look like pentagons. I have also seen ne30 and ne120 quadrilateral SCRIP-format gridfiles, yet I think the ACME simulations I have been looking at use the pentagons. Mark Taylor could explain which grids ACME uses and why. And the gridsizes are not what I expect:\n> \n> netcdf map_ne120np4_to_ne30np4.20150613 {\n>   dimensions:\n>     dst_grid_rank = 1 ;\n>     n_a = 777602 ;\n>     n_b = 48602 ;\n>     n_s = 14045402 ;\n>     nv_a = 1 ;\n>     nv_b = 1 ;\n>     src_grid_rank = 1 ;\n> Most of this looks right but NCO expects nv_a = nv_b = 5 for ACME files. For quadrilaterals, nv_a = nv_b = 4, yes? So what does nv_a = nv_b = 1 as above signify?\n> \n> Assuming my ACME data really are pentagons, I would be happy to test on CS quadrilaterals but I have no CAM data for quadrilaterals. So an alternative if Tempest won't do the pentagons is to send me a Tempest recipe for CS quadrilaterals and a CAM output file for both source and destination grid. I do want to test Tempest CS and any other popular Tempest grids before looking at the regionally refined maps.\n> \n> c\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/ClimateGlobalChange/tempestremap/issues/9#issuecomment-111883027>.\n> \n\n"}}