latitude_longitude grid mapping #404
Replies: 13 comments 4 replies
-
The top of Appendix F: Grid Mappings says: The attributes which describe the ellipsoid and prime meridian may be included, when applicable, with any grid mapping. These are: and none of these are included in the definition of the individual mappings. However, I agree with Karl, that in the special case of |
Beta Was this translation helpful? Give feedback.
-
Perhaps it would be sufficient to say that the attributes for describing the figure of the Earth are the ones listed at the start of Appendix F? If we list them again, there's a small risk of inconsistency developing in future. We could also consider providing an example which uses grid mapping for just that purpose in the grid mapping section. |
Beta Was this translation helpful? Give feedback.
-
O.K., I missed the key sentence just above the list of 7 mapping parameters that can apply to any mapping. Perhaps for each of the mapping options (not just latitude_longitude) we should include a line under "Map Parameters:" we should include the sentence: I think there are already several examples in sections 5 and 7 that show for the latitude_longitude mapping that these parameters can be attached. |
Beta Was this translation helpful? Give feedback.
-
Well I both agree and disagree. Reshuffling/summarising comments a bit (hopefully without obfuscating the originally intended meaning):
I agree with 1, 2, and 4, but strongly disagree with 3 for the following reasons:
That is, for all grid mappings listed in Appendix F it is always an advantage to specify the size/shape of the earth (or whatever planet/body in focus). Moreover, in situation C, which is allowed since CF-1.9 it is necessary to specify size/shape to allow calculation of latitude/longitude. |
Beta Was this translation helpful? Give feedback.
-
I added a thumbs up for Lars' suggestions above, but on further reflection, I'm not sure I understand whether the second bulleted item is a good idea. The first item falls along the lines of the suggestion I made here. |
Beta Was this translation helpful? Give feedback.
-
@taylor13 I am happy that we agree (all agree as it seems from comments so far) regarding the first point. Could you be more specific in your concerns regarding the second bullet point? |
Beta Was this translation helpful? Give feedback.
-
O.K., after rereading a few of the above, I think I see what you are saying @larsbarring, but I don't think I agree with the second point. I don't think we should necessarily require that attributes like |
Beta Was this translation helpful? Give feedback.
-
Karl, @taylor13, with what you write it seems that we now also agree on the "problem description":
This is exactly the point I am making: to correctly geolocate the data lat/lon is required, and if not provided they have to be possible to calculate. And to carry out such a calculation enough information regarding the map projection has to be provided. And, information regarding the size/shape of the earth (or more generally the body) is part of that requirement. I take this to be a matter of fact. As such it should be made clear in the CF Conventions text. You continue
I would agree to that for some (whether that is many or not I do not know) it is sufficient to pick a reasonable value if the necessary parameters are missing. But I also know that for many applications this is not acceptable. From somewhere (I can't recall where) I have it that the error could be as large as 20 km if you are picking the wrong -- but still reasonable -- size/shape parameters. Limited area models are nowaday regularly run at 1-3 km scale in climate simulation mode, and at sub-km scale in NWP mode, and around the corner are GCMs/ESMs at km-scale coming along. In this perspective 20 km error is huge and I would say unacceptable. It may put precipitation on the wrong side of mountains, mangle lake and coastal effects, and much more. To my mind the key thing is that the CF Conventions should (must! I would argue) be clear about what the implication would be if some information is not included. However, this is not to say that the CF Convention must require this information to included. If it, for legacy arguments, is impossible for the CF Conventions to actually require the information to be included I suggest that text could still be crafted that states something along these lines: "... if lat/lon is not provided the complete map projection must be provided to enable geolocation of the data. Therefore, the Conventions strongly recommend that size/shape parameters are given in combination with the specific parameters for each map projection ...." |
Beta Was this translation helpful? Give feedback.
-
I think that for all existing global climate models and for the observations they are compared with, there are no consequences of importance in leaving out information about earth's size or shape. All models I'm familiar with assume a spherical earth and some radius that is close to the mean radius of earth. Mountains are located at the longitudes and latitudes where they are found, and ocean and land are not shifted from their observed longitude and latitude positions. The simulated climate recorded as a function of latitude can be compared to the observed climate at those same longitudes and latitudes. I'm not that familiar with the map projections used for regional models. Can someone say for some common use cases what the implications would be if size or shape parameters were omitted? |
Beta Was this translation helpful? Give feedback.
-
Earlier today I learnt that Joakim is not available for some time, I will try to retrace what we encountered. |
Beta Was this translation helpful? Give feedback.
-
The German national meteorological service "Deutscher Wetterdienst" (my employer) uses a polar stereographic projection for their radar precipitation data (https://www.dwd.de/radolan). Recently the shape of the Earth in this projection was changed from spherical to the WGS84 ellipsoid. The result is that the area covered by the 900 x 900 nominal 1km x 1km grid cells expands in the east-west direction by a distance which is equivalent to several grid points on both sides of the domain. |
Beta Was this translation helpful? Give feedback.
-
This runs counter to section 1.1 of the conventions:
So there should either be a default value for missing parameters, or those parameters should be made mandatory. More in general, I would argue for a complete overhaul of section 5.6 and the current use of grid_mappings. The current arrangement is predicated on the use of PROJ software for conversion of spatial data from one "projection" to another. That, however, is ancient practice. The ISO 191** series and OGC have been around for 20+ years and even PROJ now ingests WKT2 strings for coordinate transformations. The |
Beta Was this translation helpful? Give feedback.
-
Karl @taylor13 : Here is a real-world example:
I.e. the maximum error exceeds ±2½ gridcells for this particular example, and even on average there is a mismatch. This is one of the domains we are using. The limited area model uses a Lambert Conformal Conic map projection (x, y grid). The example show the difference between calculating latitude/longitude using the correct spherical radius used in the model (which requires this information to be available to the user!), and just simply assuming that it is a WGS84 ellipsoid. Because the WGS84 is very common, and prevalent in many user communities, it is not far-fetched to think that a user will make this assumption. |
Beta Was this translation helpful? Give feedback.
-
Question
The description of latitude_longitude grid mapping here mentions that "It is included so that the figure of the Earth can be described", but it doesn't list any "Map Parameters". Shouldn't it list at least as options
semi_major_axis
,inverse_flattening
, andlongitude_of_prime_meridian
as in examples 5.9, 5.10, 5.11, 5.19, 7.15, and 7.16? These all appear in Table F.1 and are described as grid mapping attributes.Beta Was this translation helpful? Give feedback.
All reactions