-
Notifications
You must be signed in to change notification settings - Fork 0
/
emit.am
44 lines (33 loc) · 3.42 KB
/
emit.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Stuff specific to emit
# Build these up as we go
dist_installemit_SCRIPTS =
SWIG_FLAG =
installemit_SCRIPTS =
DIST_HOOK =
# Dist check need to know where to find geocal
DISTCHECK_CONFIGURE_FLAGS = PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)
# For now, we carry around our own spice kernels for testing. This can
# perhaps go away when we have this set up on EMIT.
export SPICEDATA = $(abs_srcdir)/@unittestdata@/spice_data
export EMIT_TEST_DATA=@testdatadir@/latest
# end to end check
end-to-end-check:
source $(prefix)/setup_emit.sh && export EMIT_END_TO_END_TEST=t && l1b_geo_process l1b_geo_run $(EMIT_TEST_DATA)/l1_osp_dir $(EMIT_TEST_DATA)/o80000_input.json
-source $(prefix)/setup_emit.sh; echo "**** Compare GLT ****"; gdalcompare.py l1b_geo_run/emit20200610t015051_o80000_s001_l1b_glt_b001_v01.img $(EMIT_TEST_DATA)/expected/emit20200610t015051_o80000_s001_l1b_glt_b001_v01.img; echo "**** Compare LOC ****"; gdalcompare.py l1b_geo_run/emit20200610t015051_o80000_s001_l1b_loc_b001_v01.img $(EMIT_TEST_DATA)/expected/emit20200610t015051_o80000_s001_l1b_loc_b001_v01.img; echo "**** Compare OBS ****"; gdalcompare.py l1b_geo_run/emit20200610t015051_o80000_s001_l1b_obs_b001_v01.img $(EMIT_TEST_DATA)/expected/emit20200610t015051_o80000_s001_l1b_obs_b001_v01.img
end-to-end-aviris-check:
@echo "This end to end test has outlived it usefuless. We will no"
@echo "longer run this one"
# source $(prefix)/setup_emit.sh && l1b_geo_process l1b_aviris_geo_run $(EMIT_TEST_DATA)/l1_osp_aviris_ng_dir $(EMIT_TEST_DATA)/*o90000_l1a_att*.nc $(EMIT_TEST_DATA)/*o90000_s001_l1a_line_time*.nc $(EMIT_TEST_DATA)/*o90000_s001_l1b_rdn*.img
# Note we can generate our own binfac file, but the original one that was
# used for the clip file was generated by pyortho. This sometimes is off by
# 1 from what we generate, and this particular case happens to have that
# happen. So use the value from pyortho for consistency. Longer term Phil
# will use our binfac file to create the clip file and this difference
# won't matter.
end-to-end-aviris-ng-check:
source $(prefix)/setup_emit.sh && export EMIT_END_TO_END_TEST=t && aviris_ng_l1a_orbit_process --binfac-fname=$(EMIT_TEST_DATA)/ang20220224t195402_raw.binfac aviris_ng_run $(EMIT_TEST_DATA)/l1_osp_aviris_ng_dir $(EMIT_TEST_DATA)/ang20220224t195402_raw $(EMIT_TEST_DATA)/ang20220224t195402_gps $(EMIT_TEST_DATA)/ang20220224t195402_pps && aviris_ng_geo_process aviris_ng_run $(EMIT_TEST_DATA)/l1_osp_aviris_ng_dir aviris_ng_run/ang20220224t195402_att.nc aviris_ng_run/ang20220224t195402_line_time.nc $(EMIT_TEST_DATA)/ang20220224t195402_rdn_v2z4_clip
-source $(prefix)/setup_emit.sh; echo "**** Compare GLT ****"; echo "Not generated yet" ; echo "**** Compare LOC ****"; gdalcompare.py aviris_ng_run/ang20220224t195402_loc $(EMIT_TEST_DATA)/expected/ang20220224t195402_loc; echo "**** Compare IGM ****"; gdalcompare.py aviris_ng_run/ang20220224t195402_igm $(EMIT_TEST_DATA)/expected/ang20220224t195402_igm; echo "**** Compare OBS ****"; gdalcompare.py aviris_ng_run/ang20220224t195402_obs $(EMIT_TEST_DATA)/expected/ang20220224t195402_obs
# Short cut for debugging, assume we have already run
# end-to-end-aviris-ng-check for the L1A stuff, and just need to rerun geo
end-to-end-aviris-ng-geo-only-check:
source $(prefix)/setup_emit.sh && aviris_ng_geo_process aviris_ng_run $(EMIT_TEST_DATA)/l1_osp_aviris_ng_dir aviris_ng_run/ang20220224t195402_att.nc aviris_ng_run/ang20220224t195402_line_time.nc $(EMIT_TEST_DATA)/ang20220224t195402_rdn_v2z4_clip