This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################### | |
| # Python Script for Creating csvt file for QGIS | |
| #written by Kirubaharan J mail:[email protected] | |
| #Credits: Hemanth.hm,Stefano and few others from Stackflow | |
| #This script scans the directory for csv files and creates respective csvt file | |
| #from the default csvt(create as per the requirement) | |
| # The csvt file is neccessary for making QGIS understand the dataformat | |
| #useful for hydrologists who do longterm rainfall analysis for basin | |
| ############################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################### | |
| # This scripts converts the raingauge data in csv file to shapefile points | |
| #Written by Kirubaharan J mail:[email protected] | |
| #Credits: sgrieve from gisstackexchange.com | |
| # | |
| ############################################################################### | |
| import shapefile as shp | |
| import csv | |
| import os, fnmatch | |
| from os.path import basename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################### | |
| # This Script is used for downloading the daily storage flow data from TN PWD | |
| # Website and stores them in file name representing date. | |
| # Credit: Alexander Afanasiev (alecxe), | |
| #http://www.linkedin.com/in/alexanderafanasiev | |
| #alecxe written this code and made sure it worked the right way | |
| #Just for the sake I am Kirubaharan ([email protected])who learnt | |
| #how to do this from alecxe | |
| #2-8-2013 | |
| ############################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getwd() | |
| setwd('E:/r/r_dir/stream_profile/') | |
| #testing the auc function | |
| raw<-read.csv(file='634_stream_profile.csv',sep=",") | |
| library(ggplot2) | |
| ggplot(data=raw,aes(x=raw$X,y=raw$y.0/100)) + geom_line() +geom_abline(mapping=aes(slope=0,intercept=.66)) | |
| library(flux) | |
| area_0<-auc(x=raw$X,y=raw$y/100.0,thresh=.7) | |
| area_0 | |
| raw_2<-read.csv('634_stream_profile_2.csv', sep=',') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'kirubaharan' | |
| ##area of curve | |
| import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| from spread import spread |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'kiruba' | |
| # import statements | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import pandas as pd | |
| from matplotlib import rc | |
| import itertools | |
| from mpl_toolkits.mplot3d import axes3d, Axes3D | |
| from matplotlib import cm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'kiruba' | |
| ##area of curve | |
| import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| from spread import spread | |
| # copy the code from http://code.activestate.com/recipes/577878-generate-equally-spaced-floats/ # | |
| import itertools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from phenology import * | |
| data2011 = np.loadtxt('/Users/User/data2011.txt') | |
| # Define variables | |
| doy = data2011[:,0] | |
| temp = data2011[:,1] | |
| tbase = 10. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' remove annoying website names from a music file | |
| and also if it starts with a number remove it as it | |
| causes problems while searching a particular file | |
| Author: Kshitiz Joshi | |
| e-mail: [email protected] |
OlderNewer