I wonder about space-grade ICs in flat packages.
Space-grade flat package ICs have very long leads compared to the commercial versions.
If I use a flat package IC on my CubeSAT board, can I modify the lead length by cutting or bending?
Yes, some space-grade flat-pack packages are manufactured with long leads. The user is expected to cut/bend them to meet their specific environmental needs. Longer leads may be necessary for severe vibration, shorter leads to save board space.
You should use a proper lead-forming tool. You don't want to apply stress to the joint where the lead meets the package.
If it is non military and commercial yes you can but it needs to be done properly. You need to support the leads between the package and the bend and then for the cut. This is to prevent shock going back into the IC causing damage. The procedure was in many data books if you can still find one.
The main reason for using leaded parts in mil/space applications is because of the stress that's applied to the solder joints during operational temperature swings. Too much stress, or too much accumulated stress (repeated application of a small amount of stress) can cause the solder joints to fail.
The material that the IC (and it's package) is made of usually has a different CTE (coefficient of thermal expansion) than does the PWB on which it's mounted. This difference in CTE puts stress on a rigid solder joint when the temperature changes.
These temperature changes can be due to environmental factors (into and out of the earth's shadow, for instance) or operation factors (an IC heats up when it's tuned on, relative to the PWB).
So in order to reduce this stress that accumulates over many temperature cycles - tens of thousands depending on a satellite's orbit and mission - you want some compliance, or give, between the leads and the PWB. A leaded part provides this compliance.
Note that this may not be a problem for a typical Cubesat application, which usually have a limited expected on-orbit life (several months to a year).
Usually leaded parts are not needed for vibration or shock reasons, which tend to be short duration for a satellite. Just the opposite, parts that might be shown to separate from the PWB during shock or vibe may be expoxyed or otherwise fastened to the board.