-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensuring that a given axis is always used in a consistent grid position #1046
Comments
Comment by @AnsleyManke on 20 Jan 2011 21:27 UTC |
Comment by @AnsleyManke on 28 Jan 2011 01:03 UTC |
Comment by @AnsleyManke on 29 Feb 2012 00:26 UTC When an axis in the netCDF file is reversed ( here a Y-axis listed with coordinates as follows: rlatu = 1.55, 1.52, 1.48, ..., -1.48, -1.52, -1.55 ; ) and two datasets that use the same grids are opened, the reversed-character of the axis is not applied to the second dataset. The information is lost when doing the consistent-axis-ordering fixes here. The dataset has a dimension with ambiguous direction, SIGS, so the code to figure out a consistent axis ordering is called. I created a subset of the datset, see short_data.nc attached to this ticket. Here is an example:
What happens is that cd_consistent_axis_orient.F has been trying to use the an array of logicals marking the axis "reversed". That's set when initializing the first datset from which the axis is read. When looking at the grid for the variable in the second dataset, Ferret has determined that the axes match, but that "reversed" flag is no longer set for an axis that came in from the first datset. The grid has been created, and the info we need is stored in another variable, ds_ordering, which cd_consistent_axis_orient.F can use instead. |
Attachment from @AnsleyManke on 29 Feb 2012 00:25 UTC |
This last issue with reversed axes is the same as the report in #1941, closed. |
Reported by @AnsleyManke on 15 Dec 2010 23:44 UTC
Some datasets have dimensions or coordinate variables that don't explicitly tell Ferret their direction. In such cases the flag line_direction(line) gets the value of 'NA' and then when the grids are created, the axis might take on different directions for variables in the dataset. This can cause troubles in f-tds.
Here's a short cdl file, where the axes bbb and ccc have no defined direction. The behavior is similar if the dimensions do not have corresponding coordinate variables - though we need to work out the behavior in both cases.
Opening the corresponding nc file, the SHOW DATA has the ccc dimension being used as the X axis in some variables, and the Y axis in another.
The text was updated successfully, but these errors were encountered: