UCSD will be a tough admit since UC’s tend to be very GPA focused. Showing an upward trend is a positive and if you have a compelling reason for the Sophomore slump, then that will be taken into consideration. I would suggest you consider San Diego State and USD also if you want to stay in the SD area. There is always the CC to UC route if UCSD is definitely the school you want to attend, but again no guarantees this way either. Some UC statistical admit data from the most current year:
2018 Freshman admit rates for UC GPA of 3.40-3.79 capped weighted and not major specific:
UCB: 1%
UCLA: 2%
UCSD: 7%
UCSB: 8%
UCI: 7%
UCD: 14%
UCSC: 33%
UCR: 49%
UCM: 82%
2018 UC capped weighted GPA averages:
UCB: 4.23
UCLA: 4.23
UCSD: 4.16
UCSB: 4.13
UCI: 4.13
UCD: 4.11
UCSC: 3.96
UCR: 3.81
UCM: 3.71
2018 Data:
25th - 75th percentiles for SAT:
UCB: 1360-1540
UCLA: 1340-1540
UCSD: 1300-1520
UCSB: 1270-1500
UCD: 1220-1480
UCI: 1230-1490
UCSC: 1210-1450
UCR: 1130-1380
UCM: 1020-1280
Best of luck and remember there are more than one path to your goals.