Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Would you guys be able to complete this without the starslab.jar file? If so please go by template COMP 163 Star Chart Astronomers collect lots
Would you guys be able to complete this without the starslab.jar file? If so please go by template
COMP 163 Star Chart Astronomers collect lots of data about stars and there are many catalogs that identify the locations of stars. In this assignment, you will use data in a star catalog to create a picture that plots the locations of stars. 1 The file stars.txt contains one line for each star that is represented in the catalog. The meaning of each field (column) is described below .The first three fields are the x, y and z coordinates for the star. Each axis in the coordinate system goes from -1 to +1, and the center point is 0,0. (See the figure below.) The fourth field is the Henry Draper number, which is simply a unique identifier for the star that is unnecessary for this program The fifth field is the magnitude (or brightness) of the star. The smaller the number, the brighter the star The sixth field is Harvard Revised number, another identifier that is unnecessary for this program Your program will have to read each data item in the file even if it will not be used The coordinate system used for pixels in a picture has position (0,0) in the upper left corner of the picture, and the maximum x and y values are the height and width of the picture in pixels. In this assignment, all pictures will be square with a maximum height and width of 900 pixels. See below for a comparison of the two coordinate systems. 0,0 0, 900 -0.5 0.0 Pixel Coordinate System 0.5 -1 900, 0 Star Catalog Coordinate System The first step is to write a method that will convert from coordinate numbers to a pixel location. same method will work for both X and Y coordinates. The method will have the header Note the int coord2pixel( double coord) The idea for this assignment comes from httpomifty stanford edu/2009 reid-starmap/starmap htm pape I of 2 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started