AGU FM17 PiRadar talk
AGU Fall Meeting 2017 Talk ED32A-12
AGU Fall Meeting 2017 Talk ED32A-12
Eclipse MegaMovie is a Google provide to register thousands of images taken during the solar eclipse, to provide spatiotemporal diversity not available any other practical way.
It’s pretty evident this is a laudable first pass. It looks like a lot of photos have over-exposure and dynamic range issues. This could perhaps be addressed by “gap data” techniques. Currently the nice filters are over $1000, but perhaps a compromise filter can be made much more cheaply.
We heard from seasoned developers as well as end-users who had the simplest use case: using DavitPy to load/read SuperDARN data. Topics aired included:
Previously, I had made an overly large pull request that incorporated fixes for the issues below. I will make separate, small pull requests for these issues.
A general issue for any Python program is that pyproject.toml should be used to configure the package as much as possible. A working example pyproject.toml using these features is illustrative.
Avoid Bash scripts as these don’t work on Windows unless using Windows Subsystem for Linux.
Example of rich Python 3 exception handling with backward compatibility:
import six
if six.PY2:
ConnectionError = OSError
# ...
try:
# download/upload from server or device
except ConnectionError:
print('could not connect to device')
returnBest practice for forward compatibility: do not use if six.PY3 or if not six.PY3, rather use if six.PY2.
To avoid lots of needless GitHub Issues and emails from users with obsolete Python versions, set pyproject.toml to limit to Python required by the program.
Antenna Hungária has broadcast Kossuth Rádió (now also available via internet streaming) on 540 kHz for over 40 years with a two megawatt, 50% efficient transmitter on the 303 meter tower at Transmitter Solt. With the old transmitter, four megawatts of 11 kV utility power resulted in two megawatts of RF on 540 kHz. The new solid-state Nautel NX2000 transmitter commissioned in November 2017 consists of five 400 kW transmitters combined, and “only” 2.2 megawatts input power at 11 kV is needed. Six-inch and twelve-inch RF coaxial hardline pump the RF to the combiner and then the antenna tower. This is the most powerful medium wave transmitter in Europe, and is equal to other most powerful two megawatt medium wave transmitters in the world.
Several one+ megawatt transmitters are shown in this graph.
Models: a groundwave propagation model covering 10 kHz - 30 MHz is described in ITU-R P.368. A very simple example (too inaccurate for planning work) is from ITU grwave. During the 1960s when high altitude nuclear weapons testing was permissible, D-layer absorption increases were thought to be responsible for loss of MW skywave reception for several days over thousands of kilometers. Because ground conductivity is so important, a meaningful MW groundwave model should take into account dynamics of earth conductivity in the coverage area.
Reference:
FGPMMOPA6H GPS manual
The PA6H GPS module and Raspberry Pi can make an NTP server. Note that the Raspberry Pi has 3.3 V logic so level shifters may be necessary to/from the 2.8 V GPS IO.
NMEA over UART: the Raspberry Pi UART via PySerial can read NMEA with a program such as NMEAutils. The hardware UART connection is to GPIO pins 14 and 15 on the various Raspberry Pi versions.
Red Pitaya NMEA over UART: starting with the
Red Pitaya UART Example in C,
one could scoop up the NMEA and extract the current time using a 1PPS driven interrupt.
Perhaps use PySerial to access /dev/ttyPS1 to use the Red Pitaya UART from Python.
The Red Pitaya UART
pinout
is to pins 7 and 8 of connector E2.
This would not be for setting the clock accurately like NTP, but rather for determining which second the 1PPS tick occurred at. This technique (with different hardware) was used for the HiST auroral tomography system.
The obsolete Fortran 66 statement pause had various behaviors depending on the operating system and compiler.
Fortran pause was used for three different purposes in the Fortran 66 / 77 era:
tty stdin, assigning the typed text to a variable.These can be replaced with unambiguous modern Fortran code.
Wait till Enter: the program waits for the Enter key, ignoring any console input.
use, intrinsic:: iso_fortran_env, only: input_unit
print *, 'Waiting for Enter.'
read(input_unit, *)The examples below are for Ubuntu, but equivalents may be found for Debian Gentoo Arch Linux and other distros.
File: “Search the content of Packages” in the Ubuntu Package Search, to find which packages provide a file for specific Ubuntu versions. This is important for files that aren’t available in your Ubuntu version.
Example: search for core/dbus/dbus.h shows it’s in libdbus-cpp-dev.
Program: show which versions Fortran open-coarrays is available in.
Search
source package names open-coarrays
Microsoft Miracast display adapter worked for me for a couple years. Suddenly I couldn’t pair from an Android device. The adapter is configured to use a PIN, and I had the correct PIN, but nothing would work. I had firmware V.2.0.8372 on the Microsoft Miracast adapter.
Use a native Windows laptop, as typical virtual machine software such as VirtualBox doesn’t provide the necessary software links to allow Miracast to work from a Windows guest OS. After a couple tries, I could connect.
Then the Miracast adapter again worked from an Android device as usual.
From a native Windows laptop:
ActOnChanged.py
program has a few operating modes on files changed in a Git repo since the last git commit
Print list of changed files:
./ActOnChanged.py ~/mydirEdit previously changed files in gedit:
./ActOnChanged.py ~/mydir geditWeb browser preview of all changed Jekyll pages:
./ActOnChanged.py ~/mydir --jekyllAndroid devices can be used as Bluetooth Low Energy (BLE) beacon receivers, loggers and transmitters with the nRF Connect app. For initial experiments, instead of buying BLE-specific beacon hardware, consider using old Android tablets and phones to setup a beacon network. Laptop computerss, BLE-enabled microcontrollers, and BLE-enabled single-board computers can also transmit and receive BLE beacons. A typical application of such beacons is for indoor / outdoor position estimation and tracking. BLE beaconing adjustments include:
BLE logging uses the nRF Logger app. to write to a log file beacon RSSI vs. time.