-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update aircraft test, add Downwelling_Radiance test
- Loading branch information
Showing
8 changed files
with
964 additions
and
9 deletions.
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
489 changes: 489 additions & 0 deletions
489
test/mains/regression/forward/test_Downwelling_Radiance/Load_Atm_Data.inc
Large diffs are not rendered by default.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
test/mains/regression/forward/test_Downwelling_Radiance/Load_Sfc_Data.inc
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,55 @@ | ||
! | ||
! Include file containing an internal subprogam to load some test surface data | ||
! | ||
SUBROUTINE Load_Sfc_Data() | ||
|
||
|
||
! 4a.0 Surface type definitions for default SfcOptics definitions | ||
! For IR and VIS, this is the NPOESS reflectivities. | ||
! --------------------------------------------------------------- | ||
INTEGER, PARAMETER :: TUNDRA_SURFACE_TYPE = 10 ! NPOESS Land surface type for IR/VIS Land SfcOptics | ||
INTEGER, PARAMETER :: SCRUB_SURFACE_TYPE = 7 ! NPOESS Land surface type for IR/VIS Land SfcOptics | ||
INTEGER, PARAMETER :: COARSE_SOIL_TYPE = 1 ! Soil type for MW land SfcOptics | ||
INTEGER, PARAMETER :: GROUNDCOVER_VEGETATION_TYPE = 7 ! Vegetation type for MW Land SfcOptics | ||
INTEGER, PARAMETER :: BARE_SOIL_VEGETATION_TYPE = 11 ! Vegetation type for MW Land SfcOptics | ||
INTEGER, PARAMETER :: SEA_WATER_TYPE = 1 ! Water type for all SfcOptics | ||
INTEGER, PARAMETER :: FRESH_SNOW_TYPE = 2 ! NPOESS Snow type for IR/VIS SfcOptics | ||
INTEGER, PARAMETER :: FRESH_ICE_TYPE = 1 ! NPOESS Ice type for IR/VIS SfcOptics | ||
|
||
|
||
|
||
! 4a.1 Profile #1 | ||
! --------------- | ||
! ...Land surface characteristics | ||
sfc(1)%Land_Coverage = 0.1_fp | ||
sfc(1)%Land_Type = TUNDRA_SURFACE_TYPE | ||
sfc(1)%Land_Temperature = 272.0_fp | ||
sfc(1)%Lai = 0.17_fp | ||
sfc(1)%Soil_Type = COARSE_SOIL_TYPE | ||
sfc(1)%Vegetation_Type = GROUNDCOVER_VEGETATION_TYPE | ||
! ...Water surface characteristics | ||
sfc(1)%Water_Coverage = 0.5_fp | ||
sfc(1)%Water_Type = SEA_WATER_TYPE | ||
sfc(1)%Water_Temperature = 275.0_fp | ||
! ...Snow coverage characteristics | ||
sfc(1)%Snow_Coverage = 0.25_fp | ||
sfc(1)%Snow_Type = FRESH_SNOW_TYPE | ||
sfc(1)%Snow_Temperature = 265.0_fp | ||
! ...Ice surface characteristics | ||
sfc(1)%Ice_Coverage = 0.15_fp | ||
sfc(1)%Ice_Type = FRESH_ICE_TYPE | ||
sfc(1)%Ice_Temperature = 269.0_fp | ||
|
||
|
||
|
||
! 4a.2 Profile #2 | ||
! --------------- | ||
! Surface data | ||
sfc(2)%Land_Coverage = 1.0_fp | ||
sfc(2)%Land_Type = SCRUB_SURFACE_TYPE | ||
sfc(2)%Land_Temperature = 318.0_fp | ||
sfc(2)%Lai = 0.65_fp | ||
sfc(2)%Soil_Type = COARSE_SOIL_TYPE | ||
sfc(2)%Vegetation_Type = BARE_SOIL_VEGETATION_TYPE | ||
|
||
END SUBROUTINE Load_Sfc_Data |
65 changes: 65 additions & 0 deletions
65
test/mains/regression/forward/test_Downwelling_Radiance/Makefile.in
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,65 @@ | ||
# @configure_input@ | ||
|
||
# individual test makefile template | ||
|
||
# The file definitions. This include must occur before targets. | ||
EXE_FILE=$(shell echo ${PWD} | sed 's,.*/,,') | ||
SRC_FILE=$(EXE_FILE).f90 | ||
OBJ_FILE=${SRC_FILE:.f90=.o} | ||
|
||
# The test type (e.g. forward, k_matrix, etc) | ||
TEST_TYPE=`dirname ${PWD} | sed 's,.*/,,'` | ||
|
||
# Tool-specific substitution variables | ||
FC = @FC@ | ||
FCFLAGS = @FCFLAGS@ -I../../incsrc | ||
LDFLAGS = @LDFLAGS@ | ||
LIBS = @LIBS@ | ||
|
||
# The targets | ||
all: $(EXE_FILE) | ||
|
||
$(OBJ_FILE): $(SRC_FILE) | ||
|
||
$(EXE_FILE): $(OBJ_FILE) | ||
@echo; echo; \ | ||
echo "=============================================="; \ | ||
echo "Building $(TEST_TYPE) $(EXE_FILE) using:"; \ | ||
echo " FC : $(FC)"; \ | ||
echo " FCFLAGS : $(FCFLAGS)"; \ | ||
echo " LDFLAGS : $(LDFLAGS)"; \ | ||
echo "==============================================" | ||
$(FC) $(LDFLAGS) $(OBJ_FILE) -o $(EXE_FILE) $(LIBS) | ||
|
||
clean: | ||
@echo; echo; \ | ||
echo "=============================================="; \ | ||
echo "Cleaning up $(TEST_TYPE) $(EXE_FILE)"; \ | ||
echo "==============================================" | ||
rm -fr $(OBJ_FILE) $(EXE_FILE) gmon.out *.output *.bin results/*.signal | ||
|
||
update: | ||
@update() \ | ||
{ files=`find . -maxdepth 1 -name "$$1" -print`; \ | ||
if [ -n "$$files" ]; then \ | ||
mv $$files results; \ | ||
else \ | ||
echo "No $$1 files to update."; \ | ||
fi \ | ||
}; \ | ||
echo; echo; \ | ||
echo "=============================================="; \ | ||
echo "Updating results for $(TEST_TYPE) $(EXE_FILE)"; \ | ||
echo "=============================================="; \ | ||
update "*.output"; update "*.bin" | ||
|
||
realclean: clean | ||
-rm Makefile | ||
|
||
# Specify targets that do not generate filesystem objects | ||
.PHONY: all clean update realclean | ||
|
||
# Specify suffix rules | ||
.SUFFIXES: .f90 .o | ||
.f90.o: | ||
@$(FC) $(FCFLAGS) -c $< |
9 changes: 9 additions & 0 deletions
9
test/mains/regression/forward/test_Downwelling_Radiance/SignalFile_Create.inc
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,9 @@ | ||
SUBROUTINE SignalFile_Create() | ||
CHARACTER(256) :: Filename | ||
INTEGER :: fid | ||
Filename = RESULTS_PATH//TRIM(PROGRAM_NAME)//'_'//TRIM(Sensor_Id)//'.signal' | ||
fid = Get_Lun() | ||
OPEN( fid, FILE = Filename ) | ||
WRITE( fid,* ) TRIM(Filename) | ||
CLOSE( fid ) | ||
END SUBROUTINE SignalFile_Create |
1 change: 1 addition & 0 deletions
1
test/mains/regression/forward/test_Downwelling_Radiance/sensor_id.list
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 @@ | ||
crisB1_npp |
Oops, something went wrong.