SASlabgroup / SWIFT-codes

Data handling and processing for Surface Wave Instrument Floats with Tracking (SWIFT buoys)
GNU General Public License v3.0
19 stars 16 forks source link

Getting Idaliah data #31

Closed jcwarner-usgs closed 1 year ago

jcwarner-usgs commented 1 year ago

Dear Swifters:

thanks for all you are doing. this is great. I just did a git update.

1) i ran [ allbatterylevels lasttime lastlat lastlon] = pullSWIFTtelemetry( '029', '2023-08-28T00:00:00', '' );

SWIFTtype = 'micro' out = 'E:\data3\Projects\NOPP_hurricanes_modeling\Idalia_2023\Swifts\buoy-microSWIFT 029-start-2023-08-28T00_00_00-end-2023-09-01T00_00_00\SWIFT029.zip'

multiple expanded directories for SWIFT 029 Unrecognized function or variable 'SWIFT'.

Error in pullSWIFTtelemetry (line 121) if isfield(SWIFT,'watertemp') && ~isempty(SWIFT)

i went to debug mode and when we get to that line, there is no 'SWIFT' var or structure in the workspace. can you help me with that? -john

jthomson-apluw commented 1 year ago

Hi John,

Are you running this in an empty directory? (This is required.)

Also, are you on a PC, Mac, or Linux?

-Jim


Jim Thomson, PhD Senior Principal Oceanographer, Applied Physics Lab. Professor, Civil & Environmental Engineering Dept.
University of Washington 1013 NE 40th St, Seattle WA 98105 206-999-6908, @.***

On Aug 30, 2023, at 10:47 AM, john warner @.***> wrote:

Dear Swifters:

thanks for all you are doing. this is great. I just did a git update.

i ran [ allbatterylevels lasttime lastlat lastlon] = pullSWIFTtelemetry( '029', '2023-08-28T00:00:00', '' ); SWIFTtype = 'micro' out = 'E:\data3\Projects\NOPP_hurricanes_modeling\Idalia_2023\Swifts\buoy-microSWIFT 029-start-2023-08-28T00_00_00-end-2023-09-01T00_00_00\SWIFT029.zip'

multiple expanded directories for SWIFT 029 Unrecognized function or variable 'SWIFT'.

Error in pullSWIFTtelemetry (line 121) if isfield(SWIFT,'watertemp') && ~isempty(SWIFT)

i went to debug mode and when we get to that line, there is no 'SWIFT' var or structure in the workspace. can you help me with that? -john

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/SASlabgroup/SWIFT-codes/issues/31__;!!K-Hz7m0Vt54!k26KEPukIOLdK9rgZaP4iM2sHs8e6gonsZfjxzbzhzQGBMMxgMrvgCqBsy-aMlfANV7fU962HrCM4oqTPb8t7tQ$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJ6WTFT6FIMCX2MPQRN7XA3XX54CVANCNFSM6AAAAAA4E4CE6Q__;!!K-Hz7m0Vt54!k26KEPukIOLdK9rgZaP4iM2sHs8e6gonsZfjxzbzhzQGBMMxgMrvgCqBsy-aMlfANV7fU962HrCM4oqTrd0OG0E$. You are receiving this because you are subscribed to this thread.

jcwarner-usgs commented 1 year ago

PC. ok i made sure dir was empty.

I get a different error depending on if i use '029' or '29'

-for '29': [ allbatterylevels lasttime lastlat lastlon] = pullSWIFTtelemetry( '29', '2023-08-28T00:00:00', '' ); SWIFTtype = 'v3v4s' out = 'E:\data3\Projects\NOPP_hurricanes_modeling\Idalia_2023\Swifts\pullswift\SWIFT29.zip' multiple expanded directories for SWIFT 29 Unrecognized function or variable 'SWIFT'.

Error in pullSWIFTtelemetry (line 121) if isfield(SWIFT,'watertemp') && ~isempty(SWIFT)

-for '029': [ allbatterylevels lasttime lastlat lastlon] = pullSWIFTtelemetry( '029', '2023-08-28T00:00:00', '' ); SWIFTtype = 'micro' out = 'E:\data3\Projects\NOPP_hurricanes_modeling\Idalia_2023\Swifts\pullswift\SWIFT029.zip'

reading microSWIFT (compact) replacedrawvalues = 760

Unable to resolve the name 'half.typecast'.

Error in readSWIFT_SBD (line 451) SWIFT.sigwaveheight = half.typecast(fread(fid, 1,'*uint16')).double; % sig wave height

Error in compileSWIFT_SBDservertelemetry (line 49) [ oneSWIFT voltage ]= readSWIFT_SBD( flist(ai).name , 0);

Error in pullSWIFTtelemetry (line 82) compileSWIFT_SBDservertelemetry

jthomson-apluw commented 1 year ago

Ok, we’re getting somewhere. You definitely need to use ‘029’, not ’29’.

The new error is about the “half-float” precision that we use for spectral values, which is meant to be efficient with the Iridium transmissions. This requires Matlab R2018a or later. What version are you using?

On Aug 30, 2023, at 11:23 AM, john warner @.***> wrote:

PC. ok i made sure dir was empty.

I get a different error depending on if i use '029' or '29'

-for '29': [ allbatterylevels lasttime lastlat lastlon] = pullSWIFTtelemetry( '29', '2023-08-28T00:00:00', '' ); SWIFTtype = 'v3v4s' out = 'E:\data3\Projects\NOPP_hurricanes_modeling\Idalia_2023\Swifts\pullswift\SWIFT29.zip' multiple expanded directories for SWIFT 29 Unrecognized function or variable 'SWIFT'.

Error in pullSWIFTtelemetry (line 121) if isfield(SWIFT,'watertemp') && ~isempty(SWIFT)

-for '029': [ allbatterylevels lasttime lastlat lastlon] = pullSWIFTtelemetry( '029', '2023-08-28T00:00:00', '' ); SWIFTtype = 'micro' out = 'E:\data3\Projects\NOPP_hurricanes_modeling\Idalia_2023\Swifts\pullswift\SWIFT029.zip'

reading microSWIFT (compact) replacedrawvalues = 760

Unable to resolve the name 'half.typecast'.

Error in readSWIFT_SBD (line 451) SWIFT.sigwaveheight = half.typecast(fread(fid, 1,'*uint16')).double; % sig wave height

Error in compileSWIFT_SBDservertelemetry (line 49) [ oneSWIFT voltage ]= readSWIFT_SBD( flist(ai).name , 0);

Error in pullSWIFTtelemetry (line 82) compileSWIFT_SBDservertelemetry

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/SASlabgroup/SWIFT-codes/issues/31*issuecomment-1699644163__;Iw!!K-Hz7m0Vt54!mOlLbeWlrIcyV9KihlaWAnXrreEQ_UGUO-gOlpmG27CgRb3BJUziWctWdfeeVeJlQRtvip5UEB6--UgXQEE8q7c$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJ6WTFUIWOZOMMDIAFJEGKDXX6AKLANCNFSM6AAAAAA4E4CE6Q__;!!K-Hz7m0Vt54!mOlLbeWlrIcyV9KihlaWAnXrreEQ_UGUO-gOlpmG27CgRb3BJUziWctWdfeeVeJlQRtvip5UEB6--UgXNjJKkKQ$. You are receiving this because you commented.

jcwarner-usgs commented 1 year ago

version ans = '9.12.0.1884302 (R2022a)'

[thanks for your help. I am thinking to make these drifters - model comparison into my OS abstract]

jthomson-apluw commented 1 year ago

I wonder if the half.typecast is part of a toolbox (and we did not realize it).

If you type “help half” in Matlab, what do you get?


Jim Thomson, PhD Senior Principal Oceanographer, Applied Physics Lab. Professor, Civil & Environmental Engineering Dept.
University of Washington 1013 NE 40th St, Seattle WA 98105 206-999-6908, @.***

On Aug 30, 2023, at 11:43 AM, john warner @.***> wrote:

version ans = '9.12.0.1884302 (R2022a)'

[thanks for your help. I am thinking to make these drifters - model comparison into my OS abstract]

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/SASlabgroup/SWIFT-codes/issues/31*issuecomment-1699667798__;Iw!!K-Hz7m0Vt54!guYV4bJsErrPPOx9BmaXb3bQayO5OfsNeXHC_qd3P4LORhNZidm3sX3KLK59R2G2ohOnJ_V5CiE8misbG8lmYQI$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJ6WTFQFCDUQKZBSE6VOBWLXX6CVZANCNFSM6AAAAAA4E4CE6Q__;!!K-Hz7m0Vt54!guYV4bJsErrPPOx9BmaXb3bQayO5OfsNeXHC_qd3P4LORhNZidm3sX3KLK59R2G2ohOnJ_V5CiE8misboc9aElc$. You are receiving this because you commented.

jacobrdavis commented 1 year ago

Yes the half-precision floats are part of a toolbox (which we knew, did not document, and have since forgotten about). I used the "Fixed-Point Designer" toolbox.

jthomson-apluw commented 1 year ago

I will add a comment to that code noting that dependency…

On Aug 30, 2023, at 2:09 PM, Jacob Davis @.***> wrote:

Yes the half-precision floats are part of a toolbox (which we knew, did not document, and have since forgotten about). I used the "Fixed-Point Designer" toolbox.

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/SASlabgroup/SWIFT-codes/issues/31*issuecomment-1699846424__;Iw!!K-Hz7m0Vt54!j0hHcfqBup0AL-INaEN4928G4IUy0hj04HZpUcktrcxQBxrBcJotDw_UKHJKbUqIc8PuV1MYzlzY-SZwcLK3EhQ$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJ6WTFVAAQRHJ7FFIS6ZDE3XX6TYHANCNFSM6AAAAAA4E4CE6Q__;!!K-Hz7m0Vt54!j0hHcfqBup0AL-INaEN4928G4IUy0hj04HZpUcktrcxQBxrBcJotDw_UKHJKbUqIc8PuV1MYzlzY-SZw_09yzNg$. You are receiving this because you commented.