Commit 299df585 authored by vertighel's avatar vertighel
Browse files

Updated README

parent ecc0358e
Loading
Loading
Loading
Loading
Loading
+20 −54
Original line number Diff line number Diff line
@@ -19,6 +19,20 @@ https://noctis.inaf.it/en/index.html
- Resolve object coordinates via Simbad from name, or set coordinates;
- Automatically compute WCS, parallactic angle, airmass, and moon/sun-related metadata, etc.

## Virtual Environment

It is preferable to use a virtual environment. To do so:

```bash
python -m venv venv
source venv/bin/activate
```
Once activated, your terminal prompt will change to indicate that you are inside the virtual environment (e.g., `(venv) your-username@your-machine:...$`).
To deactivate de virtual environment:
```bash
deactivate
```

## Installation

```bash
@@ -208,51 +222,3 @@ Parses a value from a configuration string.

---



## Getting started

To make it easy for you to get started with GitLab, here's a list of recommended next steps.

Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!

## Add your files

- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:

```
cd existing_repo
git remote add origin https://www.ict.inaf.it/gitlab/noctis/noche.git
git branch -M main
git push -uf origin main
```

## Integrate with your tools

- [ ] [Set up project integrations](https://www.ict.inaf.it/gitlab/noctis/noche/-/settings/integrations)

## Collaborate with your team

- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
- [ ] [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)

## Test and Deploy

Use the built-in continuous integration in GitLab.

- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/)
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)

***

## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
+2 −28
Original line number Diff line number Diff line
@@ -219,33 +219,6 @@ class Noche:
                except Exception as e:
                    log.error(f"Failed to evaluate PreFormula for {k}: {e}")
                    
        # # Apply Mapping
        # loc = config["Mapping"]
        # for k in loc.keys():

        #     if not (k in self.header):
        #         log.error(f"{k} not in header")
        #         continue
            
        #     fits_keyword = loc[k]
        #     fits_value = fits_file_header[fits_keyword]
        #     val = self._parse(fits_value)
        #     self.header[k] = val
        #     log.info(f"{k:<8} : {val}")
            
        # # Apply PreFormula    
        # for k, formula in pre_formulas.items():
        #     if k in self.header:
        #         x = self.header[k]
        #         try:
        #             self.header[k] = eval(formula)
        #             log.warning(f"{k:<8} (Pre): from {x} to {self.header[k]}")
        #         except Exception as e:
        #             log.error(f"Failed to evaluate PreFormula for {k}: {e}")
        #     else:
        #         log.debug(f"PreFormula skipped: {k} not in header")
    
        # Set coordinates (calls _update(), which triggers set_wcs and others)
        self.set_coordinates(self.header["RA"],
                             self.header["DEC"],
                             obstime=self.header["DATE-OBS"])
@@ -264,6 +237,7 @@ class Noche:
    
        self.header["FILEORIG"] = filename.name

        
    def set_location(self, lon, lat, alt):
        """
        Location of the observatory, Separate so that it is
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ XPIXSZ = 9 # [um] Pixel X axis size
YPIXSZ = 9                        # [um] Pixel Y axis size
PIXSCALE = 1.22                   # [arcsec/px] Plate scale in binning 1
GAIN = 0.850                      # [e-/ADU] Gain
RDNOISE =                         # [e- RMS] Readout noise
RDNOISE = 3.9                     # [e- RMS] Readout noise

[Mapping]
NAXIS1 = NAXIS1                   # [px] X Dimensions of detector
+6 −6

File changed.

Contains only whitespace changes.