idl-programming-language

Convert datetime and timedelta from Python to IDL

Convert datetime and timedelta from Python to IDL Question: Please does anyone know how to convert the following python script to IDL, hours = list(Timed) start_date = datetime(year=1800, month=1, day=1, hour=0, minute=0, second=0) days =[] Months =[] Years =[] for hour in hours: date = start_date + timedelta(hours=hour) Months.append(date.month) Years.append(date.year) The script converts the data …

Total answers: 1

Import Only Necessary CSV Columns In IDL

Import Only Necessary CSV Columns In IDL Question: I am struggling to find a function in IDL that will replicate something I have done in Python with Pandas. I am new to IDL and there is next to nothing resource wise that I can find. In Python, I use the following: pd.read_csv(‘<csv filepath>’, usecols=[n]) The …

Total answers: 2

What's the name of this font used in this figure?

What's the name of this font used in this figure? Question: I want to use this font in matplotlib plotting, but I can not find out the name. Does anyone know? This figure is got by IDL plotting on Mac OS (10.9) like: filename = ‘name.eps’ myDevice = !D.NAME SET_PLOT,’ps’ DEVICE,DECOMPOSED=1,ENCAPSULATED=1,/COLOR,FILENAME=filename …… DEVICE, /CLOSE SET_PLOT, …

Total answers: 3