FIG. 10 depicts a flowchart of an example of a cooling method according to some embodiments. For example, FIG. 10 illustrates a specific application of the cooling method of FIG. 8. In step 1002, a sensor system (e.g., sensor system 180) housed in an enclosure (e.g., enclosure 200, 300, 400, 500) determines a speed of a vehicle, an internal temperature of an enclosure, an external temperature, and a wind speed. The sensor system provides the determined inputs to a controller (e.g., controller 196, 252, 352, 452, 552). In step 1004, the controller operates a deflector (e.g., deflector 116, 126, 136, 146, 156, 166, 176) in a first mode in which the deflector extends to a first height above the groove and a second mode in which the deflector extends to a second height above the groove (e.g., above a plane of the roof of the vehicle). For example, the second height may be greater than the first height. The controller may adjust the height of the deflector based on the speed of the vehicle, the internal temperature of the enclosure, the external temperature, a difference between the internal temperature of the enclosure and the external temperature, or the wind speed. In step 1006, the controller adjusts a rotation speed of a fan (e.g., fan 244, 344, 444, 544) based on the height of the deflector.