Exemple #1
0
		print ("\n Download the text files required ... " )
		print ("\n Only the manifest text files (~325 M) will be downloaded and no TESS data." )
		print ("\n This step may take a while but luckily it only has to run once... \n" )

		# ------------------------------------------------
		#check whether the chosen (output) directory already exists, and if it doesn't create the directory.
		
		if not os.path.exists("{}/data".format(indir)):
			os.makedirs("{}/data".format(indir))
	
		# ------------------------------------------------

		# ----- REFERENCE FILES DOWNLOAD -----
		utils.data_files(indir)
		utils.tp_files(indir)
		utils.TOI_TCE_files(indir)
		utils.momentum_dumps_info(indir)
		
		# -----

	# if the user chooses to redefine the path
	elif args.new_path == True: 
	
		reply = yes_or_no() # double check that they really want to do that.
	
		if reply == True:
			indir = input("\n \n Please enter a path to save the files (e.g. ./LATTE_output or /Users/yourname/Desktop/LATTE_output) : " )

			#try three times to find the output path
			intry = 0
			worked = True
Exemple #2
0
		print ("\n This step may take a while but luckily it only has to run once... \n" )
	
		# ------------------------------------------------
		#check whether the chosen (output) directory already exists, and if it doesn't create the directory.
		if not os.path.exists("{}".format(indir)):
			os.makedirs(indir)
	
		if not os.path.exists("{}/data".format(indir)):
			os.makedirs("{}/data".format(indir))
	
		# ------------------------------------------------
	
		# ----- REFERENCE FILES DOWNLOAD -----
		LATTEutils.data_files(indir)
		LATTEutils.tp_files(indir)
		LATTEutils.TOI_TCE_files(indir)
		LATTEutils.momentum_dumps_info(indir)
		# -----
	
	# if the user chooses to redefine the path
	elif args.new_path == True: 
	
		reply = yes_or_no() # double check that they really want to do that.
	
		if reply == True:
			indir = input("\n \n Please enter a path to save the files (e.g. ./LATTE_output or /Users/yourname/Desktop/LATTE_output) : " )
	
			# SAVE the new output path
			with open("{}/_config.txt".format(syspath),'w') as f:
				f.write(str(indir))	
			
Exemple #3
0
        #check whether the chosen (output) directory already exists, and if it doesn't create the directory.

        if not os.path.exists("{}/data".format(indir)):
            os.makedirs("{}/data".format(indir))

        # ------------------------------------------------

        # ----- REFERENCE FILES DOWNLOAD -----
        #utils.data_files(indir)
        utils.get_data_codes(
            indir
        )  # get the codes needed to downlaod the data directly (so that we don't need the url scipts anymore)
        utils.tp_files(
            indir
        )  # downlaod the lost of all of the tic ids in that sector - this is needed to find the nearest neighbour tic ids.
        utils.TOI_TCE_files(indir)  # get a list of the TCEs and TOIs
        utils.momentum_dumps_info(
            indir
        )  # note downn the momentum dumps - we need this for the FFI's only

        # -----

    # if the user chooses to redefine the path
    elif args.new_path == True:

        reply = yes_or_no()  # double check that they really want to do that.

        if reply == True:
            indir = input(
                "\n \n Please enter a path to save the files (e.g. ./LATTE_output or /Users/yourname/Desktop/LATTE_output) : "
            )