SeaBASS, readsb

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
arnabp893
Posts: 34
Joined: Tue Jun 21, 2022 1:35 pm America/New_York
Answers: 0

SeaBASS, readsb

by arnabp893 » Tue Jul 26, 2022 4:57 pm America/New_York

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
Attachments
Screen Shot 2022-07-26 at 3.54.54 PM.png
Screen Shot 2022-07-26 at 3.54.54 PM.png (474 KiB) Not viewed yet

Tags:

OB SeaBASS - inymar
Subject Matter Expert
Subject Matter Expert
Posts: 7
Joined: Fri Feb 05, 2021 10:02 am America/New_York
Answers: 0

Re: SeaBASS, readsb

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

@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.

arnabp893
Posts: 34
Joined: Tue Jun 21, 2022 1:35 pm America/New_York
Answers: 0

Re: SeaBASS, readsb

by arnabp893 » Thu Jul 28, 2022 3:45 pm America/New_York

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.
Attachments
Screen Shot 2022-07-28 at 2.42.24 PM.png
Screen Shot 2022-07-28 at 2.42.24 PM.png (206.65 KiB) Not viewed yet

OB SeaBASS - inymar
Subject Matter Expert
Subject Matter Expert
Posts: 7
Joined: Fri Feb 05, 2021 10:02 am America/New_York
Answers: 0

Re: SeaBASS, readsb

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

@arnabp893

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

arnabp893
Posts: 34
Joined: Tue Jun 21, 2022 1:35 pm America/New_York
Answers: 0

Re: SeaBASS, readsb

by arnabp893 » Fri Jul 29, 2022 7:17 pm America/New_York

Ok,
Thank you

Post Reply