Skip to content

Instantly share code, notes, and snippets.

provider: aws
namespace: internal
nebari_version: 2024.1.1rc5
project_name: XXXX
domain: XXXX
certificate:
type: lets-encrypt
acme_email: XXXX
acme_server: XXXX
ci_cd:
@dharhas
dharhas / bio.md
Last active January 16, 2021 14:55
bio

DHARHAS POTHINA | DIRECTOR OF CONSULTING AT QUANSIGHT

Dharhas Pothina is the Director of Consulting at Quansight where he helps clients wrangle their data using the pydata stack. His background includes expertise in computational modeling, big data/high performance computing, visualization and geospatial analysis. Prior to his current position he worked for 15 years in state and federal research labs where he led large multi-disciplinary, multi-agency research projects.

He holds a PhD in Civil Engineering and an MS in Aerospace Engineering from the University of Texas at Austin and a BTech in Aerospace Engineering from the Indian Institute of Technology Madras.

@dharhas
dharhas / create_sampled_lsst_dataset.ipynb
Created July 23, 2019 21:31
create_sampled_lsst_dataset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dharhas
dharhas / manage.py
Created September 18, 2015 13:28
Attempt to use pulsar to do rpc and async download concurrently
import asyncio
from pulsar.apps import rpc, wsgi
from pulsar.utils.httpurl import JSON_CONTENT_TYPES
@asyncio.coroutine
def long_download(request, delay=1):
print('sleeping for: {0} seconds'.format(delay))
yield from asyncio.sleep(delay)
print('{0} seconds task is finished'.format(delay))
@dharhas
dharhas / .bash_profile
Created December 12, 2014 15:48
bash profile for use with git-bash-prompt anaconda and virtualenv
# Python -------------
# Anaconda
alias anaconda='export PATH=/Users/dharhas/anaconda/bin:$PATH; alias workon="source activate"; alias deactivate="source deactivate"'
alias rma='deactivate; export PATH=`echo -n $PATH | awk -v RS=: -v ORS=: "/anaconda/ {next} {print}" | sed "s/:$//"`; unalias workon deactivate'
# Problem with anaconda gdal
export GDAL_DATA=/usr/local/share/gdal/
# Virtual Envs (for use with system python)
@dharhas
dharhas / mean_discharge.py
Created April 30, 2014 17:18
simple example of using ulmo and pandas to download nwis daily streamflow data and calculate historic mean discharge
import numpy as np
import pandas as pd
from ulmo.usgs import nwis
# download and cache site data (this will take a long time the first time)
# currently downloads all available parameters
nwis.hdf5.update_site_data('06043500')
# read daily mean discharge data from cache (statistics code 00003)
data = nwis.hdf5.get_site_data('06043500', parameter_code='00060:00003')['00060:00003']