Skip to content
Snippets Groups Projects
Commit 16a26c14 authored by Coda Phillips's avatar Coda Phillips
Browse files

Init

parents
No related branches found
No related tags found
No related merge requests found
FROM netcdf_hdf
ENV PATH=/usr/local/gcc-8.3.0/bin/:$PATH
ENV LD_LIBRARY_PATH=/usr/local/gcc-8.3.0/lib64/
WORKDIR /root/
COPY clavrx_scripts/trunk/install_clavrx_trunk.sh /root/install_clavrx_trunk_gfortran.sh
ENV FC=gfortran
RUN echo y | ./install_clavrx_trunk_gfortran.sh
WORKDIR clavrx_trunk/main_src/
COPY relink.sh relink.sh
RUN rm -f ../clavrx_bin/clavrxorb && bash relink.sh
Instructions:
1. Build `centos_gcc`
2. build `netcdf_hdf`
3. extract clavrxorb binary `extract_clavrxorb.sh`
#!/bin/bash
docker build -t clavrx_optimize .
#!/bin/bash
set -ex
svn co https://svn.ssec.wisc.edu/repos/clavrx_scripts
#!/bin/bash
CID=$(docker create clavrx_optimize /bin/bash)
docker start $CID
#docker run -it --rm -v $PWD:/host clavrx_optimize cp /root/clavrx_trunk/clavrx_bin/clavrxorb /host/
docker cp ${CID}:/root/clavrx_trunk/clavrx_bin/clavrxorb clavrxorb
docker stop $CID
docker rm $CID
#!/bin/bash
OBJS="process_clavrx.o pixel_common_mod.o avhrr_mod.o pixel_routines_mod.o snow_routines_mod.o clavrx_olr_mod.o clavrx_sst_mod.o numerical_routines_mod.o cx_date_time_tools_mod.o cx_science_tools_mod.o planck_mod.o surface_properties_mod.o hdf.o cx_netcdf4_mod.o oisst_analysis.o constants_mod.o calibration_constants_mod.o algorithm_constants_mod.o acha_module.o acha_microphysical_module.o acha_clavrx_services_module.o acha_clavrx_bridge_module.o acha_comp_module.o acha_ice_fraction_module.o acha_shadow_module.o cloud_base_module.o cloud_base_clavrx_bridge_module.o cloud_base_clavrx_services_module.o cloud_height_routines.o ccl_module.o ccl_clavrx_services_module.o ccl_clavrx_bridge_module.o asos_module.o asos_clavrx_bridge_module.o asos_clavrx_services_module.o file_tools.o clavrx_message_mod.o land_sfc_properties_mod.o avhrr_pixel_aerosol.o cx_hdf4_mod.o level2_mod.o level2_structures_mod.o sort_module.o gfs_hdf_mod.o nwp_common_mod.o ncep_reanalysis.o sfc_emiss.o rt_utilities_mod.o rtm_common_mod.o Compare_Float_Numbers.o flip_rtc.o re4flip.o big_endian.o get_lun.o seviri_mod.o mvcm_read_mod.o caliop_collocation_mod.o sapf_read_mod.o oca_mod.o reposnx.o avhrr_reposition_mod.o dcomp_derived_products_mod.o nb_cloud_mask_clavrx_bridge_module.o nb_cloud_mask_clavrx_services_module.o nb_cloud_mask_module.o nb_cloud_mask_lut_module.o nb_cloud_mask_solar_rtm_module.o nb_cloud_mask_addons_module.o nb_cloud_mask_netcdf_read_module.o baseline_cloud_mask.o baseline_cloud_height.o move_bytes.o mreadf.o modis_mod.o iff_clavrx_bridge.o iff_module.o goes_mod.o abi_mod.o mtsat_mod.o fy2_mod.o fy4_mod.o coms_mod.o dnb_retrievals_mod.o dncomp_clavrx_bridge_mod.o dcomp_rtm_module.o globsnow_read_routines.o laszlo_insolation_mod.o conver.o sasrab.o getmod.o sensor_mod.o simple_cod_065um_mod.o simple_cod_lunar_mod.o simple_cod_138um_mod.o simple_cod_160um_mod.o level2b_mod.o user_options.o ir_cloud_type_baum_module.o cloud_type_bridge_module.o universal_cloud_type.o cloud_type_algo_module.o viewing_geometry_mod.o ahi_clavrx_bridge.o cx_read_ahi_mod.o geos_transform_pix.o cx_pfaast_mod.o cx_pfaast_tools_mod.o cx_pfaast_coef_mod.o cx_pfaast_constants_mod.o cx_sea_ir_emiss_mod.o cx_dust_mod.o cx_string_tools_mod.o cx_muri_clavrx_bridge_mod.o foul.o ahi_mod.o hirs_fusion_mod.o clavrx_static_nav_module.o kdtree2.o cx_nucaps_mod.o class_time_date.o cx_real_boolean_mod.o readh5dataset.o viirs_clavrx_bridge.o viirs_read_mod.o viirs_nasa_read_module.o"
OBJS="process_clavrx.o pixel_common_mod.o avhrr_mod.o pixel_routines_mod.o snow_routines_mod.o clavrx_olr_mod.o clavrx_sst_mod.o numerical_routines_mod.o cx_date_time_tools_mod.o cx_science_tools_mod.o cx_spatial_metrics_mod.o planck_mod.o surface_properties_mod.o hdf.o cx_netcdf4_mod.o oisst_analysis.o constants_mod.o calibration_constants_mod.o algorithm_constants_mod.o acha_module.o acha_microphysical_module.o acha_clavrx_services_module.o acha_clavrx_bridge_module.o acha_comp_module.o acha_ice_fraction_module.o acha_shadow_module.o cloud_base_module.o cloud_base_clavrx_bridge_module.o cloud_base_clavrx_services_module.o cloud_height_routines.o ccl_module.o ccl_clavrx_services_module.o ccl_clavrx_bridge_module.o asos_module.o asos_clavrx_bridge_module.o asos_clavrx_services_module.o file_tools.o clavrx_message_mod.o land_sfc_properties_mod.o avhrr_pixel_aerosol.o cx_hdf4_mod.o level2_mod.o level2_structures_mod.o sort_module.o gfs_hdf_mod.o nwp_common_mod.o ncep_reanalysis.o sfc_emiss.o rt_utilities_mod.o rtm_common_mod.o Compare_Float_Numbers.o flip_rtc.o re4flip.o big_endian.o get_lun.o seviri_mod.o mvcm_read_mod.o caliop_collocation_mod.o sapf_read_mod.o oca_mod.o reposnx.o avhrr_reposition_mod.o dcomp_derived_products_mod.o nb_cloud_mask_clavrx_bridge_module.o nb_cloud_mask_clavrx_services_module.o nb_cloud_mask_module.o nb_cloud_mask_lut_module.o nb_cloud_mask_solar_rtm_module.o nb_cloud_mask_addons_module.o nb_cloud_mask_netcdf_read_module.o baseline_cloud_mask.o baseline_cloud_height.o move_bytes.o mreadf.o modis_mod.o iff_clavrx_bridge.o iff_module.o goes_mod.o abi_mod.o mtsat_mod.o fy2_mod.o fy4_mod.o coms_mod.o dnb_retrievals_mod.o dncomp_clavrx_bridge_mod.o dcomp_rtm_module.o globsnow_read_routines.o laszlo_insolation_mod.o conver.o sasrab.o getmod.o sensor_mod.o simple_cod_065um_mod.o simple_cod_lunar_mod.o simple_cod_138um_mod.o simple_cod_160um_mod.o level2b_mod.o user_options.o ir_cloud_type_baum_module.o cloud_type_bridge_module.o universal_cloud_type.o cloud_type_algo_module.o viewing_geometry_mod.o ahi_clavrx_bridge.o cx_read_ahi_mod.o geos_transform_pix.o cx_pfaast_mod.o cx_pfaast_tools_mod.o cx_pfaast_coef_mod.o cx_pfaast_constants_mod.o cx_sea_ir_emiss_mod.o cx_dust_mod.o cx_string_tools_mod.o cx_muri_clavrx_bridge_mod.o foul.o ahi_mod.o hirs_fusion_mod.o clavrx_static_nav_module.o kdtree2.o cx_nucaps_mod.o class_time_date.o cx_real_boolean_mod.o cx_abi_lhp_mod.o readh5dataset.o viirs_clavrx_bridge.o viirs_read_mod.o viirs_nasa_read_module.o"
LDFLAGS="-L/root/lib/netcdf4_gcc//lib/ -I/root/lib/netcdf4_gcc//include/ -I/root/lib/hdf5_gcc//include/ -L/root/lib/hdf5_gcc//lib/ -L/root/lib/hdf4_gcc//lib/ -I/root/lib/hdf4_gcc//include/ -L../cx_dncomp/Release_gfortran/ -I../cx_dncomp/Release_gfortran/ -L../cx_sds_io/Release_gfortran/ -I../cx_sds_io/Release_gfortran/ -L../muri/Release_gfortran/ -I../muri/Release_gfortran/ -L/usr/lib64/"
gfortran -v -O2 -o ../clavrx_bin/clavrxorb $OBJS $LDFLAGS -Wl,-Bstatic -lcx_dncomp -lcx_sds_io -lcx_muri -lnetcdff -lnetcdf -lhdf5_fortran -lhdf5 -lhdf5_hl -lmfhdf -ldf -ljpeg -lgfortran -lquadmath -lm -lgcc -lrt -Wl,-Bdynamic -lgcc_s -lc -ldl -lz -nodefaultlibs
run.sh 0 → 100755
#!/bin/bash
docker run -it --rm -v $PWD:/host clavrx_optimize /bin/bash -l
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment