Page 1 of 1

SeaBASS, readsb

Posted: Tue Jul 26, 2022 4:57 pm America/New_York
by arnabp893
I am working with seabass chl-a (hplc) data and I want to read the .sb in Matlab using readsb.m (pre-built) code. It is written that putting the filename is the only requirement but somehow it is not working. I am a newbie in Matlab and possibly I am missing something.
Thank you

Re: SeaBASS, readsb

Posted: Thu Jul 28, 2022 10:26 am America/New_York
by OB SeaBASS - inymar
@arnabp893

The readsb.m code accepts a filename as its only input and it allows the user to include several arguments if desired. However, the code requires an output ___location. Please read carefully the instructions in the code (first 200 lines) to see all its functionality. Based on your screen shot, I see two major errors.

First, you should not put your filename within the readsb.m code. If this is your first time running it, I would recommend that you create a folder with your code and the files you need to read. Make sure you set your path in matlab to that folder. You can do that in the command line or go to the to bar and select the folder. On your command window (or your own code), you will type:

[data, header] =readsb('7da2190bbf_NSF_Rapid_HPLC_2018_AC.sb')

The second issue is that your filename is possibly incorrect. I could not find a file in SeaBASS called da2190bbf_NSF_Rapid_HPLC_2018_AC.sb.

Please feel free to let me know if you have any other questions.

Re: SeaBASS, readsb

Posted: Thu Jul 28, 2022 3:45 pm America/New_York
by arnabp893
Thank you sir. I will try that. Meanwhile, I am having trouble with putting my own lat/lon data. I have tried both the approach from pin manager to provide .txt file and and adding csv file from export>pixel extraction. Both showing the same error of 'error occurred while reading file; Neither lat/lon nor geometry column provided. I have proviced the file this format attached with the question. Thank you for yuor help. I am learning seadas and matlab and started as a newbi. So these questions are appearing while working with the data.

Re: SeaBASS, readsb

Posted: Fri Jul 29, 2022 2:23 pm America/New_York
by OB SeaBASS - inymar
@arnabp893

Is you lat/lon question about SeaDAS? If so, could you please start a new forum thread (question) and tag SeaDAS.

Re: SeaBASS, readsb

Posted: Fri Jul 29, 2022 7:17 pm America/New_York
by arnabp893
Ok,
Thank you