https://miscellaneousdetailstm.files.wordpress.com/2021/11/lucy-1.jpg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| # requires srtm: https://github.com/aatishnn/srtm-python | |
| # pip install simplekml | |
| # cache location for srtm | |
| SRTM_cache = r'/home/dfn-user/SRTM3/dds.cr.usgs.gov/srtm/version2_1/SRTM3' | |
| MIN_LAT = -27.667 | |
| MAX_LAT = -27.585 | |
| MIN_LON = 119.923 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": 1, | |
| "type": "raster", | |
| "sources": [ | |
| { | |
| "uri": "mapbox://tileset-source/hadry/SOURCE_ID" | |
| } | |
| ], | |
| "minzoom": 12, | |
| "maxzoom": 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -i '/^#/! s/+//g; /^#/! s/ //g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # de-AASmacro a bib file | |
| ifile=/tmp/hadrien.bib | |
| sed -i 's|\\zap|Zeitschrift fuer Astrophysik|g' ${ifile} | |
| sed -i 's|\\ssr|Space Science Reviews|g' ${ifile} | |
| sed -i 's|\\sovast|Soviet Astronomy|g' ${ifile} | |
| sed -i 's|\\solphys|Solar Physics|g' ${ifile} | |
| sed -i 's|\\skytel|Sky and Telescope|g' ${ifile} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # script to be called in crontab | |
| # the idea is to set the same environment for cron jobs | |
| # as if they were run on a live shell | |
| # | |
| # list conda environments installed: conda-env list | |
| # | |
| # usage: /usr/local/bin/conda_ini.sh conda_environment_name whatever_script.sh -a whatever arguments | |
| # |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://heasarc.gsfc.nasa.gov/docs/software/fitsio/cexamples.html | |
| gcc listhead.c -o listhead -I/usr/lib/x86_64-linux-gnu -lcfitsio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from astropy.table import Table | |
| import great_expectations as ge | |
| ifile = '/home/hadry/data/consolidated_dfn_fireball_dataset-latest.xml' | |
| t = Table.read(ifile) | |
| # great_expectations derives a pandas dataframe | |
| df = ge.from_pandas(t.to_pandas()) | |
| df.set_index('event_codename') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # lens testing script | |
| # takes a picture with gphoto, and opens a jpg version on screen | |
| # | |
| # gphoto doesn't support multiple same model cameras, as they are designated by model instead of USB port | |
| # to find out what your model is called: | |
| # gphoto2 --list-cameras | grep D810 | |
| # | |
| # requirements: dcraw, gphoto, eog | |
| # camera setting: RAW only (no RAW+JPG) |
NewerOlder