Scientific Computing

Kenwood TS-2000 RS-232 remote baud rate change

Change the baud rate of the Kenwood TS-2000 over the RS-232 serial COM port locally or remotely. Faster rates are less reliable but enable quick parameter changes. 57600 has been reliable for me with the Kenwood TS-2000 for many years, but if you have high stakes operation or a noisy environment, in general slower serial speeds are more robust.

Local baud rate change

  1. menu 56
  2. select baud rate. Hamlib/rigctl recommends using the highest possible baud rate i.e. 57600 baud.
  3. power cycle the radio.

Remote baud rate change

  1. CAT EX menu item 56.

  2. Read the current baud rate by sending

     EX0560000;
    
  3. The radio will answer back

     EX05600004;
    

    which implies 57600 baud since the last digit is 4.

The last digit to baud is:

0: 4800
1: 9600
2: 19200
3: 38400
4: 57600

To set baud rate remotely, send the corresponding command. E.g. to set 57600 send:

EX05600004;

and turn off the TS-2000 by sending

PS0;

Now disconnect, and reconnect at the new baud rate (here, 57600) and turn the radio on by sending:

PS1;

Note: Lost communication with the TS-2000 requires a site visit. Be prepared.

Lenovo T540p with 2880 x 1620 resolution

Lenovo offers a 2880 x 1620 pixel T540p laptop that is on par with the MacBook Pro Retina 2880 x 1800.

There are other points to consider such as weight and price. The Lenovo 540p is nice for Linux with a Haswell quad-core CPU and user-upgradable RAM (up to 16GB RAM), HDD and DVD.

The Lenovo T540p is less than half the price $1300 vs. less-well equipped Apple MacBook Pro Retina at $2600.

MATLAB high CPU usage from Help browser

NOTE: Matlab R2024b and newer no longer use the internal Help browser for doc, instead referring “doc” commands to the system web browser.


After opening the Matlab Help Browser, Matlab might use 100% of one CPU core at about 25% duty cycle. Even after closing just the Help Browser while keeping Matlab itself open, this problem may persist.

Workaround: a one-time persistent setting.

Type in Matlab:

com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLRENDERER');

Restart Matlab, reopen and close Matlab Help Browser. The CPU is no longer hanging at 100% after closing the Help Browser. However, this simpler Help Browser is not as graphically nice as the default Help Browser. Clickable links won’t work in the help files.

Undo workaround: revert back to the default Help Browser with this one-time persistent setting. Type in Matlab:

com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLPANEL');

then restart Matlab.

Disable Beaglebone Black flashing heartbeat LED

Disable the Beaglebone Black flashing LEDs temporarily or permanently:

Persistently (permanently) disable: add to /etc/rc.local

echo none > /sys/class/leds/beaglebone\:green\:usr0/trigger
echo none > /sys/class/leds/beaglebone\:green\:usr1/trigger
echo none > /sys/class/leds/beaglebone\:green\:usr2/trigger
echo none > /sys/class/leds/beaglebone\:green\:usr3/trigger

Reference


Temporary disable (till reboot):

echo none > /sys/class/leds/beaglebone:green:usr0/trigger

Setting up GCX Linux astrometry program

Alternative: apt install astrometry.net


Install GCX

apt install gcx

GSC ACT catalog

there are a lot of directories with lots of ~50KB files, so it will take a while even with a very fast internet connection.

mkdir ~/gsc-act
cd ~/gsc-act

wget -r -nH --cut-dirs=5 ftp://cdsarc.u-strasbg.fr/pub/cats/I/255/GSC_ACT/

set File → File and Device Options/GSC to /home/username/gsc-act

username
your linux login

Tycho2 star catalog

mkdir ~/tycho2 && cd ~/tycho2

wget -r -nH --cut-dirs=5 ftp://cdsarc.u-strasbg.fr/pub/cats/I/259/

Once you see that they’ve downloaded correctly, do:

zcat tyc2.dat.??.gz > tycho2.dat

set File → File and Device Options/Tycho2 to /home/username/tycho2

username
your linux login

Science Magazine - Who's Afraid of Peer Review?

The “Who’s Afraid of Peer Review” article DOI: 10.1126/science.342.6154.60 notes that:

…Ocorrafoo Cobange does not exist, nor does the Wassee Institute of Medicine…submitted 304 versions of the wonder drug paper to open-access journals. More than half of the journals accepted the paper, failing to notice its fatal flaws…the data from this sting operation reveal the contours of an emerging Wild West… …acceptance was the norm, not the exception…

Counter-argument from Curt Rice in the Guardian

Quote of the Day

Some think the Earth is spherical, others that it is flat and drum-shaped. For evidence they bring the fact that, as the sun rises and sets, the part concealed by the Earth shows a straight and not a curved edge, whereas if the Earth were spherical the line of section would have to be circular . . . . . . but in eclipses of the moon the outline is always curved: and, since it is the interposition of the Earth that makes the eclipse, the form of this line will be caused by the form of the Earth’s surface, which is therefore spherical.

Aristotle. “On the Heavens”. Written 350 B.C.E.

Quoted in: Kabanikhin, Sergey I. Inverse and Ill-Posed problems