print ("RUNNING case.gong.auto_updated.pl -----------------------------------------\n"); # MAKE SURE ; ARE ON ALL LINES, OR WON'T RUN AT ALL $OBS = "GONG"; $ENV{OBS} = $OBS; #----------------------------------------------------- # grid size $ENV{GRID} = 2.5; # outer radius #$ENV{OUTER_RAD} = 5.0; $ENV{OUTER_RAD} = 21.5; # string version of OUTER_RAD $ENV{SOUTER_RAD} = '21.5'; # source surface radius (in terms of solar radii) $ENV{SS_RAD} = 2.5; # number of spherical harmonics $ENV{NM_SPHAR} = 72; #------------------------------------------------------- # email address of person ftp'ing #$ENV{EMAIL} = "leslie.mayer\@noaa.gov"; # Make sure passive ftp $ENV{FTP_PASSIVE} = 1; #------------------------------------------------------- #which satellite we want to know the wind speed and imf at (where we propagate to) $ENV{SATELLITE} = "EARTH"; # are these daily updated or full rotation maps? (set to "DU" or "FR") $ENV{MAPTYPE} = "DU"; # PREFIX of earth postions for interpolated files $ENV{PREFIX} = "sbe"; # edge criteria for coronal holes $ENV{EDGE_CRIT} = 0.0; # Specify which coronal holes to use in determining the wind speeds # 0 = false, non-zero = true $ENV{HOLES_IN_OUT} = 1; $ENV{HOLES_OUT_IN} = 1; # number of days to predict ahead to fill in for missing files for the datefile $ENV{MAXFILL} = 0; # turn interpolation on (1) or off (0, or != 1) for predictions $ENV{INTERP} = 1; if ($ENV{INTERP} != 1) { print("PREDICTION INTERPOLATION IS TURNED OFF!!!!!\n"); } # set how much time on either side of central meridian date to # plot solar wind speed & imf $ENV{DEL_DAY} = .125; # running gong 4x/day (2 * .125 = .25) print("DEL_DAY = $ENV{DEL_DAY} \n"); # Set to non-zero if velocity output files will be used with ENLIL, 0 if not $ENV{ENLIL_FLAG} = 0; #------------------------------------------------------------- #wsabasedir is the base directory that everything is run from #------------------------------------------------------------- $wsabasedir = $ENV{PWD} . '/'; print ("wsabasedir = $wsabasedir\n"); $datadir = $wsabasedir . '/DATA/'; # base directory $ENV{WSABASEDIR} = $wsabasedir; # data directory $ENV{DATADIR} = $datadir; # set path to idl subroutines needed for WSA $ENV{IDL_PATH} = '+'.$wsabasedir.':'; #*************************************************************** # set path to where IDL executable exists, so cronjobs # will be able to find IDL $ENV{IDL_BIN} = '/opt/local/rsi/idl/bin/idl'; #$idlbin = `which idl`; #chomp($idlbin); #$ENV{IDL_BIN} = $idlbin; #*************************************************************** # directory w/ perl modules $ENV{PERLMODS} = $wsabasedir."PERL_MODS/"; if ($ENV{MAPTYPE} eq 'DU') { $typedir = "/UPDATED/"; } elsif ($ENV{MAPTYPE} eq 'FR') { $typedir = "/CARR/"; } else { die("MAPTYPE is not set properly, has to be DU or FR *********************************\n"); } # directory which contains original form of observatory # data (pre - processed) $ENV{PREPRODIR} = $datadir."PRE-PROCESS/".$OBS.$typedir; # file that contains list of synoptic maps to process #$ENV{PREPROLISTFILE} = $datadir."PRE-PROCESS/".$OBS.$typedir."test_files.txt"; $ENV{PREPROLISTFILE} = $datadir."PRE-PROCESS/".$OBS.$typedir."auto_run_files.txt"; # file that contains list of synoptic maps to resize $ENV{LISTFILE} = $datadir."SYNOPTIC/".$OBS.$typedir."pre_out_list.txt"; # directory which contains synoptic maps to be read $ENV{SYNMAPDIR} = $datadir."SYNOPTIC/".$OBS.$typedir; # directory that will contain resized maps $ENV{RESMAPDIR} = $datadir."WSA_INT/".$OBS.$typedir . "$ENV{GRID}" ."deg/"; print("RESMAPDIR = $ENV{RESMAPDIR} \n"); # directory that contains executable resize code $ENV{RESEXECDIR} = $wsabasedir."INTERP/"; # directory where sub-earth position files go $ENV{SBE_DIR} = $datadir.'WSA_OUT/'.$OBS.$typedir . $ENV{GRID} . 'deg/L' . $ENV{NM_SPHAR}.'R' . $ENV{SOUTER_RAD} . '/'; print("SBE_DIR = $ENV{SBE_DIR} \n"); # directory which will contain output of tracer code $ENV{TRAMAPDIR} = $datadir.'WSA_OUT/'.$OBS.$typedir . $ENV{GRID} . 'deg/L' . $ENV{NM_SPHAR} . 'R' . $ENV{SOUTER_RAD} . '/'; print("TRAMAPDIR = $ENV{TRAMAPDIR} \n"); # directory that contains executable tracer code $ENV{TRAEXECDIR} = $wsabasedir."CORONA/"; # file that contains list of resized maps to run $ENV{CORONALISTFILE} = $datadir."WSA_INT/".$OBS.$typedir . $ENV{GRID} . "deg/int_out_list.txt"; # Make Velocity files for ENLIL coupling # directory that contains executable WSA corona tracer code $ENV{VELEXECDIR} = $wsabasedir."VELOCITY/"; # directory which will contain velocity output $ENV{VELDIR} = $datadir.'WSA_VEL/'.$OBS.$typedir . $ENV{GRID} . 'deg/L' . $ENV{NM_SPHAR} . 'R' . $ENV{SOUTER_RAD} . '/'; # file that contains list of velocity maps ran, used to run ENLIL $ENV{ENLILLISTFILE} = $ENV{VELDIR}."vel_out_list.txt"; # solar wind & IMF predictions and plots #================================================================================= # list of wsa output files for which to make prediction #$ENV{PREDLISTFILE} = $ENV{TRAMAPDIR} . "cor_out_list.txt"; # WEB AUTOMATIC CASE ****************************************** $ENV{PREDLISTFILE} = $ENV{TRAMAPDIR} . "gong_date_list.txt"; # output directory for prediction files $ENV{PREDDIR} = $datadir . "WSA_PRED/".$OBS.$typedir . $ENV{GRID} . 'deg/L' . $ENV{NM_SPHAR} . 'R' . $ENV{SOUTER_RAD} . '/'; ; # date file that will be used to make predictions from $ENV{DATESFILE} = $datadir . 'WSA_PRED/'.$OBS . $typedir . $ENV{GRID} . 'deg/L' . $ENV{NM_SPHAR} . 'R' . $ENV{SOUTER_RAD} . '/gong_dates.dat' ; print("DATESFILE = $ENV{DATESFILE}\n"); # output directory for prediction plots $ENV{PREDPLOTDIR} = $datadir . "WSA_PRED_PLOTS/" .$OBS.$typedir . $ENV{GRID} . 'deg/L' . $ENV{NM_SPHAR} . 'R' . $ENV{SOUTER_RAD} . '/'; print("PREDPLOTDIR = $ENV{PREDPLOTDIR}\n"); #ACE data # updated ace file #$ENV{ACEFILE} = "/home/lmayer/WSA/DATA/ACE/observedace_hr.dat"; $ENV{ACEFILE} = $datadir . "/ACE/omni_wsa.lst"; # output directory for wsa_out plots $ENV{OUTPLOTDIR} = $datadir . "WSA_OUT_PLOTS/" .$OBS.'/UPDATED/' . $ENV{GRID} . 'deg/L' . $ENV{NM_SPHAR} . 'R' . $ENV{SOUTER_RAD} . '/'; print("OUTPLOTDIR = $ENV{OUTPLOTDIR}\n"); # FOR TESTING CORONA (idl code check_wsa_all.pro) #=================================================================================== # output using corona test $ENV{VERIFDIR} = "./VERIFY/DATA/WSA_OUT/" .$OBS.'/UPDATED/' . $ENV{GRID} . 'deg/L' . $ENV{NM_SPHAR} . 'R' . $ENV{SOUTER_RAD} . '/'; $ENV{VERIFPLOTDIR} = "./VERIFY/DATA/VERIF_PLOTS/"; #prediction directory ****************** $ENV{VERIFPREDDIR} = "./VERIFY/DATA/WSA_PRED/" .$OBS.'/UPDATED/' . $ENV{GRID} . 'deg/L' . $ENV{NM_SPHAR} . 'R' . $ENV{SOUTER_RAD} . '/'; #pmn added $ENV{FILE_AGE_TYPE} = "new"; #$ENV{VALIDATION_DIR} = $ENV{WSA_LOCAL_ROOT_DIR}."/Validation/tmp"; $ENV{VALIDATION_DIR} = "null"; $ENV{DISPLAY} = "localhost:0.0";