A star atlas which was possibly used by Captain Cook on his first Pacific voyage has been obtained by the National Library of Australia.