The purpose of this paper is to describe a method for determining a cooling template for galaxies , using nearby galaxies , and applicable to future observations of distant galaxies . We observed two starburst galaxies ( NGC 253 and Henize 2-10 ) with the Caltech Submillimeter Observatory in the rotational lines of carbon monoxide ^ { 12 } CO ( J=3-2 ) , ( J=6-5 ) and ( J=7-6 ) for both , and also ^ { 12 } CO ( J=4-3 ) and ^ { 13 } CO ( J=3-2 ) for Henize 2-10 and in the ^ { 3 } P _ { 2 } - ^ { 3 } P _ { 1 } fine-structure transitions of atomic carbon [ CI ] at 809 GHz for NGC 253 . Some of these observations have been made previously , but the present multitransition study ( including data found in the literature ) is the most complete to date for the two galaxies . From these observations , we have derived the properties of the warm and dense molecular gas in the galaxy nuclei . We used an LTE analysis and an LVG radiative transfer model to determine physical conditions of the interstellar medium in both sources and predicted integrated line properties of all CO transitions up to ^ { 12 } CO ( 15-14 ) . We found the observations to be in good agreement with a medium characterized by T _ { k } \approx 50 - 100 \text { } K , \frac { { } ^ { 12 } CO } { { } ^ { 13 } CO } \approx 30 , n ( H _ { 2 } ) \gtrsim 10 ^ { 4 } \text { } cm ^ { -3 } and N ( ^ { 12 } CO ) = 3.5 \pm 1.0 \times 10 ^ { 18 } \text { } cm ^ { -2 } for Henize 2-10 and characterized by T _ { k } \approx 70 - 150 \text { } K , \frac { { } ^ { 12 } CO } { { } ^ { 13 } CO } \approx 40 , n ( H _ { 2 } ) \gtrsim 10 ^ { 4 } \text { } cm ^ { -3 } and N ( ^ { 12 } CO ) = 1.5 \pm 0.5 \times 10 ^ { 19 } \text { } cm ^ { -2 } for NGC 253 . A PDR model has also been used and here the data are well fitted ( within 20 % ) by a model cloud with a gas density of n ( H ) = 8.0 \pm 1.0 \times 10 ^ { 5 } cm ^ { -3 } and an incident FUV flux of \chi \approx 20000 for Henize 2-10 . For NGC 253 , we deduced n ( H ) = 3.0 \pm 0.5 \times 10 ^ { 5 } cm ^ { -3 } and \chi \approx 20000 for the modelled cloud . The physical properties of warm gas and CO cooling curves of the target galaxies are compared with those measured for the nucleus of the Milky Way and the Cloverleaf QSO . The gas properties and CO cooling curve are similar for the two starburst galaxies and the Cloverleaf QSO while the Milky Way nucleus exhibits lower excitation molecular gas .