OCSSW satellite validation matchup tools: val_extract failed
Posted: Thu Nov 09, 2023 6:56 am America/New_York
Dear EarthData team,
I am currently using the SeaBASS satellite validation match-up tools (https://seabass.gsfc.nasa.gov/wiki/validation_matchup_tools) for a project involving the matching of in situ chlorophyll observations in the North Sea with satellite data from MODIS-Aqua, MERIS, VIIRS-SNNP, and VIRRS-JPSS1. While fd_matchup.py is running smoothly, I have encountered an issue with mk_matchup.py that I'm struggling to resolve.
The issue appears to be associated with val_extract. In my bash_profile script, I have configured the following, as outlined in the documentation at https://seabass.gsfc.nasa.gov/wiki/validation_matchup_tools:
export OCSSWROOT="/Users/Anna/SeaDAS/ocssw"
source $OCSSWROOT/OCSSW_bash.env
export PATH=$OCSSWROOT/bin/val_extract:$PATH
I can confirm val_extract is compiled and in the $PATH since
> which val_extract
outputs
/Users/Anna/SeaDAS/ocssw/bin/val_extract
I then run the mk_matchup.py function:
/Users/Anna/SeaDAS/ocssw/ocssw_src/src/matchup_tools/mk_matchup.py \
--sat_file="$full_path_nc_file" \
--seabass_file="$full_path_seabass_file" \
--box_size=3
where "$full_path_nc_file" is the physical location in my computer where the .nc file is (and which was downloaded after running fd_matchup.py): /Users/Anna/LocalDocuments/Academic/Projects/Agile/baseline_assessment/NASA_L2_data/data_matchups_oceancolor/SatData/AQUA_MODIS.20110520T132501.L2.OC.nc.
When I run it, I get the following message:
Looking for satellite/in situ match-ups for: /Users/Anna/LocalDocuments/Academic/Projects/Agile/baseline_assessment/NASA_L2_data/data_matchups_oceancolor/matchup_entries.sb
Checking: /Users/Anna/LocalDocuments/Academic/Projects/Agile/baseline_assessment/NASA_L2_data/data_matchups_oceancolor/SatData/AQUA_MODIS.20110520T132501.L2.OC.nc
usage: mk_matchup.py [-h] --sat_file SAT_FILE [SAT_FILE ...] --seabass_file SEABASS_FILE
[SEABASS_FILE ...] [--box_size BOX_SIZE] [--min_valid_sat_pix MIN_VALID_SAT_PIX]
[--max_time_diff MAX_TIME_DIFF] [--max_coeff_variation MAX_COEFF_VARIATION]
[--slat SLAT] [--elat ELAT] [--slon SLON] [--elon ELON] [--verbose]
[--no_header_comment]
mk_matchup.py: error: val_extract failed -- verify that the val_extract binary is compiled and on your PATH and that /Users/Anna/LocalDocuments/Academic/Projects/Agile/baseline_assessment/NASA_L2_data/data_matchups_oceancolor/SatData/AQUA_MODIS.20110520T132501.L2.OC.nc exists
If you could provide help with this I would be very grateful.
Regards,
Anna
I am currently using the SeaBASS satellite validation match-up tools (https://seabass.gsfc.nasa.gov/wiki/validation_matchup_tools) for a project involving the matching of in situ chlorophyll observations in the North Sea with satellite data from MODIS-Aqua, MERIS, VIIRS-SNNP, and VIRRS-JPSS1. While fd_matchup.py is running smoothly, I have encountered an issue with mk_matchup.py that I'm struggling to resolve.
The issue appears to be associated with val_extract. In my bash_profile script, I have configured the following, as outlined in the documentation at https://seabass.gsfc.nasa.gov/wiki/validation_matchup_tools:
export OCSSWROOT="/Users/Anna/SeaDAS/ocssw"
source $OCSSWROOT/OCSSW_bash.env
export PATH=$OCSSWROOT/bin/val_extract:$PATH
I can confirm val_extract is compiled and in the $PATH since
> which val_extract
outputs
/Users/Anna/SeaDAS/ocssw/bin/val_extract
I then run the mk_matchup.py function:
/Users/Anna/SeaDAS/ocssw/ocssw_src/src/matchup_tools/mk_matchup.py \
--sat_file="$full_path_nc_file" \
--seabass_file="$full_path_seabass_file" \
--box_size=3
where "$full_path_nc_file" is the physical location in my computer where the .nc file is (and which was downloaded after running fd_matchup.py): /Users/Anna/LocalDocuments/Academic/Projects/Agile/baseline_assessment/NASA_L2_data/data_matchups_oceancolor/SatData/AQUA_MODIS.20110520T132501.L2.OC.nc.
When I run it, I get the following message:
Looking for satellite/in situ match-ups for: /Users/Anna/LocalDocuments/Academic/Projects/Agile/baseline_assessment/NASA_L2_data/data_matchups_oceancolor/matchup_entries.sb
Checking: /Users/Anna/LocalDocuments/Academic/Projects/Agile/baseline_assessment/NASA_L2_data/data_matchups_oceancolor/SatData/AQUA_MODIS.20110520T132501.L2.OC.nc
usage: mk_matchup.py [-h] --sat_file SAT_FILE [SAT_FILE ...] --seabass_file SEABASS_FILE
[SEABASS_FILE ...] [--box_size BOX_SIZE] [--min_valid_sat_pix MIN_VALID_SAT_PIX]
[--max_time_diff MAX_TIME_DIFF] [--max_coeff_variation MAX_COEFF_VARIATION]
[--slat SLAT] [--elat ELAT] [--slon SLON] [--elon ELON] [--verbose]
[--no_header_comment]
mk_matchup.py: error: val_extract failed -- verify that the val_extract binary is compiled and on your PATH and that /Users/Anna/LocalDocuments/Academic/Projects/Agile/baseline_assessment/NASA_L2_data/data_matchups_oceancolor/SatData/AQUA_MODIS.20110520T132501.L2.OC.nc exists
If you could provide help with this I would be very grateful.
Regards,
Anna