In 1998, The Ravenclaw corridor was located in the top-most floor of the building that surround the courtyard, as seen through the ghost of Helena Ravenclaw.
Behind the scenes
In the first two films, the scenes in this courtyard were filmed in the cloister of Durham Cathedral. However, in the fourth film, the location used was the New College (Oxford) and a big tree is shown in a corner. In the Harry Potter and the Prisoner of Azkaban (video game), the courtyard is similar with the courtyard from the first film, but with a large pond instead of a fountain. The Oxford courtyard is also seen in Harry Potter and the Order of the Phoenix (video game) but with a smaller tree and slightly different cloister windows. The courtyard shown in the sixth film (and video game) was built in Leavesden studios, most likely to accommodate the addition of the Astronomy Tower. The set has now been renovated into the newly enlarged Entrance Courtyard for Deathly Hallows.
*Disclosure: Some of the links above are affiliate links, meaning, at no additional cost to you, Fandom will earn a commission if you click through and make a purchase. Community content is available under CC-BY-SA unless otherwise noted.