Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Blazina tblazina

View GitHub Profile
View X.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 60 columns, instead of 37. in line 3.
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59
0.0,0.0,0.0,0.0,0.5029710531234741,0.26489266753196716,0.0,0.0,0.0,0.0,0.7472427487373352,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.25354960560798645,0.9796686768531799,0.0,0.44714534282684326,0.0,0.0,0.0,0.0,0.0,0.9660338759422302,0.0,0.0,0.0,0.0,0.6891346573829651,0.0,0.8810217976570129,0.9846305251121521,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.948215663433075,0.0,0.0,0.0,0.0,0.0,0.0,0.0,830.0189208984375
0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.34852680563926697,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,69.57849884033203
0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.03346734493970871,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0
View bck.20190114144410.navigator.settings.json
{
"git.ignoreLegacyWarning": true,
"sync.gist": "db982cefcabc8a9425efc124ea56bc18",
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"sync.removeExtensions": true,
"sync.syncExtensions": true,
View code_example.py
import pandas as pd #Load Pandas module
import numpy as np #Load Numpy module
import os #Load operating system interface module
import netCDF4 #Load NetCDF4 module for opening chlorophyll-a data
trajectories=pd.read_pickle('C:\\Users\\blazinti\\Desktop\\Data\\Whales_project\\Plynlimon_netcdf_files\\Trajectories\\rainfall_filtered_trajectories') # This opens the filtered trajectory data
## The following block of code opens all of the individual chlorophyll-a gridded data sets and compiles them into one matrix