Here is an excellent answer to what I wanted to do, and it works like a charm. Unfortunately, when I want to change it a bit, it fails. For setting the stage, here is the datafile, and this is my initialization code:
import = Drop[Import["Fermi2", "Table"], 1];
ra = Table[(Take[import[[i]], {2, 4}][[1]] +
Take[import[[i]], {2, 4}][[2]]/60. +
Take[import[[i]], {2, 4}][[3]]/3600.)/24 360, {i, 1,
Length[import]}];
dec = Table[Sign[Take[import[[i]], {5, 7}][[
1]]] (Abs[Take[import[[i]], {5, 7}][[1]]] +
Take[import[[i]], {5, 7}][[2]]/60. +
Take[import[[i]], {5, 7}][[3]]/3600.), {i, 1, Length[import]}];
data = Transpose[{dec, ra}];
Then I use the following code to produce a projection of the points onto the sky:
GeoGraphics[{Black, Point@GeoPosition@data},
GeoRange -> {All, {0, 360}}, PlotRangePadding -> [email protected],
GeoGridLinesStyle -> Directive[Black, Dashed],
GeoProjection -> "Sinusoidal", GeoGridLines -> Automatic,
GeoBackground -> White, Frame -> True,
ImagePadding -> {{60, 40}, {40, 15}}, ImageSize -> 800,
FrameTicks -> {Table[{N[i Degree], Row[{i/15 + 12, " h"}]}, {i, -180, 180, 30}],
Table[{N[i Degree], Row[{i, " \[Degree]"}]}, {i, -90, 90, 30}]},
Background -> White, FrameStyle -> Black, TicksStyle -> 15,
FrameLabel -> {{"DEC", None}, {"RA", None}}]
which produces the following image:
Looks perfect. Next, I simply changed Sinusoidal
to Mollweide
in the above code, and got the following image:
This, contrary to the previous case, places the ticks in wrong places: they do not correspond anymore to the dashed grid lines on the projection.
So, my question is: how to fix this so the ticks are at the right places?
EDIT: Inspired by this post I found out that the Hammer
projection suffers the same issue as the Mollweide
projection, but Aitoff
(very similar to Hammer
) works as fine as the Sinusoidal
projection.