Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add water ice scattering data to spectral files #4

Open
nichollsh opened this issue Jun 17, 2024 · 0 comments
Open

Add water ice scattering data to spectral files #4

nichollsh opened this issue Jun 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nichollsh
Copy link
Owner

SOCRATES contains data for including the scattering properties of water ice clouds. These could be added to the spectral files in the spectraltools pipeline.

See script below...

#!/bin/bash
# Ryan Boukrouche

name="miniSuran"

socrates_data="/proj/bolinc/users/x_ryabo/SOCRATES/data"
path_sp_sw="/proj/bolinc/users/x_ryabo/spectral_files/Suran/${name}_sw.sf"
path_sp_lw="/proj/bolinc/users/x_ryabo/spectral_files/Suran/${name}_lw.sf"

ver="2022"

rm -f fit_thick_ice_casim_${ver}_${name}_sw.sf mon_thick_ice_casim_${ver}_${name}_sw.sf
Cscatter_average \
-s $path_sp_sw -P 1 -t -S ${socrates_data}/solar/trappist1 \
-f 20 fit_thick_ice_casim_${ver}_${name}_sw.sf \
mon_thick_ice_casim_${ver}_${name}_sw.sf 917 \
${socrates_data}/cloud/scatter_ice_casim_${ver}

echo "Cscatter_average on $path_sp_sw completed."

rm -f fit_thick_ice_casim_${ver}_${name}_lw.sf mon_thick_ice_casim_${ver}_${name}_lw.sf
Cscatter_average -s $path_sp_lw -P 1 -t -p 250 \
-f 20 fit_thick_ice_casim_${ver}_${name}_lw.sf \
mon_thick_ice_casim_${ver}_${name}_lw.sf 917 \
${socrates_data}/cloud/scatter_ice_casim_${ver}

echo "Cscatter_average on $path_sp_lw completed."

prep_spec <<EOF 
${name}_sw.sf
a
12
13
fit_thick_ice_casim_${ver}_${name}_sw.sf
-1
EOF

echo "prep_spec on $path_sp_sw completed."

prep_spec <<EOF 
${name}_lw.sf
a
12
13
fit_thick_ice_casim_${ver}_${name}_lw.sf
-1
EOF

echo "prep_spec on $path_sp_lw completed."

Which will need to be translated into Python.

@nichollsh nichollsh added the enhancement New feature or request label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant