Skip to content

Instantly share code, notes, and snippets.

View MBARIMike's full-sized avatar

Mike McCann MBARIMike

View GitHub Profile
@MBARIMike
MBARIMike / gist:d50599df972813b81ebce44d42a0dee5
Last active May 8, 2024 18:52
Modification to bathymetry.cpp/h to support more .grd metadata formats
➜ MB-System git:(capstone-spring2024) ✗ git diff src/mbgrd2gltf/bathymetry.h src/mbgrd2gltf/bathymetry.cpp
diff --git a/src/mbgrd2gltf/bathymetry.cpp b/src/mbgrd2gltf/bathymetry.cpp
index 6287bee51..db8a17adc 100644
--- a/src/mbgrd2gltf/bathymetry.cpp
+++ b/src/mbgrd2gltf/bathymetry.cpp
@@ -40,6 +40,7 @@
// external libraries
#include <netcdf.h>
+#include <iostream>
$ git diff src/stoqs/geometry.cpp
diff --git a/stoqs/contrib/gltf-generator/src/stoqs/geometry.cpp b/stoqs/contrib/gltf-generator/src/stoqs/geometry.cpp
index 4495916..46f385a 100644
--- a/stoqs/contrib/gltf-generator/src/stoqs/geometry.cpp
+++ b/stoqs/contrib/gltf-generator/src/stoqs/geometry.cpp
@@ -1,7 +1,8 @@
#include <stoqs/geometry.h>
// standard library
-#include <math.h>
@MBARIMike
MBARIMike / tethysviz_opendap_urls.out
Created April 4, 2020 00:34
[tethysadmin@tethysviz docker]$ docker-compose exec -e DJANGO_ALLOW_ASYNC_UNSAFE=1 stoqs stoqs/tools/check_opendap_urls.py > tethysviz_opendap_urls.out
Checking OPeNDAP URLs in campaigns... (key: . good(200) , redirect(301) x bad(404)
stoqs_lrauv_jan2012 : *** FATAL: database "stoqs_lrauv_jan2012" does not exist ***
stoqs_lrauv_feb2012 : *** FATAL: database "stoqs_lrauv_feb2012" does not exist ***
stoqs_lrauv_mar2012 : *** FATAL: database "stoqs_lrauv_mar2012" does not exist ***
stoqs_lrauv_apr2012 : *** FATAL: database "stoqs_lrauv_apr2012" does not exist ***
stoqs_lrauv_may2012 : *** FATAL: database "stoqs_lrauv_may2012" does not exist ***
stoqs_lrauv_jun2012 : *** FATAL: database "stoqs_lrauv_jun2012" does not exist ***
stoqs_lrauv_jul2012 : *** FATAL: database "stoqs_lrauv_jul2012" does not exist ***
stoqs_lrauv_aug2012 : *** FATAL: database "stoqs_lrauv_aug2012" does not exist ***
stoqs_lrauv_sep2012 : MBARI Long Range Autonomous Vehicle data during September 2012
@MBARIMike
MBARIMike / check_opendap_urls.out
Created May 31, 2018 19:58
$ stoqs/tools/check_opendap_urls.py > check_opendap_urls.out
Checking OPeNDAP URLs in campaigns... (key: . good(200) , redirect(301) x bad(404)
stoqs_rovctd_mb : All dives in Monterey Bay
ROVCTD/loadMB_Dives.sh
stoqs_rovctd_mw93 : Daytime transect dives made by the Robison lab at Midwater 1 site, 1993 - 2014
ROVCTD/loadAllTransectDives.sh
stoqs_rovctd_mw97 : Midwater Transect dives made with Ventana and Doc Ricketts from 1997 - 2014. Three to four dives/year selected, representing spring, summer and fall (~ beginning upwelling, upwelling and post-upwelling)