Commit add7f733 authored by GROUAZEL's avatar GROUAZEL

modify the path in and out for spectra generation

parent 5eef530e
......@@ -35,15 +35,16 @@ import hbaserequests as hbr
#from shared_information import mission_start_s1a
mission_start_s1a = "20140101"
rep_trigger = '/home/cercache/project/mpc-sentinel1/workspace/trigger_chains/xspec_L2_plots/'
DIR_PROJECT = '/home/datawork-cersat-public/project/mpc-sentinel1/'
# rep_trigger = '/home/cercache/project/mpc-sentinel1/workspace/trigger_chains/xspec_L2_plots/'
rep_trigger = os.path.join(DIR_PROJECT,'workspace','trigger_chains','xspec_L2_plots')
SAT = {"S1A":'sentinel-1a',
"S1B":'sentinel-1b'}
ROOT_OUT = '/home/cercache/project/mpc-sentinel1/analysis/s1_data_analysis/L2_V2/'
LOG_FOLDER = '/home/cercache/project/mpc-sentinel1/analysis/s1_data_analysis/L2_V2/LOGS/'
# ROOT_OUT = '/home/cercache/project/mpc-sentinel1/analysis/s1_data_analysis/L2_V2/'
ROOT_OUT = os.path.join(DIR_PROJECT,'analysis','s1_data_analysis','L2_V2')
# LOG_FOLDER = '/home/cercache/project/mpc-sentinel1/analysis/s1_data_analysis/L2_V2/LOGS/'
LOG_FOLDER = os.path.join(DIR_PROJECT,'analysis','s1_data_analysis','L2_V2','LOGS')
modes = {'SAT':['satfull','satreal','satimaginary'],'WW3':['ww3']}
fileprefix = {'satfull':'ocean_swell_spectra_',
'satreal':'realcrossspectra_',
......@@ -178,10 +179,12 @@ def getinputfolder(options):
"""
inputfolder = ""
if options.source == 'SAT':
inputfolder = '/home/cercache/project/mpc-sentinel1/data/esa/'+SAT[options.platform]+'/L2/'
# inputfolder = '/home/cercache/project/mpc-sentinel1/data/esa/'+SAT[options.platform]+'/L2/'
inputfolder = '/home/datawork-cersat-public/project/mpc-sentinel1/data/esa/'+SAT[options.platform]+'/L2/'
elif options.source == "WW3":
sat = options.platform.lower()
inputfolder = '/home/cercache/project/mpc-sentinel1/data/colocation/'+SAT[options.platform]+'/sar-model/ww3spectra'
# inputfolder = '/home/cercache/project/mpc-sentinel1/data/colocation/'+SAT[options.platform]+'/sar-model/ww3spectra'
inputfolder = '/home/datawork-cersat-public/project/mpc-sentinel1/data/colocation/'+SAT[options.platform]+'/sar-model/ww3spectra'
elif options.source == "BUOY":
inputfolder = ''
return inputfolder
......@@ -317,7 +320,8 @@ def createlisting(options):
if options.outputFilepath:
listing_togenerate = options.outputFilepath
else:
listing_togenerate = '/home/cercache/project/mpc-sentinel1/analysis/s1_data_analysis/L2_V2/listing/xspec_l2_'+startdate_str+'_'+enddate_str+'_'+options.platform+'_'+options.source+'.lst'
# listing_togenerate = '/home/cercache/project/mpc-sentinel1/analysis/s1_data_analysis/L2_V2/listing/xspec_l2_'+startdate_str+'_'+enddate_str+'_'+options.platform+'_'+options.source+'.lst'
listing_togenerate = os.path.join(DIR_PROJECT,'analysis','s1_data_analysis','L2_V2','listing','xspec_l2_'+startdate_str+'_'+enddate_str+'_'+options.platform+'_'+options.source+'.lst')
if os.path.exists(listing_togenerate):
os.remove(listing_togenerate)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment