I have trouble with processing sky and ground, and usually I resort to lots of manipulation. I’d like to keep it within a RAW editor, so exactly how I can process these separately. Making the mask to separate the two in a external software isn’t difficult, so I’d be fine with two different setups.
For now, I’m using Darktable. So, that would be preferable, but I’d be fine with other approaches too.
The mask should be easy enough to make for that image (as @difrkaguilar has shown), if dt has a levels Threshold function like in the GIMP.
Difficulty appears when the levels in the sky are not sufficiently distinct from the ground - and perhaps we should concentrate on that aspect rather than stating the obvious re: masking.