Hi all,
I am coupling a new version of the COSP satellite simulator package into CAM/CESM2. Within the new COSP code, I read in namelists for different instruments to simulate. The paths to these namelists are passed through the standard "cospsimulator_nl" namelist using modifications to the user_cam_nl file. The code used to read in the namelists works fine in the offline COSP driver, but I am getting errors when that code is now called within CESM.
Specifically, when I attempt to read in a namelist file (/glade/scratch/jonahshaw/20230718_test_atmonlyfast/run/instrument_nls/cosp2_rttov_inst1.txt), I get the following error:
'file name specification error, unit 10, file "Unknown" '
The code used to read in the namelist is below. I have also attached a copy of the namelist file. The "namelist_filepath" variable is set to "/glade/scratch/jonahshaw/20230718_test_atmonlyfast/run/instrument_nls/cosp2_rttov_inst1.txt". If this path does not exist I get an appropriate error ("file not found, unit 10, file"), so I know the code is looking at the correct file.
Any suggestions and advice are appreciated. Thank you!
-- Jonah
The run fails at the read step: read(10,nml=trim(RTTOV_INPUT))
! Read RTTOV namelist fields
namelist/RTTOV_INPUT/Lrttov_bt,Lrttov_rad,Lrttov_refl,Lrttov_cld, & ! Logicals for RTTOV configuration
Lrttov_aer,Lrttov_cldparam,Lrttov_aerparam, & !
Lrttov_pc,nchannels_rec,Lchannel_filepath, &
channel_filepath,rttov_srcDir,rttov_coefDir, &
OD_coef_filepath,aer_coef_filepath,cld_coef_filepath, &
PC_coef_filepath, &
CO2_data,CH4_data,CO_data,N2O_data,SO2_data,ozone_data, & ! User-supplied trace gas concentrations
clw_data, & ! MW option
CO2_mr,CH4_mr,CO_mr,N2O_mr,SO2_mr, & ! Mixing ratios
ipcbnd,ipcreg,npcscores, & ! PC-RTTOV config values
rttov_nthreads,rttov_ZenAng
! Read in namelists
open(10,file=namelist_filepath,status='unknown')
read(10,nml=RTTOV_INPUT)
close(10)
I am coupling a new version of the COSP satellite simulator package into CAM/CESM2. Within the new COSP code, I read in namelists for different instruments to simulate. The paths to these namelists are passed through the standard "cospsimulator_nl" namelist using modifications to the user_cam_nl file. The code used to read in the namelists works fine in the offline COSP driver, but I am getting errors when that code is now called within CESM.
Specifically, when I attempt to read in a namelist file (/glade/scratch/jonahshaw/20230718_test_atmonlyfast/run/instrument_nls/cosp2_rttov_inst1.txt), I get the following error:
'file name specification error, unit 10, file "Unknown" '
The code used to read in the namelist is below. I have also attached a copy of the namelist file. The "namelist_filepath" variable is set to "/glade/scratch/jonahshaw/20230718_test_atmonlyfast/run/instrument_nls/cosp2_rttov_inst1.txt". If this path does not exist I get an appropriate error ("file not found, unit 10, file"), so I know the code is looking at the correct file.
Any suggestions and advice are appreciated. Thank you!
-- Jonah
The run fails at the read step: read(10,nml=trim(RTTOV_INPUT))
! Read RTTOV namelist fields
namelist/RTTOV_INPUT/Lrttov_bt,Lrttov_rad,Lrttov_refl,Lrttov_cld, & ! Logicals for RTTOV configuration
Lrttov_aer,Lrttov_cldparam,Lrttov_aerparam, & !
Lrttov_pc,nchannels_rec,Lchannel_filepath, &
channel_filepath,rttov_srcDir,rttov_coefDir, &
OD_coef_filepath,aer_coef_filepath,cld_coef_filepath, &
PC_coef_filepath, &
CO2_data,CH4_data,CO_data,N2O_data,SO2_data,ozone_data, & ! User-supplied trace gas concentrations
clw_data, & ! MW option
CO2_mr,CH4_mr,CO_mr,N2O_mr,SO2_mr, & ! Mixing ratios
ipcbnd,ipcreg,npcscores, & ! PC-RTTOV config values
rttov_nthreads,rttov_ZenAng
! Read in namelists
open(10,file=namelist_filepath,status='unknown')
read(10,nml=RTTOV_INPUT)
close(10)