Giter Site home page Giter Site logo

pysqm's People

Contributors

dario-pilori avatar jscheidtmann avatar mireianievas avatar seanmccully avatar sergiopasra avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pysqm's Issues

correct axis label "mag/arcsec²" instead of "mag/arcsec2"

Hello,

to be displayed "mag/arcsec2" at the axis label correctly "mag/arcsec²" with the superscript ^2
can please anyone change the sourcecode in file "pysqm/plot.py" at

  • Line 456
    self.thegraph_sunalt.set_ylabel('Sky Brightness (mag/arcsec2)',fontsize='medium')
    to
    self.thegraph_sunalt.set_ylabel('Sky Brightness (mag/arcsec$\mathregular{^2}$)',fontsize='medium')

  • Line 499
    self.thegraph_time.set_ylabel('Sky Brightness (mag/arcsec2)',fontsize='medium')
    to
    self.thegraph_time.set_ylabel('Sky Brightness (mag/arcsec$\mathregular{^2}$)',fontsize='medium')

The command $\mathregular{^2}$ does a real superscript without any font change (e.g. can happen when you use an alternate character like »²« or some unicode).

Result will looks like:
upl

Moon phase?

Is it possible the write the Moonphase in the Statistics_SQM file. Could be usefull to check data for moonless nights?

Thanks

No plot - ephem.AlwaysUpError

Got since 9th of June an error and -no- graph files anymore. The datafiles are okay and contain the SQM values, as usual.

The Error at the cronlog:

Plotting photometer data ...
Warning: Error plotting data.
(<class 'ephem.AlwaysUpError'>, AlwaysUpError("'Sun' is above the horizon at 2022/6/9 23:25:56",), <traceback object at 0xb498dc88>)
.........................350 2022-06-11T02:01:14.000;2022-06-11T04:01:14.000;15.34;45188.800;10.213;17.392
.........................355 2022-06-11T02:04:44.000;2022-06-11T04:04:44.000;15.16;28115.000;16.411;16.877
.........................360 2022-06-11T02:08:14.000;2022-06-11T04:08:14.000;15.10;23277.200;19.843;16.674
Plotting photometer data ...
Warning: Error plotting data.
(<class 'ephem.AlwaysUpError'>, AlwaysUpError("'Sun' is above the horizon at 2022/6/9 23:25:56",), <traceback object at 0xb498dee0>)
.........................365 2022-06-11T02:11:45.000;2022-06-11T04:11:45.000;15.10;21047.000;21.848;16.558
.........................370 2022-06-11T02:15:15.000;2022-06-11T04:15:15.000;15.10;13672.000;33.600;16.094
.........................375 2022-06-11T02:18:46.000;2022-06-11T04:18:46.000;15.10;9478.800;48.800;15.695

The files an the pi were untouched since months (yes, rebooted several times), so some file modification can't be an issue.

i think its because there is no night anymore (location coordinates around 51° N).

My knowledge of the code and python itself is very limited ... but it must be somewhere at file plot.py, around line 260 after 'Sun = ephem.Sun(Ephem.Observatory)' .

Can the ephem error(s) being catched by the following construct:

try:
[something]
except (ephem.AlwaysUpError, ephem.NeverUpError):
pass

It should be catched (or the not-set variable filled with standard value), that on those dates without a true night a plot is being created. The Values are complete present, only the graph is missing on these days.

:)

wrong time settings

was testing your software , looks good but looks like there is a evening
SQM_GRONINGEN
twilight issue in the graph: offset with 1 hour?

Location Groningen, the Netherlands

"Save to data center" may be inadvertendly activated by running with Optimization

The code calling the save_data_datacenter() uses an assertion to shield against sending data, if the feature is deactivated.

Like so:

            config._send_to_datacenter = False ### Not enabled by default
            try:
                assert(config._send_to_datacenter == True)
                assert(niter == 0)
                mydevice.save_data_datacenter("NEWFILE")
            except: pass

This means, the code IS run, when running with "python -O" according to python assert documentation.

This could create a GDPR risk for the server's operators for european users, as this leaks the observatory location - which very often may be the home address of the respective operators (One "not amused" user will be enough). To make matters worse data is sent in clear text over an unencrypted channel.

Schema for MySQL

I see MySQL settings in config.py but how should I create the MySQL table for PySQM to be able to save readings?

General error with this package?

Plugged in the SQM-LU at the Raspi4, Installed the package, edited the config.py, created the temp dir, but when i tried to run it by python i got this:


python -m pysqm
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/pi/PySQM/pysqm/main.py", line 29, in
import pysqm.main as main
File "pysqm/main.py", line 46, in
from pysqm.read import *
File "pysqm/read.py", line 31, in
import numpy as np
ImportError: No module named numpy

Also tried 'python2 -m pysqm' and 'python2.7 -m pysqm' .. result was the same.
What am i doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.