-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test case for perturbation data.
- Loading branch information
Showing
15 changed files
with
42,243 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# $1 = longitude [deg] | ||
# $2 = latitude [deg] | ||
# $3 = mean brightness temperature [K] | ||
# $4 = noise estimate [K] | ||
|
||
6.83922 -56.997 262.576 0.294744 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# $1 = longitude [deg] | ||
# $2 = latitude [deg] | ||
# $3 = mean brightness temperature [K] | ||
# $4 = noise estimate [K] | ||
|
||
6.83922 -56.997 239.119 0.0764632 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# $1 = longitude [deg] | ||
# $2 = latitude [deg] | ||
# $3 = mean brightness temperature [K] | ||
# $4 = noise estimate [K] | ||
|
||
6.83922 -56.997 252.844 0.0665062 |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#! /bin/bash | ||
|
||
# Set environment... | ||
export LD_LIBRARY_PATH=../../libs/build/lib:$LD_LIBRARY_PATH | ||
export OMP_NUM_THREADS=4 | ||
|
||
# Setup... | ||
cris=../../src | ||
|
||
# Uncompress test data... | ||
cd ../data \ | ||
&& zip -s 0 cris_l1b.zip --out cris_l1b_full.zip \ | ||
&& unzip -o cris_l1b_full.zip \ | ||
&& cd - || exit | ||
|
||
# Create directory... | ||
rm -rf data && mkdir -p data || exit | ||
|
||
# Create perturbation file... | ||
$cris/perturbation - data/pert.nc \ | ||
../data/SNDR.SNPP.CRIS.20220115T0000.m06.g001.L1B.std.v03_08.G.220115064421.nc | ||
|
||
# Loop over channel sets... | ||
for pert in 4mu 15mu_low 15mu_high ; do | ||
|
||
# Get map data... | ||
$cris/map_pert - data/pert.nc data/map_$pert.tab PERTNAME $pert | ||
|
||
# Estimate noise... | ||
$cris/noise_pert - data/pert.nc data/noise_$pert.tab PERTNAME $pert | ||
|
||
# Get variance... | ||
$cris/variance - data/var_$pert.tab data/pert.nc PERTNAME $pert NX 60 NY 30 | ||
|
||
done | ||
|
||
# Compare files... | ||
echo -e "\nCompare results..." | ||
error=0 | ||
for f in $(ls data.ref/*.nc data.ref/*.tab) ; do | ||
diff -q -s data/"$(basename "$f")" "$f" || error=1 | ||
done | ||
exit $error |