en:documentation:catgen
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:documentation:catgen [2009/01/12 23:57] – marc_fokker | en:documentation:catgen [2016/09/24 17:21] (current) – [Notes for Linux and Mac users] pch | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== CATGEN ====== | ====== CATGEN ====== | ||
| - | FIXME Please, correct my poor english | + | From the menu: **Setup |
| + | \\ \\ | ||
| + | You can download thousands of Catalog text files with data of any kind of celestial objects from the **[[http:// | ||
| - | Catalog text files with data of any kind of celestial objects are available by the thousands from the **[[http:// | + | The objective of this program tool is to convert an ASCII catalog text file to a file that SkyCharts can use efficiently. Due to the large amount of available data, it will be impossible to make a choice that will fit all your needs. When you have a specific interest, you can use CatGen to build your own data set from the original professional catalog data. You also can use any new catalog without delay, as soon as it is published. |
| - | + | ||
| - | The objective of this program tool is to prepare a catalog text file for an efficient | + | |
| - | Due to the large amount of available data, it is impossible to make a choice that will fill all your needs. When you have a specific interest, you can use CatGen to build your own data set from the original professional catalog data. You also can use any new catalog without delay, as soon as it is published. | + | |
| For a good performance of your newly built catalog in SkyCharts, you can use CatGen to convert the original text based catalog to a catalog in an organized binary format. | For a good performance of your newly built catalog in SkyCharts, you can use CatGen to convert the original text based catalog to a catalog in an organized binary format. | ||
| Line 28: | Line 27: | ||
| 26- 31 I6 | 26- 31 I6 | ||
| - | It is important to be familiar with the format of the text based catalog before you try to convert it with CatGen. There are lots of details to pay attention at: units, value ranges (between square brackets), number formats, identifiers, | + | It is important to be familiar with the format of the text based catalog before you try to convert it with CatGen. There are lots of details to pay attention at: units, value ranges (between square brackets), number formats, identifiers, |
| - | If the data only is available in another format, it is generally easy to write a simple program to extract and format them. A scripting language like Perl can be very useful for that. To handle the CSV files you can use the very good **[[http:// | + | If the data only is available in another format, it is generally easy to write a simple program to extract and format them. A scripting language like Perl can be very useful for that. To handle the CSV files you can use the very good **[[http:// |
| You have to select which data to include in your catalog version. For each catalog type, there is a minimal quantity of information that is required to draw the object on the chart. But you can choose to add a number of the other fields with information to display, when you click on such an object. | You have to select which data to include in your catalog version. For each catalog type, there is a minimal quantity of information that is required to draw the object on the chart. But you can choose to add a number of the other fields with information to display, when you click on such an object. | ||
| Line 50: | Line 49: | ||
| * **Save Project** allows you to create (if it didn't already exist) the " | * **Save Project** allows you to create (if it didn't already exist) the " | ||
| * **Load project** restores the " | * **Load project** restores the " | ||
| + | |||
| + | |||
| Line 56: | Line 57: | ||
| ===== Page 1 ===== | ===== Page 1 ===== | ||
| {{ en: | {{ en: | ||
| + | |||
| In the first page you need to indicate the **Catalog type** in your catalog, this activates some specific options in the next pages. | In the first page you need to indicate the **Catalog type** in your catalog, this activates some specific options in the next pages. | ||
| Line 64: | Line 66: | ||
| Click the **Open** button to select the catalog text file. The large catalogs are often split in many smaller files, in such a case select all the files at the same time, the file order doesn' | Click the **Open** button to select the catalog text file. The large catalogs are often split in many smaller files, in such a case select all the files at the same time, the file order doesn' | ||
| - | Choose **Output Catalog Type**. With SkyChart V3, you can choose text file output | + | Choose **Output Catalog Type**. With SkyChart V3, you can choose text file for small catalogs. In this case no data is written out but just a file descriptor that let the program to access your original text file. This way a change to the file is reported to the chart without having to run Catgen again. |
| + | |||
| + | If you select "Text file catalog" | ||
| Click the **Next** button to go to the second page. | Click the **Next** button to go to the second page. | ||
| - | \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ | + | \\ \\ \\ |
| Line 79: | Line 83: | ||
| ===== Page 2 ===== | ===== Page 2 ===== | ||
| {{ en: | {{ en: | ||
| + | |||
| Select the input format of the coordinates: | Select the input format of the coordinates: | ||
| * **RA options** Hour, minutes, seconds or decimal Hour or Degrees, minutes, seconds or decimal degrees. | * **RA options** Hour, minutes, seconds or decimal Hour or Degrees, minutes, seconds or decimal degrees. | ||
| Line 96: | Line 101: | ||
| * **Edit line operation** (see below) set character strings that will be recognized for drawing operations (comma separated values). Click return when ready. | * **Edit line operation** (see below) set character strings that will be recognized for drawing operations (comma separated values). Click return when ready. | ||
| * **Edit color** (see below) set character strings that will be recognized for lines color (comma separated values). Click return when ready. | * **Edit color** (see below) set character strings that will be recognized for lines color (comma separated values). Click return when ready. | ||
| + | |||
| {{en: | {{en: | ||
| **Nebulae Options** | **Nebulae Options** | ||
| {{ en: | {{ en: | ||
| + | |||
| * **Dimension and Units** default dimensions (in case of empty fields: no data) and unit. | * **Dimension and Units** default dimensions (in case of empty fields: no data) and unit. | ||
| * **Logaritmic scale** check this box if the field used for size is a flux, i.e. for a radio source catalog. | * **Logaritmic scale** check this box if the field used for size is a flux, i.e. for a radio source catalog. | ||
| * **Edit Object Type** set character strings that will be recognized to set the object type (comma separated values). Click return when ready. | * **Edit Object Type** set character strings that will be recognized to set the object type (comma separated values). Click return when ready. | ||
| * **Edit Units** set character strings that will be recognized to set the unit size (comma separated values). Click return when ready. | * **Edit Units** set character strings that will be recognized to set the unit size (comma separated values). Click return when ready. | ||
| + | |||
| {{en: | {{en: | ||
| Click the **Next** button to go to the third page. | Click the **Next** button to go to the third page. | ||
| + | |||
| Line 156: | Line 165: | ||
| If you check **Use this field name as an Alternate name** the string value can be used as an alternate name for the object. This name is used in the case the main name (Catalog Id) is missing or it can be added to the index file of the catalog.\\ | If you check **Use this field name as an Alternate name** the string value can be used as an alternate name for the object. This name is used in the case the main name (Catalog Id) is missing or it can be added to the index file of the catalog.\\ | ||
| {{ en: | {{ en: | ||
| - | **Advanced** button enables you to compute a linear transformation of the catalog data, it is active only for numeric values.\\ | + | |
| - | A use is to obtain the object coordinates when not directly available from the catalog.\\ | + | The **Advanced** button enables you to compute a linear transformation of the catalog data. It is active only for numeric values.\\ |
| + | A use can be to obtain the object coordinates when these aren' | ||
| If the catalog gives the object position in millimeters in the plate from the galaxy center (i.e. ra: 0h42m42.00s dec: | If the catalog gives the object position in millimeters in the plate from the galaxy center (i.e. ra: 0h42m42.00s dec: | ||
| The approximate (without plate correction) coordinates in degrees are: | The approximate (without plate correction) coordinates in degrees are: | ||
| Line 175: | Line 185: | ||
| ===== Page 4 ===== | ===== Page 4 ===== | ||
| {{ en: | {{ en: | ||
| + | |||
| In the last page you set the options for the generated catalog. | In the last page you set the options for the generated catalog. | ||
| Line 189: | Line 200: | ||
| {{ en: | {{ en: | ||
| + | |||
| A progress box shows you the current operation. You can interrupt the process by pressing the **Abort** button. In such a case the catalog will not be usable.\\ | A progress box shows you the current operation. You can interrupt the process by pressing the **Abort** button. In such a case the catalog will not be usable.\\ | ||
| After the build is complete, the progress box is closed. You can exit the program with the **Close** button. | After the build is complete, the progress box is closed. You can exit the program with the **Close** button. | ||
| Line 197: | Line 209: | ||
| If all worked well, you are now ready to use the catalog. Refer to **[[http:// | If all worked well, you are now ready to use the catalog. Refer to **[[http:// | ||
| + | |||
| + | ===== Notes for Linux and Mac users ===== | ||
| + | |||
| + | Please read carefully if you plan to make a big catalog with 9537 files. | ||
| + | |||
| + | As it read lines from the input files Catgen need to randomly write the data to | ||
| + | the 9537 output files, depending of the star coordinates. So the 9537 files need | ||
| + | to be open at the same time. | ||
| + | |||
| + | As Linux and Mac OS are multi-user operating system there is safe-guard to avoid one user | ||
| + | to eat all of the system resource. For a standard Linux installation for example the | ||
| + | maximum number of file a user can open at the same time is limited to 1024. | ||
| + | |||
| + | On Mac OS X the way to do may vary depending on your version. See the first answer [[http:// | ||
| + | |||
| + | On Linux you first need to change the system limit in the file | ||
| + | limits.conf : | ||
| + | < | ||
| + | sudo vi / | ||
| + | </ | ||
| + | add this two lines at the end of the file: | ||
| + | < | ||
| + | * soft nofile 1024 | ||
| + | * hard nofile 32768 | ||
| + | </ | ||
| + | I recommend you keep the default value of 1024, this can be a good protection | ||
| + | again a runaway process. | ||
| + | |||
| + | Save the file, and logout from the system as this file only apply at next login. | ||
| + | |||
| + | Then open a terminal window and type : | ||
| + | < | ||
| + | ulimit -S -n 20000 | ||
| + | </ | ||
| + | and from the same terminal type : | ||
| + | < | ||
| + | skychart | ||
| + | </ | ||
| + | This is very important as the limit change is only for the current instance of | ||
| + | the shell, not system width. | ||
en/documentation/catgen.1231801039.txt.gz · Last modified: 2015/11/06 20:33 (external edit)
