Pages

Categories

Quick STEREO Links

SolarSoft

Update $SSW/$SSWDB through cron jobs:

Corona (0 18 * * 5), Impact (0 1 * * 3), starspot (0 1 * * *). See cron jobs on corona:

0 18 * * 5 /opt/scripts/wget_ssw_arg cgro
0 18 * * 5 /opt/scripts/wget_ssw_arg gen
0 18 * * 5 /opt/scripts/wget_ssw_arg goes
0 18 * * 5 /opt/scripts/wget_ssw_arg hessi
0 18 * * 5 /opt/scripts/wget_ssw_arg hic
0 18 * * 5 /opt/scripts/wget_ssw_arg hinode
0 18 * * 5 /opt/scripts/wget_ssw_arg hxrs
0 18 * * 5 /opt/scripts/wget_ssw_arg iris
0 18 * * 5 /opt/scripts/wget_ssw_arg offline
0 18 * * 5 /opt/scripts/wget_ssw_arg optical
0 18 * * 5 /opt/scripts/wget_ssw_arg proba2
0 18 * * 5 /opt/scripts/wget_ssw_arg psp
0 18 * * 5 /opt/scripts/wget_ssw_arg radio
0 18 * * 5 /opt/scripts/wget_ssw_arg sdo
0 18 * * 5 /opt/scripts/wget_ssw_arg site
0 18 * * 5 /opt/scripts/wget_ssw_arg smei
0 18 * * 5 /opt/scripts/wget_ssw_arg smm
0 18 * * 5 /opt/scripts/wget_ssw_arg so
0 18 * * 5 /opt/scripts/wget_ssw_arg soho
0 18 * * 5 /opt/scripts/wget_ssw_arg spartan
0 18 * * 5 /opt/scripts/wget_ssw_arg stereo
0 18 * * 5 /opt/scripts/wget_ssw_arg trace
0 18 * * 5 /opt/scripts/wget_ssw_arg vobs
0 18 * * 5 /opt/scripts/wget_ssw_arg yohkoh
0 18 * * 5 /opt/scripts/wget_ssw_packages

0 18 * * 5 /opt/scripts/wget_sdb_soho_gen
0 18 * * 5 /opt/scripts/wget_sdb_soho_sumer
0 18 * * 5 /opt/scripts/wget_sdb_soho_lasco_monthly
0 18 * * 5 /opt/scripts/wget_sdb_soho_cds
0 18 * * 5 /opt/scripts/wget_sdb_stereo
0 18 * * 5 /opt/scripts/wget_sdb_iris
0 18 * * 5 /opt/scripts/wget_sdb_psp
0 18 * * 5 /opt/scripts/wget_sdb_so

0 18 * * 5 /opt/scripts/wget_sdb_packages_pfss
0 18 * * 5 /opt/scripts/wget_sdb_packages_cmes

Source code for the script wget_ssw_arg:

$ more /opt/scripts/wget_ssw_arg
#!/bin/bash

WGET=”/usr/bin/wget”

remote_path=”https://soho.nascom.nasa.gov/solarsoft/$1/”
local_path=”/solar/ssw/$1/”
log_path=”/export/home/borut/admin/logs/wget/”

rdate1=`date +%Y%m%d.%H%M`

$WGET -m -nH –timestamping -e robots=off –no-parent -P $local_path -R robots.txt,index.html,index.html?* –cut-dirs=2 -nH $remote_path -o $log_path/wget_ssw_$1_$rdate1.out

rdate2=`date +%Y%m%d.%H%M`

mv $log_path/wget_ssw_$1_$rdate1.out $log_path/wget_ssw_$1_$rdate1-$rdate2.out

$

Backup:

On starspot zfs-auto-snapshot is enabled. You can roll back older versions. See /solar/.zfs/snapshot/ on starspot.

Upgrade $SSW/$SSWDB using IDL to generate the upgrade script (an example):

IDL> ssw_path,’$SSW_ONTOLOGY/idl_mods’,/prepend
Including Paths:
—————————–
| $SSW/vobs/ontology/idl_mods |
—————————–
% SSW_PATH: Number of paths changed from 95 to 96
IDL> which,’ssw_upgrade’
% Compiled module: WHICH.
% Compiled module: STR_SEP.
/solar/ssw2/vobs/ontology/idl_mods/ssw_upgrade.pro
IDL> ssw_upgrade,/chianti,/wispr,/suvi,/swap,/stix,/script,/wget,/append

————————————————————————–
| SSW upgrade script updated >> /solar/ssw2/site/setup/ssw_upgrade_wget.csh |
————————————————————————–

IDL> exit

corona% more /solar/ssw2/site/setup/ssw_upgrade_wget.csh
#!/bin/csh -f
# ssw_upgrade script updated @  02-Mar-23 15:08:53.000
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/gen  –no-check-certificate   –cut-dirs=2 https://soho.nascom.nasa.gov/solarsoft/gen/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/packages/binaries  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/packages/binaries/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/stereo/gen  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/stereo/gen/
# ssw_upgrade script updated @  02-Mar-23 15:14:24.000
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/goesr/suvi  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/goesr/suvi/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/packages/chianti  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/packages/chianti/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/packages/nrl  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/packages/nrl/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/packages/sunspice  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/packages/sunspice/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/proba2/swap  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/proba2/swap/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/psp/gen  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/psp/gen/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/psp/wispr  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/psp/wispr/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/so/gen  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/so/gen/
wget -nv -q  -np -nH -N -r -l inf -erobots=off -P /solar/ssw2/so/stix  –no-check-certificate   –cut-dirs=3 https://soho.nascom.nasa.gov/solarsoft/so/stix/

 

Pages: 1 2