The standard ratings are for 40C and 3300ft. I do not think that NEMA MG-1 provides for an increased temperature rise at altitudes less than 3300' but I may be wrong. They do require derating of allowable temperature rise at altitudes greater than 3300'. I do not remember the formula off the top of my head but can provide it.
I also think that NEMA allows for an increase in temperature rise for ambients less that 40C and, alternately, requires a decrease in temperature rise for ambient temperatures greater than 40C. I am not certain because I may be confusing the NEMA standard with the API specification.
In either case, the general rule is that the combination of ambient temperature and allowable temperature rise should equal 120C (Class B) unless otherwise specified by the customer. For example; the standard ambient of 40C plus the standard temperature rise of 80C, the standard marine ambient of 50C plus a temperature rise of 70C, and the occasional odd (I have seen this) ambient temperature of 46C plus a temperature rise of 74C.
Of course, the information on allowable temperature rise is useful from the design standpoint but it may not be useful to you if you are interested in determining how to derate existing NEMA rated motors for non-standard ambient temperatures and altitudes.
If you let me know which case you are looking at (new design or existing) I will review MG-1 on Monday and respond with an answer after that.