Distribution Statement
# # # This source code is subject to the license referenced at
# # # NRLMMD-GEOIPS.
Integration Tests#
These examples are generated from the scripts we use to test GeoIPS.
ABI Config Based Exclude GOES17#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
geoips run config_based \
$GEOIPS_TESTDATA_DIR/test_data_abi_day/data/goes17_20210718_0150/OR_ABI-L1b*.nc \
--output_config $GEOIPS_PACKAGES_DIR/geoips/tests/yaml_configs/abi_test_low_memory.yaml
config_retval=$?
# Produce an overall return value, sum of all 3
exit $((config_retval))
AMSR2 Ocean Tropical Cyclone Windspeed Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source ${GEOIPS_TESTDATA_DIR}/test_data_amsr2/data/AMSR2-OCEAN_v2r2_GW1_s202005180620480_e202005180759470_c202005180937100.nc \
--reader_name amsr2_netcdf \
--product_name windspeed \
--filename_formatter tc_clean_fname \
--output_formatter imagery_clean \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles ${GEOIPS_PACKAGES_DIR}/geoips/tests/sectors/tc_bdecks/bio012020.dat \
--compare_path "${GEOIPS_PACKAGES_DIR}/geoips/tests/outputs/amsr2_ocean.tc.windspeed.imagery_clean" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
IMERG Tropical Cyclone Rain Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_gpm/data/3B-HHR-L.MS.MRG.3IMERG.20200917-S170000-E172959.1020.V06B.RT-H5 \
--reader_name imerg_hdf5 \
--product_name Rain \
--filename_formatter tc_fname \
--output_formatter imagery_clean \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bal202020.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/imerg.tc.Rain.imagery_clean"
ss_retval=$?
exit $((ss_retval))
ABI Config Based Output#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
geoips run config_based \
--output_config $GEOIPS_PACKAGES_DIR/geoips/tests/yaml_configs/abi_test.yaml
config_retval=$?
# Produce an overall return value, sum of all 3
exit $((config_retval))
AMSUB MIRS Tropical Cyclone 183-3H Imagery Annotated#
#!/bin/bash
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_amsub/data/NPR-MIRS-IMG_v11r4_ma2_s202104192335000_e202104190118000_c202104200206490.nc \
--reader_name amsua_mhs_mirs \
--product_name RainRate \
--filename_formatter tc_fname \
--output_formatter imagery_annotated \
--feature_annotator tc_pmw \
--gridline_annotator tc_pmw \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp022021.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/amsua_mhs_mirs.tc.<product>.imagery_annotated" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
MIMIC Coarse Static TPW CIMSS Imagery Annotated#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_tpw/data/coarse/comp20210723.000000.nc \
--reader_name mimic_netcdf \
--product_name TPW-CIMSS \
--filename_formatter geoips_fname \
--output_formatter imagery_annotated \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/mimic_coarse.static.TPW-CIMSS.imagery_annotated" \
--sector_list global_cylindrical
ss_retval=$?
exit $((ss_retval))
ABI Config Based Output Low Memory#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
geoips run config_based \
--output_config $GEOIPS_PACKAGES_DIR/geoips/tests/yaml_configs/abi_test_low_memory.yaml
config_retval=$?
# Produce an overall return value, sum of all 3
exit $((config_retval))
ASCAT KNMI Tropical Cyclone Windbarbs Imagery Windbarbs Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# https://www.nrlmry.navy.mil/tcdat/tc2021/WP/WP022021/txt/SCT_winds_knmi_metop-c_WP02_202104210141
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_scat/data/metopc_knmi_125/ascat_20210421_010000_metopc_12730_eps_o_coa_3203_ovw.l2.nc \
--reader_name scat_knmi_winds_netcdf \
--product_name windbarbs \
--filename_formatter tc_clean_fname \
--output_formatter imagery_windbarbs_clean \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--tc_spec_template tc_web_ascat_high_barbs \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp022021.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ascat_knmi.tc.windbarbs.imagery_windbarbs_clean" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
MIMIC Fine Tropical Cyclone TPW PWAT Imagery Annotated#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_tpw/data/fine/comp20210419.230000.nc \
--reader_name mimic_netcdf \
--product_name TPW-PWAT \
--filename_formatter tc_fname \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--output_formatter imagery_annotated \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/mimic_fine.tc.TPW-PWAT.imagery_annotated" \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp022021.dat
ss_retval=$?
exit $((ss_retval))
ABI Static Infrared Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_noaa_aws/data/goes16/20200918/1950/* \
--reader_name abi_netcdf \
--product_name Infrared \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/abi.static.<product>.imagery_clean" \
--output_formatter imagery_clean \
--filename_formatter geoips_fname \
--resampled_read \
--logging_level info \
--sector_list goes_east_subsector
retval=$?
exit $retval
ASCAT Low KNMI Tropical Cyclone Windbarbs Imagery Windbarbs#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# https://www.nrlmry.navy.mil/tcdat/tc2021/WP/WP022021/txt/SCT_winds_knmi_metop-c_WP02_202104210141
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_scat/data/metopc_knmi_250/ascat_20210421_010000_metopc_12730_eps_o_250_3203_ovw.l2.nc \
--reader_name scat_knmi_winds_netcdf \
--product_name windbarbs \
--filename_formatter tc_fname \
--output_formatter imagery_windbarbs \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp022021.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ascat_low_knmi.tc.windbarbs.imagery_windbarbs" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
MODIS Infrared Unprojected Image#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/200500/MYD021KM.A2021004.2005.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/200500/MYD03.A2021004.2005.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/201000/MYD021KM.A2021004.2010.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/201000/MYD03.A2021004.2010.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/201500/MYD021KM.A2021004.2015.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/201500/MYD03.A2021004.2015.061.NRT.hdf \
--reader_name modis_hdf4 \
--product_name Infrared \
--output_formatter unprojected_image \
--output_formatter_kwargs '{"x_size": "250"}' \
--filename_formatter geoips_fname \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/modis.<product>.unprojected_image" \
--self_register_dataset '1KM' \
--self_register_source modis
retval=$?
exit $retval
ABI Static Infrared NetCDF GeoIPS#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
run_procflow $GEOIPS_TESTDATA_DIR/test_data_noaa_aws/data/goes16/20200918/1950/* \
--procflow single_source \
--reader_name abi_netcdf \
--product_name Infrared \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/abi.static.<product>.netcdf_geoips" \
--output_formatter netcdf_geoips \
--filename_formatter geoips_netcdf_fname \
--resampled_read \
--logging_level info \
--sector_list denver
retval=$?
exit $retval
ASCAT NOAA 25km Tropical Cyclone Windbarbs Imagery Windbarbs#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# https://www.nrlmry.navy.mil/tcdat/tc2021/WP/WP022021/txt/SCT_winds_knmi_metop-c_WP02_202104210141
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_scat/data/20230524_metopc_noaa_class_tc2023wp02mawar/L2OVW25kmASCAT_v1r1_m03_*.nc \
--reader_name scat_noaa_winds_netcdf \
--product_name windbarbs \
--filename_formatter tc_fname \
--output_formatter imagery_windbarbs \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp022023.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ascat_noaa_25km.tc.windbarbs.imagery_windbarbs" \
--tc_spec_template tc_web_ascat_low_barbs \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
OSCAT KNMI Tropical Cyclone Windbarbs Imagery Windbarbs#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# https://www.nrlmry.navy.mil/tcdat/tc2021/WP/WP022021/txt/SCT_winds_knmi_metop-c_WP02_202104210141
geoips run single_source \
$GEOIPS_TESTDATA_DIR/test_data_scat/data/oscat_250/oscat_20210209_022459_scasa1_23155_o_250_2202_ovw_l2.nc \
--reader_name scat_knmi_winds_netcdf \
--product_name windbarbs \
--filename_formatter tc_fname \
--output_formatter imagery_windbarbs \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--tc_spec_template tc_web \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bsh192021.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/oscat_knmi.tc.windbarbs.imagery_windbarbs" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
ABI Static Visible Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_noaa_aws/data/goes16/20200918/1950/* \
--reader_name abi_netcdf \
--product_name Visible \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/abi.static.<product>.imagery_clean" \
--output_formatter imagery_clean \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list goes_east_subsector
retval=$?
exit $retval
ASCAT NOAA 50km Tropical Cyclone Wind-Ambiguities Imagery Windbarbs#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# https://www.nrlmry.navy.mil/tcdat/tc2021/WP/WP022021/txt/SCT_winds_knmi_metop-c_WP02_202104210141
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_scat/data/20230524_metopc_noaa_class_tc2023wp02mawar/L2OVW50kmASCAT_v1r1_m03_*.nc \
--reader_name scat_noaa_winds_netcdf \
--product_name wind-ambiguities \
--filename_formatter tc_fname \
--output_formatter imagery_windbarbs \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp022023.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ascat_noaa_50km.tc.wind-ambiguities.imagery_windbarbs" \
--tc_spec_template tc_web_ascat_50km_barbs \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
SAPHIR Tropical Cyclone 183-3HNearest Imagery Annotated#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_saphir/data/MT1SAPSL1A__1.09_000_1_19_I_2021_02_09_00_30_03_2021_02_09_01_11_16_48144_48144_497_33_33_KUX_00.h5 \
--reader_name saphir_hdf5 \
--product_name 183-3HNearest \
--filename_formatter tc_fname \
--output_formatter imagery_annotated \
--feature_annotator tc_pmw \
--gridline_annotator tc_pmw \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bsh192021.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/saphir.tc.183-3HNearest.imagery_annotated" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
AHI Tropical Cyclone WV GeoTIFF#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_noaa_aws/data/himawari8/20200405/0000/* \
--reader_name ahi_hsd \
--product_name WV \
--filename_formatter geotiff_fname \
--output_formatter geotiff_standard \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bsh252020.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ahi.tc.<product>.geotiff" \
--logging_level debug \
--resampled_read
retval=$?
exit $retval
ASCAT UHR Tropical Cyclone NRCS Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# https://www.nrlmry.navy.mil/tcdat/tc2021/WP/WP022021/txt/SCT_winds_knmi_metop-c_WP02_202104210141
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_scat/data/20220911_metopb_byu_uhr_tc2022wp14muifa/MUIFA_20220911_51797_B_A-product.nc \
--reader_name ascat_uhr_netcdf \
--product_name nrcs \
--filename_formatter tc_fname \
--output_formatter imagery_clean \
--tc_spec_template tc_web \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp142022.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ascat_uhr.tc.nrcs.imagery_clean" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
SAR Tropical Cyclone NRCS Imagery Annotated#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_sar/data/STAR_SAR_20181025203206_WP312018_31W_FIX_3km.nc \
--reader_name sar_winds_netcdf \
--product_name nrcs \
--filename_formatter tc_fname \
--output_formatter imagery_annotated \
--feature_annotator default \
--gridline_annotator default \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp312018.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/sar.tc.nrcs.imagery_annotated" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
AMI WV-Upper Unprojected Image#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
run_procflow $GEOIPS_TESTDATA_DIR/test_data_noaa_aws/data/geokompsat/20231208/0300/*.nc \
--procflow single_source \
--reader_name ami_netcdf \
--reader_kwargs '{"self_register": "LOW"}' \
--product_name WV-Upper \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ami.WV-Upper.unprojected_image" \
--output_formatter unprojected_image \
--output_formatter_kwargs '{"x_size": "1000", "y_size": "1000"}' \
--filename_formatter geoips_fname \
--logging_level info \
--self_register_dataset 'Full-Disk' \
--self_register_source ami
retval=$?
exit $retval
ASCAT UHR Tropical Cyclone Wind-Ambiguities Imagery Windbarbs#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# https://www.nrlmry.navy.mil/tcdat/tc2021/WP/WP022021/txt/SCT_winds_knmi_metop-c_WP02_202104210141
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_scat/data/20210421_metopc_byu_uhr_tc2021wp02surigae/210421_0142_12730_SURIGAE_210421_0000.WRave3.nc \
--reader_name ascat_uhr_netcdf \
--product_name wind-ambiguities \
--filename_formatter tc_fname \
--output_formatter imagery_windbarbs \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--tc_spec_template tc_web_ascatuhr_barbs \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp022021.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ascat_uhr.tc.wind-ambiguities.imagery_windbarbs" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
SEVIRI WV-Upper Unprojected Image#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-_________-EPI______-202312110800-__ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-_________-PRO______-202312110800-__ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-WV_062___-000001___-202312110800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-WV_062___-000002___-202312110800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-WV_062___-000003___-202312110800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-WV_062___-000004___-202312110800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-WV_062___-000005___-202312110800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-WV_062___-000006___-202312110800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-WV_062___-000007___-202312110800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20231211/0800/H-000-MSG2__-MSG2_IODC___-WV_062___-000008___-202312110800-C_ \
--reader_name seviri_hrit \
--product_name WV-Upper \
--output_formatter unprojected_image \
--output_formatter_kwargs '{"x_size": "1000", "y_size": "1000"}' \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/seviri.WV-Upper.unprojected_image" \
--filename_formatter geoips_fname \
--self_register_dataset 'FULL_DISK' \
--self_register_source seviri
retval=$?
exit $retval
AMI Static Infrared Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
run_procflow $GEOIPS_TESTDATA_DIR/test_data_noaa_aws/data/geokompsat/20231208/0300/*.nc \
--procflow single_source \
--reader_name ami_netcdf \
--product_name Infrared \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ami.static.<product>.imagery_clean" \
--output_formatter imagery_clean \
--filename_formatter geoips_fname \
--resampled_read \
--logging_level info \
--sector_list geokompsat_subsector
retval=$?
exit $retval
ASCAT UHR Tropical Cyclone Windbarbs Imagery Windbarbs#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# https://www.nrlmry.navy.mil/tcdat/tc2021/WP/WP022021/txt/SCT_winds_knmi_metop-c_WP02_202104210141
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_scat/data/20230722_metopb_byu_uhr_tc2023al05don/DON_20230722_56263_B_A-product.nc \
--reader_name ascat_uhr_netcdf \
--product_name windbarbs \
--filename_formatter tc_fname \
--output_formatter imagery_windbarbs \
--tc_spec_template tc_web \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bal052023.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ascat_uhr.tc.windbarbs.imagery_windbarbs" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
SMAP Tropical Cyclone Windspeed Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Note this includes test of --window_start_time and --window_end_time
geoips run single_source \
$GEOIPS_TESTDATA_DIR/test_data_smap/data/RSS_smap_wind_daily_2021_09_26_NRT_v01.0.nc \
--reader_name smap_remss_winds_netcdf \
--product_name windspeed \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/smap.tc.windspeed.imagery_clean" \
--output_formatter imagery_clean \
--filename_formatter tc_clean_fname \
--window_start_time "20210926T2000Z" \
--window_end_time "20210926T2200Z" \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp202021.dat
ss_retval=$?
exit $((ss_retval))
AMI Static Visible Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
run_procflow $GEOIPS_TESTDATA_DIR/test_data_noaa_aws/data/geokompsat/20231208/0300/*.nc \
--procflow single_source \
--reader_name ami_netcdf \
--product_name Visible \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ami.static.<product>.imagery_clean" \
--output_formatter imagery_clean \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list geokompsat_subsector
retval=$?
exit $retval
ASCAT UHR Tropical Cyclone Windspeed Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# https://www.nrlmry.navy.mil/tcdat/tc2021/WP/WP022021/txt/SCT_winds_knmi_metop-c_WP02_202104210141
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_scat/data/20230912_metopc_byu_uhr_tc2023al13lee/LEE_20230912_25146_C_A-cmod5h-scaled_v2.nc \
--reader_name ascat_uhr_netcdf \
--product_name windspeed \
--filename_formatter tc_fname \
--output_formatter imagery_clean \
--tc_spec_template tc_web \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bal132023.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ascat_uhr.tc.windspeed.imagery_clean" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
SMAP Unsectored Text Winds#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
# For reference, bdeck file with coverage is: $GEOIPS_PACKAGES_DIR/geoips/tests/sectored/bwp202021.dat
# Not used for unsectored output, but potentially for other products
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_smap/data/RSS_smap_wind_daily_2021_09_26_NRT_v01.0.nc \
--reader_name smap_remss_winds_netcdf \
--product_name unsectored \
--filename_formatter text_winds_full_fname \
--output_formatter text_winds \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/smap.unsectored.text_winds"
ss_retval=$?
exit $((ss_retval))
AMI Static MST Absdiff-IR-BD Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_multi_scan_times/data/geokompsat-ami/LA/*ir112*.nc \
--reader_name ami_netcdf \
--product_name absdiff-IR-BD \
--output_formatter imagery_clean \
--filename_formatter geoips_fname \
--logging_level info \
--minimum_coverage 0 \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ami.static.mst.<product>.imagery_clean" \
--sector_list geokompsat_subsector
retval=$?
exit $retval
ATMS Tropical Cyclone 165H NetCDF GeoIPS#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/GATMO_j01_d20210809_t0838266_e0838583_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/GATMO_j01_d20210809_t0838586_e0839303_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/GATMO_j01_d20210809_t0839306_e0840023_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/GATMO_j01_d20210809_t0840026_e0840343_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/GATMO_j01_d20210809_t0840346_e0841063_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/GATMO_j01_d20210809_t0841066_e0841383_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/GATMO_j01_d20210809_t0841386_e0842103_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/SATMS_j01_d20210809_t0838266_e0838583_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/SATMS_j01_d20210809_t0838586_e0839303_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/SATMS_j01_d20210809_t0839306_e0840023_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/SATMS_j01_d20210809_t0840026_e0840343_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/SATMS_j01_d20210809_t0840346_e0841063_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/SATMS_j01_d20210809_t0841066_e0841383_b19295_fnmoc_ops.h5 \
$GEOIPS_TESTDATA_DIR/test_data_atms/data/jpss-1_20210809_0838_tc2021ep11Kevin/SATMS_j01_d20210809_t0841386_e0842103_b19295_fnmoc_ops.h5 \
--reader_name atms_hdf5 \
--product_name 165H \
--filename_formatter geoips_netcdf_fname \
--output_formatter netcdf_geoips \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bep112021.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/atms.tc.<product>.netcdf_geoips" \
--tc_spec_template tc_4km_256x256 \
--product_spec_override '{}' \
--output_formatter_kwargs '{"clobber": "True"}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
SMOS Tropical Cyclone Sectored Text Winds#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_smos/data/SM_OPER_MIR_SCNFSW_20200216T120839_20200216T135041_110_001_7.nc \
--reader_name smos_winds_netcdf \
--product_name sectored \
--filename_formatter text_winds_tc_fname \
--output_formatter text_winds \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bsh162020.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/smos.tc.sectored.text_winds"
ss_retval=$?
exit $((ss_retval))
AMI Tropical Cyclone WV GeoTIFF#
#!/bin/bash
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
run_procflow $GEOIPS_TESTDATA_DIR/test_data_noaa_aws/data/geokompsat/20231208/0300/*.nc \
--procflow single_source \
--reader_name ami_netcdf \
--product_name WV \
--filename_formatter geotiff_fname \
--output_formatter geotiff_standard \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bsh032024.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ami.tc.<product>.geotiff" \
--resampled_read
retval=$?
exit $retval
CLI Dummy Script#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# This test is needed for Unit Testing the 'geoips test script' command.
# Since we don't actually need to run a full test script, we have created a dummy
# script that we only care if it's exectuted or not.
echo "I ran a dummy test script."
SSMI Tropical Cyclone 37pct Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source \
$GEOIPS_TESTDATA_DIR/test_data_ssmi/data/US058SORB-DEFspp.sdrmi_f15_d20200519_s080800_e095300_r05633_cfnoc.def \
$GEOIPS_TESTDATA_DIR/test_data_ssmi/data/US058SORB-DEFspp.tdrmi_f15_d20200519_s080800_e095300_r05633_cfnoc.def \
--reader_name ssmi_binary \
--product_name 37pct \
--filename_formatter tc_clean_fname \
--output_formatter imagery_clean \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bio012020.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ssmi.tc.37pct.imagery_clean" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
AMSR2 Config Based No Compare#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
geoips run config_based ${GEOIPS_TESTDATA_DIR}/test_data_amsr2/data/AMSR2-MBT_v2r2_GW1_s202005180620480_e202005180759470_c202005180937100.nc \
--output_config ${GEOIPS_PACKAGES_DIR}/geoips/tests/yaml_configs/amsr2_test_no_compare.yaml \
--reader_kwargs \
'{"test_arg": "Command line config-based amsr2 test arg"}' \
--fuse_files ${GEOIPS_TESTDATA_DIR}/test_data_amsr2/bg_data/ahi_20200518_0740/* \
--fuse_reader ahi_hsd \
--fuse_reader_kwargs \
'{"test_arg": "Command line config-based ahi test arg"}' \
--fuse_product Infrared-Gray \
--fuse_resampled_read True
config_retval=$?
# Produce an overall return value, sum of all 3
exit $((config_retval))
Console Script Create Sector Image#
#!/bin/sh
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
geoips test sector conus
retval_conus=$?
geoips test sector global; geoips test sector goes_east
retval_all=$?
echo "CONUS retval: $retval_conus"
echo "All retval: $retval_all"
exit $((retval_conus+retval_all))
SSMIS Color91 Unprojected Image#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_ssmis/data/US058SORB-RAWspp.sdris_f16_d20200519_s084400_e102900_r85579_cfnoc.raw \
--reader_name ssmis_binary \
--product_name color91 \
--output_formatter unprojected_image \
--filename_formatter geoips_fname \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ssmis.color91.unprojected_image" \
--self_register_dataset 'IMAGER' \
--self_register_source ssmis
retval=$?
exit $retval
AMSR2 Config Based No Compare Full#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
geoips run config_based ${GEOIPS_TESTDATA_DIR}/test_data_amsr2/data/AMSR2-MBT_v2r2_GW1_s202005180620480_e202005180759470_c202005180937100.nc \
--output_config ${GEOIPS_PACKAGES_DIR}/geoips/tests/yaml_configs/amsr2_no_compare_full.yaml \
--trackfile_parser bdeck_parser \
--trackfiles ${GEOIPS_PACKAGES_DIR}/geoips/tests/sectors/tc_bdecks/bio012020.dat \
--reader_kwargs \
'{"test_arg": "Command line config-based amsr2 test arg"}' \
--fuse_files ${GEOIPS_TESTDATA_DIR}/test_data_amsr2/bg_data/ahi_20200518_0740/* \
--fuse_reader ahi_hsd \
--fuse_reader_kwargs \
'{"test_arg": "Command line config-based ahi test arg"}' \
--fuse_product Infrared-Gray \
--fuse_resampled_read True
config_retval=$?
# Produce an overall return value, sum of all 3
exit $((config_retval))
Console Script List Available Plugins#
#!/bin/sh
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
list_available_plugins readers -l info
retval_readers=$?
list_available_plugins
retval_all=$?
echo "Readers retval: $retval_readers"
echo "All retval: $retval_all"
exit $((retval_readers+retval_all))
VIIRSClearnight Night-Vis-IR-GeoIPS1 Imagery Annotated#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
run_procflow $GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20240117/172400/VNP02DNB.A2024017.1724.002.2024018012054.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20240117/172400/VNP02IMG.A2024017.1724.002.2024018012054.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20240117/172400/VNP02MOD.A2024017.1724.002.2024018012054.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20240117/172400/VNP03DNB.A2024017.1724.002.2024018003923.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20240117/172400/VNP03IMG.A2024017.1724.002.2024018003923.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20240117/172400/VNP03MOD.A2024017.1724.002.2024018003923.nc \
--procflow single_source \
--reader_name viirs_netcdf \
--product_name Night-Vis-IR-GeoIPS1 \
--output_formatter imagery_annotated \
--filename_formatter geoips_fname \
--sector_list north_pole \
--gridline_annotator north_pole \
--minimum_coverage 0 \
--logging_level info
ss_retval=$?
exit $((ss_retval))
# --self_register_dataset 'DNB' \
# --self_register_source viirs \
AMSR2 Config Based Overlay Output#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
geoips run config_based ${GEOIPS_TESTDATA_DIR}/test_data_amsr2/data/AMSR2-MBT_v2r2_GW1_s202005180620480_e202005180759470_c202005180937100.nc \
--output_config ${GEOIPS_PACKAGES_DIR}/geoips/tests/yaml_configs/amsr2_test.yaml \
--fuse_files ${GEOIPS_TESTDATA_DIR}/test_data_amsr2/bg_data/ahi_20200518_0740/* \
--fuse_reader ahi_hsd \
--fuse_product Visible \
--fuse_resampled_read True
config_retval=$?
# Produce an overall return value, sum of all 3
exit $((config_retval))
CYGNSS Tropical Cyclone Windspeed Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
geoips run single_source \
$GEOIPS_TESTDATA_DIR/test_data_cygnss/data/cyg.ddmi.s20240125-000001-e20240125-235959.l2.wind_trackgridsize25km_NOAAv1.2_L1a21.d21.nc \
--reader_name cygnss_netcdf \
--product_name windspeed \
--output_formatter imagery_clean \
--filename_formatter tc_clean_fname \
--window_start_time "20240125T0600Z" \
--window_end_time "20240125T0615Z" \
--minimum_coverage 0 \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bsh062024.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/cygnss.tc.windspeed.imagery_clean" \
ss_retval=$?
exit $((ss_retval))
VIIRSClearnight Night-Vis-IR-GeoIPS1 Unprojected Image#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131200/VNP02DNB.A2022042.1312.001.2022042183606.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131200/VNP02IMG.A2022042.1312.001.2022042183606.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131200/VNP02MOD.A2022042.1312.001.2022042183606.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131200/VNP03DNB.A2022042.1312.001.2022042182240.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131200/VNP03IMG.A2022042.1312.001.2022042182240.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131200/VNP03MOD.A2022042.1312.001.2022042182240.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131800/VNP02DNB.A2022042.1318.001.2022042183444.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131800/VNP02IMG.A2022042.1318.001.2022042183444.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131800/VNP02MOD.A2022042.1318.001.2022042183444.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131800/VNP03DNB.A2022042.1318.001.2022042182210.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131800/VNP03IMG.A2022042.1318.001.2022042182210.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20220211/131800/VNP03MOD.A2022042.1318.001.2022042182210.nc \
--reader_name viirs_netcdf \
--product_name Night-Vis-IR-GeoIPS1 \
--output_formatter unprojected_image \
--output_formatter_kwargs '{"x_size": "500"}' \
--filename_formatter geoips_fname \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/viirsclearnight.<product>.unprojected_image" \
--self_register_dataset 'DNB' \
--self_register_source viirs
ss_retval=$?
exit $((ss_retval))
AMSR2 Config Based Overlay Output Low Memory#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
geoips run config_based ${GEOIPS_TESTDATA_DIR}/test_data_amsr2/data/AMSR2-MBT_v2r2_GW1_s202005180620480_e202005180759470_c202005180937100.nc \
--output_config ${GEOIPS_PACKAGES_DIR}/geoips/tests/yaml_configs/amsr2_test_low_memory.yaml \
--fuse_files ${GEOIPS_TESTDATA_DIR}/test_data_amsr2/bg_data/ahi_20200518_0740/* \
--fuse_reader ahi_hsd \
--fuse_product Infrared-Gray \
--fuse_resampled_read True
config_retval=$?
# Produce an overall return value, sum of all 3
exit $((config_retval))
Documentation Imagery#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
#######################################################################################################################
### Exact calls for producing all imagery contained in "available_functionality.rst" documentation
### This script:
### * runs the commands,
### * copies the resulting imagery into the available_functionality image directory
### * Checks that the return from both the geoips run single_source and cp commands were 0
### * exit entire script with return code 1 upon any non-zero return code
#######################################################################################################################
retval=0
avfunc=$GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality
globdir=$GEOIPS_OUTDIRS/preprocessed/annotated_imagery/Global-x-x/x-x-x
check_returns() {
echo "AFTER COPY $2"
echo "retval: $1"
if [[ "$1" != "0" ]]; then
echo "FAILED non-zero return value, quitting."
exit 1
fi
}
####################################################################
# 1.4.2 unprojected_imagery
####################################################################
$GEOIPS_PACKAGES_DIR/geoips/tests/scripts/seviri.WV-Upper.unprojected_image.sh
curr_retval=$?
echo ""
output_image=$GEOIPS_OUTDIRS/preprocessed/annotated_imagery/x-x-x/x-x-x/WV-Upper/seviri/20200404.080000.msg-1.seviri.WV-Upper.self_register.69p07.nesdisstar.10p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $avfunc/*seviri*
check_returns $retval $output_image
####################################################################
# 1.4.2 unprojected_imagery
####################################################################
$GEOIPS_PACKAGES_DIR/geoips/tests/scripts/modis.Infrared.unprojected_image.sh
curr_retval=$?
echo ""
output_image=$GEOIPS_OUTDIRS/preprocessed/annotated_imagery/x-x-x/x-x-x/Infrared/modis/20210104.201500.aqua.modis.Infrared.self_register.100p00.nasa.3p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality/*modis*
check_returns $retval $output_image
####################################################################
# 1.3.3 sectored text winds
####################################################################
$GEOIPS_PACKAGES_DIR/geoips/tests/scripts/smos.sectored.text_winds.sh
curr_retval=$?
retval=$((curr_retval+retval))
echo $retval
check_returns $retval $output_image
####################################################################
# 1.3.3 unsectored text winds
####################################################################
$GEOIPS_PACKAGES_DIR/geoips/tests/scripts/smap.unsectored.text_winds.sh
curr_retval=$?
retval=$((curr_retval+retval))
echo $retval
check_returns $retval $output_image
####################################################################
# 1.3.1 HY-2 Reader, hy2b
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_hy2/data/hscat_20211202_080644_hy_2b__15571_o_250_2204_ovw_l2.nc \
--reader_name scat_knmi_winds_netcdf \
--product_name windspeed \
--minimum_coverage 0 \
--output_formatter imagery_annotated \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/windspeed/hscat/20211202.080644.hy-2b.hscat.windspeed.global.6p83.knmi.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality/*hy*
check_returns $retval $output_image
####################################################################
# NOTE Currently no sample test case for Level 2 ABI reader
####################################################################
####################################################################
# ABI Reader - GOES-17
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_abi_day/data/goes17_20210718_0150/OR_ABI-L1b-RadF-M6C14_G17_s20211990150319_e20211990159386_c20211990159442.nc \
--reader_name abi_netcdf \
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/abi/20210718.015031.goes-17.abi.Infrared-Gray.global.22p79.noaa.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality/*goes-17*
check_returns $retval $output_image
####################################################################
# ABI Reader - GOES-16
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_noaa_aws/data/goes16/20200918/1950/OR_ABI-L1b-RadF-M6C14_G16_s20202621950205_e20202621959513_c20202622000009.nc \
--reader_name abi_netcdf \
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/abi/20200918.195020.goes-16.abi.Infrared-Gray.global.22p84.noaa.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality/*goes-16*
check_returns $retval $output_image
####################################################################
# AHI Reader
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S0110.DAT \
$GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S0210.DAT \
$GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S0310.DAT \
$GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S0410.DAT \
$GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S0510.DAT \
$GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S0610.DAT \
$GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S0710.DAT \
$GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S0810.DAT \
$GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S0910.DAT \
$GEOIPS_TESTDATA_DIR/test_data_ahi_day/data/20200405_0000/HS_H08_20200405_0000_B13_FLDK_R20_S1010.DAT \
--reader_name ahi_hsd \
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/ahi/20200405.000000.himawari-8.ahi.Infrared-Gray.global.29p98.jma.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality/*ahi*
check_returns $retval $output_image
####################################################################
# EWS-G Reader
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_ewsg/data/2020.1211.2312.goes-13.gvar.nc \
--reader_name ewsg_netcdf \
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/gvar/20201211.230905.ews-g.gvar.Infrared-Gray.global.33p25.noaa.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality/*ews*
check_returns $retval $output_image
####################################################################
# SEVIRI HRIT Reader - MSG-1
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-_________-EPI______-202004040800-__ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-_________-PRO______-202004040800-__ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-IR_108___-000001___-202004040800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-IR_108___-000002___-202004040800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-IR_108___-000003___-202004040800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-IR_108___-000004___-202004040800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-IR_108___-000005___-202004040800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-IR_108___-000006___-202004040800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-IR_108___-000007___-202004040800-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20200404.0800_meteoIO_tc2020sh24irondro/H-000-MSG1__-MSG1_IODC___-IR_108___-000008___-202004040800-C_ \
--reader_name seviri_hrit\
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/seviri/20200404.080000.msg-1.seviri.Infrared-Gray.global.22p84.nesdisstar.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $avfunc/*msg-1*
check_returns $retval $output_image
####################################################################
# SEVIRI HRIT Reader - MSG-4
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-_________-EPI______-202202092200-__ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-IR_108___-000001___-202202092200-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-IR_108___-000002___-202202092200-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-IR_108___-000003___-202202092200-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-IR_108___-000004___-202202092200-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-IR_108___-000005___-202202092200-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-IR_108___-000006___-202202092200-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-IR_108___-000007___-202202092200-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-IR_108___-000008___-202202092200-C_ \
$GEOIPS_TESTDATA_DIR/test_data_seviri/data/20220209.2200_meteoEU/H-000-MSG4__-MSG4________-_________-PRO______-202202092200-__ \
--reader_name seviri_hrit\
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/seviri/20220209.220000.msg-4.seviri.Infrared-Gray.global.22p84.nesdisstar.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $avfunc/*msg-4*
check_returns $retval $output_image
#######################################################################
# NOTE Currently no sample test case for WFABBA ASCII ABI Fire Product
#######################################################################
####################################################################
# MODIS Reader - Aqua
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/200500/MYD021KM.A2021004.2005.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/200500/MYD03.A2021004.2005.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/201000/MYD021KM.A2021004.2010.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/201000/MYD03.A2021004.2010.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/201500/MYD021KM.A2021004.2015.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/aqua/20210104/201500/MYD03.A2021004.2015.061.NRT.hdf \
--reader_name modis_hdf4 \
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/modis/20210104.201500.aqua.modis.Infrared-Gray.global.2p08.nasa.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $avfunc/*aqua*
check_returns $retval $output_image
####################################################################
# MODIS Reader - Terra
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_modis/data/terra/170500/MOD021KM.A2021004.1705.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/terra/170500/MOD03.A2021004.1705.061.NRT.hdf \
$GEOIPS_TESTDATA_DIR/test_data_modis/data/terra/170500/MOD14.A2021004.1705.006.NRT.hdf \
--reader_name modis_hdf4 \
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/modis/20210104.170500.terra.modis.Infrared-Gray.global.0p63.nasa.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $avfunc/*terra*
check_returns $retval $output_image
####################################################################
# VIIRS Reader - JPSS
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ102IMG.A2021040.0736.002.2021040145245.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ103IMG.A2021040.0736.002.2021040142228.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ102IMG.A2021040.0742.002.2021040143010.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ103IMG.A2021040.0742.002.2021040140938.nc \
--reader_name viirs_netcdf \
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/viirs/20210209.074210.jpss-1.viirs.Infrared-Gray.global.2p00.NASA.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality/*jpss*
check_returns $retval $output_image
####################################################################
# VIIRS Reader - NPP
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20210205/080600/VNP02DNB.A2021036.0806.001.2021036140558.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20210205/080600/VNP02IMG.A2021036.0806.001.2021036140558.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20210205/080600/VNP02MOD.A2021036.0806.001.2021036140558.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20210205/080600/VNP03DNB.A2021036.0806.001.2021036135524.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20210205/080600/VNP03IMG.A2021036.0806.001.2021036135524.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/npp/20210205/080600/VNP03MOD.A2021036.0806.001.2021036135524.nc \
--reader_name viirs_netcdf \
--product_name Infrared-Gray \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--resampled_read \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/Infrared-Gray/viirs/20210205.080611.npp.viirs.Infrared-Gray.global.0p97.NASA.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality/*npp*
check_returns $retval $output_image
#######################################################################
# NOTE Currently no sample test case for AMSR2 Reader
#######################################################################
#######################################################################
# NOTE Currently no sample test case for AMSR2 REMSS Winds Reader
#######################################################################
#######################################################################
# NOTE Currently no sample test case for AMSU-A/AMSU-B/MHS HDF Reader
#######################################################################
#######################################################################
# NOTE Currently no sample test case for AMSU-A/AMSU-B/MHS MIRS Reader
#######################################################################
####################################################################
# GMI Reader
####################################################################
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_gpm/data/1B.GPM.GMI.TB2016.20200917-S171519-E172017.V05A.RT-H5 \
$GEOIPS_TESTDATA_DIR/test_data_gpm/data/1B.GPM.GMI.TB2016.20200917-S172019-E172517.V05A.RT-H5 \
$GEOIPS_TESTDATA_DIR/test_data_gpm/data/1B.GPM.GMI.TB2016.20200917-S172519-E173017.V05A.RT-H5 \
--reader_name gmi_hdf5 \
--product_name 89H \
--output_formatter imagery_annotated \
--minimum_coverage 0 \
--filename_formatter geoips_fname \
--sector_list global_cylindrical
curr_retval=$?
echo ""
output_image=$globdir/89H/gmi/20200917.171519.GPM.gmi.89H.global.0p84.NASA.20p0.png
cp -v $output_image $avfunc
cp_retval=$?
retval=$((curr_retval+cp_retval+retval))
ls -lh $GEOIPS_PACKAGES_DIR/geoips/docs/images/available_functionality/*gmi*
check_returns $retval $output_image
exit $retval
VIIRSday Global Night-Vis-IR CogeoTIFF RGBA#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
run_procflow $GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ102DNB.A2021040.0736.002.2021040145245.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ102MOD.A2021040.0736.002.2021040145245.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ103DNB.A2021040.0736.002.2021040142228.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ103MOD.A2021040.0736.002.2021040142228.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ102DNB.A2021040.0742.002.2021040143010.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ102MOD.A2021040.0742.002.2021040143010.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ103DNB.A2021040.0742.002.2021040140938.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ103MOD.A2021040.0742.002.2021040140938.nc \
--procflow single_source \
--reader_name viirs_netcdf \
--product_name Night-Vis-IR \
--filename_formatter geotiff_fname \
--output_formatter cogeotiff_rgba \
--minimum_coverage 0 \
--sector_list global_cylindrical \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/viirsday.global.<product>.cogeotiff_rgba"
ss_retval=$?
exit $((ss_retval))
AMSR2 Global 89H-Physical CogeoTIFF#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
run_procflow $GEOIPS_TESTDATA_DIR/test_data_amsr2/data/AMSR2-MBT_v2r2_GW1_s202005180620480_e202005180759470_c202005180937100.nc \
--procflow single_source \
--reader_name amsr2_netcdf \
--product_name 89H-Physical \
--filename_formatter geotiff_fname \
--output_formatter cogeotiff \
--sector_list global_20km_longlat \
--minimum_coverage 0 \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/amsr2.global_20km_longlat.<product>.cogeotiff"
ss_retval=$?
exit $((ss_retval))
EWSG Static Infrared Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_ewsg/data/2020.1211.2312.goes-13.gvar.nc \
--reader_name ewsg_netcdf \
--product_name Infrared \
--filename_formatter geoips_fname \
--output_formatter imagery_clean \
--sector_list ewsg \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/ewsg.static.<product>.imagery_clean"
retval=$?
exit $retval
VIIRSday Tropical Cyclone Night-Vis-IR Imagery Annotated#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ102DNB.A2021040.0736.002.2021040145245.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ102MOD.A2021040.0736.002.2021040145245.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ103DNB.A2021040.0736.002.2021040142228.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/073600/VJ103MOD.A2021040.0736.002.2021040142228.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ102DNB.A2021040.0742.002.2021040143010.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ102MOD.A2021040.0742.002.2021040143010.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ103DNB.A2021040.0742.002.2021040140938.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210209/074200/VJ103MOD.A2021040.0742.002.2021040140938.nc \
--reader_name viirs_netcdf \
--product_name Night-Vis-IR \
--filename_formatter tc_fname \
--output_formatter imagery_annotated \
--feature_annotator tc_visir \
--gridline_annotator tc_visir \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bsh192021.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/viirsday.tc.<product>.imagery_annotated" \
--product_spec_override '{}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
AMSR2 Tropical Cyclone 89H-Physical Histogram NetCDF#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
run_procflow $GEOIPS_TESTDATA_DIR/test_data_amsr2/data/AMSR2-MBT_v2r2_GW1_s202005180620480_e202005180759470_c202005180937100.nc \
--procflow single_source \
--reader_name amsr2_netcdf \
--reader_kwargs \
'{"test_arg": "AMSR2 single source command line reader test_arg"}' \
--product_name 89H-Physical \
--filename_formatter tc_fname \
--output_formatter histogram_json \
--feature_annotator tc_pmw \
--gridline_annotator tc_pmw \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bio012020.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/amsr2.tc.<product>.imagery_annotated" \
--product_spec_override '{"89H-Physical": {"coverage_checker": {"plugin": {"name": "center_radius", "arguments": {"radius_km": 300}}}}}' \
--output_formatter_kwargs '{"min_val": 100, "max_val": 350, "num_bins": 501}' \
--filename_formatter_kwargs '{"output_type": "histogram.nc"}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
GMI Tropical Cyclone 89pct Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_gpm/data/1B.GPM.GMI.TB2016.20200917-S171519-E172017.V05A.RT-H5 \
$GEOIPS_TESTDATA_DIR/test_data_gpm/data/1B.GPM.GMI.TB2016.20200917-S172019-E172517.V05A.RT-H5 \
$GEOIPS_TESTDATA_DIR/test_data_gpm/data/1B.GPM.GMI.TB2016.20200917-S172519-E173017.V05A.RT-H5 \
--reader_name gmi_hdf5 \
--product_name 89pct \
--filename_formatter tc_clean_fname \
--output_formatter imagery_clean \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--no_presectoring \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bal202020.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/gmi.tc.<product>.imagery_clean" \
--product_spec_override '{"89pct": {"coverage_checker": {"plugin": {"name": "center_radius", "arguments": {"radius_km": 300}}}}}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
VIIRSmoon Tropical Cyclone Night-Vis-GeoIPS1 Imagery Clean#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210525/191200/VJ102DNB.A2021145.1912.002.2021146004551.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210525/191200/VJ102IMG.A2021145.1912.002.2021146004551.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210525/191200/VJ102MOD.A2021145.1912.002.2021146004551.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210525/191200/VJ103DNB.A2021145.1912.002.2021146002749.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210525/191200/VJ103IMG.A2021145.1912.002.2021146002749.nc \
$GEOIPS_TESTDATA_DIR/test_data_viirs/data/jpss/20210525/191200/VJ103MOD.A2021145.1912.002.2021146002749.nc \
--reader_name viirs_netcdf \
--product_name Night-Vis-GeoIPS1 \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/viirsmoon.tc.<product>.imagery_clean" \
--output_formatter imagery_clean \
--filename_formatter tc_clean_fname \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bio022021.dat
ss_retval=$?
exit $((ss_retval))
AMSR2 Tropical Cyclone 89H-Physical Imagery Annotated#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_amsr2/data/AMSR2-MBT_v2r2_GW1_s202005180620480_e202005180759470_c202005180937100.nc \
--reader_name amsr2_netcdf \
--reader_kwargs \
'{"test_arg": "AMSR2 single source command line reader test_arg"}' \
--product_name 89H-Physical \
--filename_formatter tc_fname \
--output_formatter imagery_annotated \
--feature_annotator tc_pmw \
--gridline_annotator tc_pmw \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bio012020.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/amsr2.tc.<product>.imagery_annotated" \
--product_spec_override \
'{"89H-Physical":
{"coverage_checker":
{"plugin":
{"name": "center_radius", "arguments": {"radius_km": 300}}},
"interpolator":
{"plugin":
{"name": "interp_gauss", "arguments": {"nproc": 4}}}
}}' \
--output_formatter_kwargs '{}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))
HY2 Tropical Cyclone Windspeed Imagery Annotated#
# # # This source code is subject to the license referenced at
# # # https://github.com/NRLMMD-GEOIPS.
#!/bin/bash
# Default values - if you do not have this exact test case available, call with available data files / sectors.
# This exact test case required for valid comparisons - remove "compare_path" argument if running a different
# set of arguments.
geoips run single_source $GEOIPS_TESTDATA_DIR/test_data_hy2/data/hscat_20211202_080644_hy_2b__15571_o_250_2204_ovw_l2.nc \
--reader_name scat_knmi_winds_netcdf \
--product_name windspeed \
--filename_formatter tc_fname \
--output_formatter imagery_annotated \
--feature_annotator default \
--gridline_annotator default \
--metadata_filename_formatter metadata_default_fname \
--metadata_output_formatter metadata_default \
--trackfile_parser bdeck_parser \
--trackfiles $GEOIPS_PACKAGES_DIR/geoips/tests/sectors/tc_bdecks/bwp272021.dat \
--compare_path "$GEOIPS_PACKAGES_DIR/geoips/tests/outputs/hy2.tc.<product>.imagery_annotated" \
--product_spec_override '{}' \
--output_formatter_kwargs '{"title_formatter": "tc_copyright", "title_copyright": "Data copyright 2021 EUMETSAT, Imagery NRL-MRY"}' \
--filename_formatter_kwargs '{}' \
--metadata_output_formatter_kwargs '{}' \
--metadata_filename_formatter_kwargs '{}'
ss_retval=$?
exit $((ss_retval))