Replies: 2 comments
-
|
Update: as a reply to the answer from @tmayerguerr (#396 (comment)), in the step |
Beta Was this translation helpful? Give feedback.
-
|
Hi @tmayerguerr, I think I found the root reason for this error. (Unfortunately, not yet the solution) Let me explain what I've found. When we use the program -180 180 0 90 0 The obtained
As you can see, the min elevation is not exactly However, when this
which gives the small negative result like
because of using polar coordinates projections. Hope I've made this clear. I think there was another user having similar concerns about rounding errors in I did not check the grid sampling code yet to see if it does use the similar algorithm for calculating the coordinates as used in the time series. Regards, |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I just got errors when running
PlotMapfor a skyplot.I checked the GMT plot script generated by
PlotMap, found a negative value for the min elevation set by theregionvariable:The region variable serves as a setting for the
-Roption which requires the min elevation is in the range0-90for Polar coordinates projections (-Jp|P).Then I checked the file
PlotMap.cpp, found it relates to the calculation of variableminB, which can be set by the user or inferred from the input data file if not set (default) according to the documentation. In my case, I leave it empty, which should mean "not set and inferred from the input data" according to my understanding on the documentation.As I am not very familiar with
C++at this point and can not inspect the source code thoroughly to find the precise code that makes this rounding errors, by results from AI coding agent:Now back to my thoughts:
gridlineRegistered=yesworks. But as I understand, for many data, it can be regarded as either point values or cell means. For example, the antenna PCV data, regarded as point values or cell means both makes sense. This should not be the root reason.minPhiexplicitly also works but not the best practice from programming perspective.So far, that's all I have. I will update my progress here. If I am wrong somewhere, or whoever has some comments, you are more than welcome to leave several words here.
Regards,
Hanbing
Beta Was this translation helpful? Give feedback.
All reactions