You asked

Is the pentax hd d fa 21mm f 2 4 ed limited dc wr good for landscape?

The Pentax HD D FA 21mm f/2.4 ED Limited DC WR is a good landscape lens, but only on a full-frame body. On full frame it gives a true 21mm view, which is wide enough for big skies and strong foregrounds. The guide's landscape page names a wide view as the classic landscape starting point. On an APS-C Pentax it frames like 32mm on full frame, which is much less wide, so the guide would look elsewhere for landscapes on those bodies.

Three things suit it to landscape work. It is compact, and it is weather-sealed, which helps when you're outdoors in changing conditions. Its f/2.4 aperture is faster than you need, since the guide says landscapes are usually shot between f/8 and f/11, so you won't need the extra light. It is not stabilised, but that matters little when you shoot from a tripod at small apertures.

What it gives up is flexibility. A single 21mm prime can't reframe a scene the way a wide zoom can, and the guide's wide-zoom suggestion of around 16-35mm on full frame covers more ground. The guide also suggests a telephoto zoom for layers of hills and distant detail, so a prime like this works best as one part of a kit rather than the whole kit.

For a full-frame body, the Pentax K-1 Mark II and the Pentax K-1 are the full-frame options that take this lens and suit landscape work. The full catalogue page for the lens is here.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.