Bug #597

grdedit doesn't appear to fix inconsistent grid

Added by Joseph over 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:2014-08-08
Priority:NormalDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next bugfix release
Affected version:5.1.1 Platform:

Description

I run grdedit on a global grid and it says there are inconsistent values on the repeated edge at the dateline. Probably true.

However, it says it is replacing the east edge with the west values. Running grdedit a second, or even third time indicates that the values are not "fixed" after all..

Furthermore, it first indicates that 36,734 rows have a problem, and then it says 41,589, in same call...

The grid is large, global on a 15s pitch.

-jj

cmds

grdedit -R/-180/180/-90/90 /Volumes/RAID/doNotBackup/srtm15/land.unmasked.grd -S -fg
grdedit -R/-180/180/-90/90 /Volumes/RAID/doNotBackup/srtm15/land.unmasked.grd -S -fg
grdedit -R/-180/180/-90/90 /Volumes/RAID/doNotBackup/srtm15/land.unmasked.grd -S -fg

output

grdedit: Inconsistent values at repeated longitude nodes (-180 and 180) for 36734 rows
grdedit: Warning: detected 41589 inconsistent values along east boundary of grid. Values fixed by duplicating west boundary.
grdedit: Inconsistent values at repeated longitude nodes (-180 and 180) for 36734 rows
grdedit: Warning: detected 41589 inconsistent values along east boundary of grid. Values fixed by duplicating west boundary.
grdedit: Inconsistent values at repeated longitude nodes (-180 and 180) for 36734 rows
grdedit: Warning: detected 41589 inconsistent values along east boundary of grid. Values fixed by duplicating west boundary.

Associated revisions

Revision 13421
Added by Paul over 3 years ago

Address issue #597

History

#1 Updated by Paul over 3 years ago

  • Status changed from New to Resolved
  • Assignee set to Paul
  • Target version set to Candidate for next bugfix release
  • % Done changed from 0 to 100

This problem should now go away as I added a function call in the general grid writing function to ensure there are no mismatch between the west and any repeating east column, as well as along the south pole and north pole rows, if present. This only affects geographic grids with gridline registration that has 360-degree range and includes the poles. Let me know how it works for your case.

#2 Updated by Joseph about 3 years ago

fixed

#3 Updated by Paul about 3 years ago

  • Status changed from Resolved to Closed

Great, closing this issue as fixed.

Also available in: Atom PDF