Skip to content

Commit

Permalink
use export to set env var
Browse files Browse the repository at this point in the history
oguyon committed Aug 19, 2024
1 parent 6b87774 commit 0d6f4ea
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pages/cacao/cacao_acquire_linear_response.md
Original file line number Diff line number Diff line change
@@ -85,7 +85,7 @@ The output is a FITS cube, written to ./conf/RMmodesWFS/<name>.WFSresp.fits. For
# ./conf/TipTiltFoc.WFSresp.fits
cacao-aorun-030-acqlinResp -n 4 HpokeC
cacao-aorun-030-acqlinResp -n 10 ZpokesC.5
cacao-aorun-030-acqlinResp -n 30 TipTiltFocCACAO_FPSPROC_ACQUWFS
cacao-aorun-030-acqlinResp -n 30 TipTiltFoc
</pre>
{{site.data.alerts.end}}

11 changes: 7 additions & 4 deletions pages/cacao/cacao_directories_files.md
Original file line number Diff line number Diff line change
@@ -60,26 +60,29 @@ mkdir -p conftest1
cp ./conf/zrespM.fits ./conftest1/


# Have all cacao scripts below work in conftest1
export CACAO_CONFWDIR="conftest1"

# Create Zernike-Fourier modes
CACAO_CONFWDIR="conftest1" cacao-aorun-028-mkZFmodes -c0 0 -c1 32 -c 50 -ea 2.0 -t 1.0 -a 0.3
cacao-aorun-028-mkZFmodes -c0 0 -c1 32 -c 50 -ea 2.0 -t 1.0 -a 0.3
# output:
# conftest1/RMmodesDM/modesZF0.fits (not apodized)
# conftest1/RMmodesDM/modesZF.fits (apodized)

# Create the corresponding response
CACAO_CONFWDIR="conftest1" cacao-aorun-034-RMzonal2modal modesZF
cacao-aorun-034-RMzonal2modal modesZF
# output:
# conftest1/RMmodesDM.fits
# conftest1/RMmodesWFS.fits

# Compute the corresponding control matrix using the by-block algorithm
CACAO_CONFWDIR="conftest1" cacao-aorun-045-compCM-byblocks 0.06 1
cacao-aorun-045-compCM-byblocks 0.1 1
# output:
# conftest1/CMmodesDM.fits
# conftest1/CMmodesDM.fits

# Load the CM to shared memory, copy to main conf and log
CACAO_CONFWDIR="conftest1" cacao-aorun-042-loadCM
cacao-aorun-042-loadCM

```

0 comments on commit 0d6f4ea

Please sign in to comment.