Skip to content

Commit

Permalink
Merge pull request #1 from CroatianMeteorNetwork/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
satmonkey authored Jun 7, 2020
2 parents 2913ff8 + fda0d4d commit 574c3bb
Show file tree
Hide file tree
Showing 86 changed files with 40,195 additions and 12,927 deletions.
30 changes: 21 additions & 9 deletions .config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[System]

stationID: CA0001
stationID: XX0001
latitude: 43.19301 ; WGS84 +N (degrees )
longitude: -81.315555 ; WGS84 +E (degrees)
elevation: 327 ; mean sea level EGM96 geoidal datum, not WGS84 ellipsoidal (meters)
Expand All @@ -16,6 +16,8 @@ cams_code: 0 ; Should be set only if full CAMS compatibility is desired
; ---------------
; Enable running an external script at the end of every night of processing
external_script_run: false
; Run the external script after auto reprocess. "auto_reprocess" needs to be turned on for this to work.
auto_reprocess_external_script_run: false
; Full path to the external script
external_script_path: /home/dvida/Desktop/rms_external.py
; Name of the function in the external script which will be called
Expand Down Expand Up @@ -75,11 +77,21 @@ captured_dir: CapturedFiles
; Directory for archived files
archived_dir: ArchivedFiles

; Extra available space in GB to leave on the SD card every night after the predicted size of all FF files have been taken into account
extra_space_gb: 3

; Directory for log files
log_dir: logs

; Enable/disable showing maxpixel on the screen
live_view_enable: true
; Enable/disable showing maxpixel on the screen during capture
live_maxpixel_enable: false

; Enable/disable showing a slideshow of last night's meteor detections on the screen during the day
slideshow_enable: false

; Automatically reprocess broken capture directories (due to e.g. power cut or system crash)
auto_reprocess: true


[Build]

Expand Down Expand Up @@ -241,21 +253,21 @@ ang_vel_max: 51.0 ; deg/s
; Filtering by intensity
; By default the peak of the meteor should be at least 16x brighter than the background. This is the
; multiplier that scales this number (1.0 = 16x).
min_patch_intensity_multiplier: 1.0
min_patch_intensity_multiplier: 2.5


[StarExtraction]

; Extract stars
; -------------
; Maximum mean intensity of an image before it is discared as too bright
; Maximum mean intensity of an image before it is discarded as too bright
max_global_intensity: 140
; Apply a mask on the detections by removing all that are too close to the given image border (in pixels)
border: 15
; Size of the neighbourhood for the maximum search (in pixels)
neighborhood_size: 5
neighborhood_size: 10
; A threshold for cutting the detections which are too faint (0-255)
intensity_threshold: 30
intensity_threshold: 18
; An upper limit on number of stars before the PSF fitting (more than that would take too long to process)
max_stars: 400

Expand Down Expand Up @@ -303,7 +315,7 @@ remote_platepar_dir: platepars
; -----------
; The limiting magnitude of the used stars, used for filtering out catalog stars which are fainter then
; the system can detect
catalog_mag_limit: 4.0
catalog_mag_limit: 4.5
; How many calstars FF files to evaluate
calstars_files_N: 400
; Minimum number of stars to use
Expand All @@ -330,4 +342,4 @@ thumb_n_width: 10
[Stack]

; Whether to apply the mask to stack or not
stack_mask: false
stack_mask: false
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Config file
.config

# Sublime files
*.sublime-project
*.sublime-workspace
Expand Down Expand Up @@ -88,3 +85,7 @@ target/

#VS Code files
.vscode

#Jetbrains code files
.idea

Empty file removed FILES_TO_UPLOAD.inf
Empty file.
7 changes: 7 additions & 0 deletions Guides/build_with_anaconda.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Build with Anaconda

Navigate to the RMS directory and run:

```console
conda-build . -c conda-forge
```
9 changes: 6 additions & 3 deletions devices → Guides/devices.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
UTV007
# Devices


## UTV007
kernel driver
USB ID: 2002
usage:
Expand All @@ -11,7 +14,7 @@ restrictions:
Brightness/contrast/saturation/hue of usbtv kernel module can be controlled by v4l2-ctl (from v4l-utils) with
e.g. v4l2-ctl --set-ctrl=brightness=512. Default values in Ubuntu 16.04 are too dark by default.

Somagic
## Somagic
userspace module
USB ID(non-initized): 1c88:0007
USB ID(initized): 1c88:003f
Expand All @@ -27,7 +30,7 @@ restrictions:
- has to use binary-blob (firmware)... can be extracted over USB, extracted from CD or downloaded illegally (propertary)
- no V4L2 driver, unless kernel is recompiled (no way!)

Arkmicro UVC
## Arkmicro UVC
UVC-compatible (ie. kernel driver)
USB ID: 18ec:5850
usage:
Expand Down
16 changes: 16 additions & 0 deletions Guides/working_with_pci_cards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Working with PCI / PCI-E cards

If you're using internal cards, make sure that the correctly input is selected.
You can use [v4l2-ctl](https://petersopus.wordpress.com/tag/v4l2/) to configure it, like this (using a Pinnacle 110i pci card):

```console
v4l2-ctl -i 3 -d 1 --set-standard=0
```

When

- -i 3: selecting 3rd input option, in this case, S-VIDEO
- -d 1: the input device (/dev/videoX)
- --set-standard: 0 is the NTSC option

You can put it on `/etc/rc.local` or set manually before start capture.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Furthermore, you will need the following software and libraries to run the code:
- cython (0.25.2 or later)
- pyephem (3.7.6.0 or later)
- paramiko
- imageio


All python libraries will be installed when you run the setup.py script (instructions below). If you want use IP cameras, you need to install a special compilation of OpenCV that supports gstreamer. Run the opencv3_install.sh script that is provided in this repository to install this.
Expand All @@ -101,7 +102,7 @@ Alternatively, if you are using Anaconda Python, you can install all libraries e

```
conda install -y numpy scipy gitpython cython matplotlib
conda install -y -c conda-forge pyephem Pillow imreg_dft
conda install -y -c conda-forge pyephem Pillow imreg_dft imageio
conda install -y -c astropy astropy
```

Expand Down
17 changes: 0 additions & 17 deletions RMS.sublime-project

This file was deleted.

Loading

0 comments on commit 574c3bb

Please sign in to comment.