# This is a clavrx_options template file that when passed into run_clavrx.py will:
# * Remove all commented lines (preceded by '#'),
# * All environment variables expanded, and
# * [ancillary_data_directory] replaced with the value passed into run_clavrx.py
# You can edit this file as needed, adding/removing comments, using environment
# variables as needed, and updating other clavrx_options required for your processing.

# This line can remain unchanged to use the run_clavrx.py --ancillary_data_directory
# argument, or you may provide an explicit path to the clavrx ancillary data
# (with or without environment variables). The same ancillary data directory must
# contain both dynamic and static subdirectories, and the same ancillary data
# directory must be used both within this clavrx_options file, and when calling
# the update_ancildata_dynamic.py and get_ancildata_static.py scripts.
# The exact string '[run_clavrx_ancillary_data_directory_command_line_argument]'
# will be replaced with the run_clavrx ancillary data directory command line argument.
[run_clavrx_ancillary_data_directory_command_line_argument]
# This line should remain unchanged.  Will produce temporary files within the
# --runtime_directory, as passed into run_clavrx.py
./temp_files/
# These are the actual clavrx options.
9   !Expert mode (0 - nothing is read below, 1 - only !E1 and lower is read, 9 - everything is read )
9   !E1 Messaging Control Flag (VERBOSE = 9)
2   !E1 ALG Mask mode bayesian cloud mask (2 = ECM2)
0   !E1 ALG DCOMP
default  !E1 ALG ACHA
2   !E1 ALG CCL Mode (0 =off,1=top only,2 = top + base,3 = top + base + lower)
0   !E1 ALG CCL Type = (0=NOAT, 1=ISSCP, 2=NCEP)
0   !E1 ALG ASOS Mode (0=off, 1=on)
0   !E1 ALG NLCOMP (0=off, 1=on)
0   !E1 ALG Aerosol (0=off, 1=on)
1   !E2 OUTPUT Level-2  file output flag (0= no, 1 = yes)
0   !E2 OUTPUT format flag (0= hdf4, 1 = netcdf4)
1   !E2 PRC Cloud flag  
200 !E2 Num scan lines
0   !E2 SASRAB switch on/off SASRAB parameters 
1   !E2 NWP Nwp Model Option  (0=off, 1=gfs,2=ncep reanalysis,3=cfsr,4= gdas, 5=merra,6=era,7=gfs ait,8=gfs fv3, 9=era5 0.25 degree, 10=geos)
0   !E2 NWP Nwp Mode  (0=minimal, 1=all)
2 !E2 RTM rtm option  (0=crtm,1=pfast, (2=rttov))
0   !E2 NAV nav option  (0 =  Use  level-1b,1 = external (future) 2 = Reposnx ( fred nagle): For non-AVHRR, use 0) 
1   !E2 OUT output compression flag (0=no,1=gzip)
0   !E2 MASK read auxilary cloud mask 1b (0 = don't read)
default
1   !E3 SFC seebor emiss option (0=UMD, 1=RTTOV 2=SEEBOR) 
1   !E3 SFC sea emiss flag (0=no, 1=yes) 
0   !E3 SFC read hires sfc type flag (0=no-8km, 1 = yes-1km) 
1   !E3 SFC read land mask flag (0=no, 1=yes) (goge2_0ll.hdf)
1   !E3 SFC read coast mask flag (0=no, 1=yes) (coast_mask_xkm.hdf, x = 1 or 8)
1   !E3 SFC read surface elevation flag (0=no, 1=yes) (GLOBE_xkm_digelev.hdf, x = 1 or 8)
0   !E3 SFC read volcano mask flag (0=no, 1=yes) (volcano_mask_1km.hdf)
1   !E3 SFC read snow mask flag (0=no, 1 = ims, 2 = GlobSnow)
0   !E3 SFC read dark composite flag (0=no, 1 = yes) only GEO
0   !E4 AVHRR-ONLY specific ref_cal_1b flag (0 = use default level1b cal, 1 = recalibrate using PATMOS-x numbers (AVHRR-only))
0   !E4 AVHRR-ONLY therm_cal_1b flag (0 = use default level1b cal, 1= recalibrate using PATMOS-x numbers (AVHRR-only))
1   !E5 MASK lrc_flag (0=no,1=yes) 
1   !E5 NWP smooth nwp flag (0=no, 1=yes)   
0   !E5 process_undetected_flag (0=no,1=yes) ( means process all pixels cloudy and cloud-free
0 5.0 15.0 -100.0 -90.0 0.0 90.0 0.0 180.0 WI    !E6 on_flag Lat_South,Lat_North,Lon_West,Lon_East,Zen_Min,Zen_Max,Solzen_Min,Solzen_Max, Name
2 1 1 !E6 native res sample(0)/average(1),        average+stats(2), X_stride(>=1), Y_Stride (>=1))
1 1 1 1 1 1    !E6 chan on flags of channels 1,2,3,4,5,6
1 1 1 1 1 1    !E6 chan on flags of channels 7,8,9,10,11,12
1 1 1 1 1 1    !E6 chan on flags of channels 13,14,15,16,17,18
1 1 1 1 1 1    !E6 chan on flags of channels 19,20,21,22,23,24
1 1 1 1 1 1    !E6 chan on flags of channels 25,26,27,28,29,30
1 1 1 1 1 1    !E6 chan on flags of channels 31,32,33,34,35,36
1 1 1 1 1 1    !E6 chan on flags of channels
1 1 1 1 1 1    !E6 chan on flags of channels 43(I5),44(DNB),45-48(Spare)
225 !ISCCP-NG WMO 270=g16, 271=g17, 173=HIM8, 70 = MET11, 55 = MET8
