Indian Forum for Water Adroit

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - subash

Pages: [1]
1
Programming / Re: Writing two dimensional netCDF file in python-Reg
« on: February 08, 2018, 05:30:35 PM »
Hi Diwan

I think the problem is with the variableName used. The variables associated with the dimensions should have the same name as the dimensions. Change these lines

Code: [Select]
latitude = nc_file.createVariable('Latitude',float32,('lat',))
longitude = nc_file.createVariable('Longitude',float32,('lon',))
 


Modified :

Code: [Select]
#Creating variables
latitude = nc_file.createVariable('lat',float32,('lat',))
longitude = nc_file.createVariable('lon',float32,('lon',))
The following users thanked this post: Diwan

2
Data / SOI toposheet data : 1:250K scale
« on: July 12, 2017, 12:04:23 PM »
Data can be downloaded free @ http://www.lib.utexas.edu/maps/ams/india/
The following users thanked this post: Sat Kumar Tomer, Karthikeyan L

3
Post your question/information / Re: Quantile Mapping for bias correction
« on: January 31, 2017, 06:52:31 PM »
@ Guillaume Dueymes. The bias_correction function is in stats file.

You should import the bias correction method as below:

Code: [Select]
from ambhas.stats import bias_correction

Subash
The following users thanked this post: guillaume

4
Programming / Re: Python Resources for Hydrologists
« on: January 06, 2017, 11:22:58 AM »
Congrats Sat Kumar.. Your contribution for the Python community @ Python in Hydrology and library AMBHAS have been listed @ http://abouthydrology.blogspot.in/2016/11/python-resources-for-hydrologists.html
The following users thanked this post: Sat Kumar Tomer, Subir Paul

5
Data / High resolution irrigation maps for India : 2000-2015
« on: December 28, 2016, 01:05:54 PM »
Annual irrigated area maps at a resolution of 250 metres for the period 2000-2015 covering all the agroecological zones of India were developed and published by Prof. Vimal Mishra from IIT-Gandhinagar and his team.

Link to the article : http://www.nature.com/articles/sdata2016118

The maps can be downloaded @ : https://figshare.com/articles/Irrigated_Area_Maps_for_India/3790611/1
The following users thanked this post: Subir Paul, Pankaj Dey

6
Programming / Re: R vs Python
« on: December 23, 2016, 08:43:50 PM »
My views with little experience in all the three scripting languages are as below:

Sat hit the nail on the head by saying learn by coding is the best way to learn any programming language, does'nt matter which you pick. All the programming languages can solve most of the problems but picking which one is the best is very case specific. However, for solving most research problems any one among the three is ok to get started/solve ur problem. Most research students pick MATLAB because it can be very easy to learn. R has very deep learning curve and Python comes in between.

Most of the packages/algorithms in WaterResources you can most likely find in R or MATLAB.

Hello World : You can learn interactive code  @ https://www.codecademy.com/, https://www.codeschool.com/ & https://www.datacamp.com/

ShapeFile/Raster : Coming and Python and R w.r.t GIS, although the core algos in ArcGIS/QGIS/GRASS are written in C, many packages/libraries for GIS are written in Python. As a result you see many packages in Python and R which can talk to arcGIS/QGIS/GRASS. So, if you handle lot of satellite data processing, it is good to go with R/Python.

Rewards : There are many programming courses being offered in https://www.coursera.org/   Matlab/Python/R. Pick any , do the course and you can write it on ur CV.
(2) You can take part in coding challenges which happen everyday/week  https://www.analyticsvidhya.com/ , https://github.com/ and topcoder.com to name a few, you can take part and put  your ranking on the CV.


Finally, It takes about 10 years to master one programming language. But, once you get started with one, you can easily pick the other.

Happy Coding
The following users thanked this post: Subir Paul, denzilroy

7
Programming / R vs Python
« on: December 08, 2016, 05:46:27 PM »
This blog gives a nice intro and comparison between R and Python. Some popular packages and the scripting language to choose for your work are described eloquently.

https://www.datacamp.com/community/tutorials/r-or-python-for-data-analysis#gs.3KXWxKM
The following users thanked this post: Karthikeyan L, Diwan

8
Data / Re: Free GIS data
« on: November 28, 2016, 02:52:52 PM »
Kabbilawsh, As i understand your problem is u have extracted/downloaded  few district boundaries   in India from may be 3 sources lets say A,B, and C and u find a disparity among the three.. So, there is a confusion of which one is correct? So, authenticity of the data is the question.

One source which i think of is Bhuvan (http://bhuvan.nrsc.gov.in/state) which does provide the option of district boundaries for a state..As this from our Space Agency i hope the boundaries are reliable.

Another is GADM database (www.gadm.org), which i use for my work.


Hope that helps


The following users thanked this post: Sat Kumar Tomer

9
Programming / Re: Memory allocation size error in R
« on: July 09, 2016, 10:33:02 AM »
Though you got the error at the line posted, it is not looking for me that rmaxstab is causing memory trouble as you are generating only one number , n=1.

May be it is imperative that you check the object sizes in you workspace, so that we can know which variable is taking more space.

object.size(x=lapply(ls(), get))
print(object.size(x=lapply(ls(), get)), units="Mb")
The following users thanked this post: Sat Kumar Tomer, Chandra Rupa

10
Details are given @ http://st.hirosaki-u.ac.jp/~yatagai/kouboE.pdf

For further details Contact:

Akiyo YATAGAI, Ph.D.
Associate Professor ( Course of Meteorology ),
Global Environment and Disaster Prevention Sciences
Faculty/ Graduate School of Science and Technology,
Hirosaki University
Email: yatagai@hirosaki-u.ac.jp
URL: http://www.st.hirosaki-u.ac.jp/~yatagai/
Tel: +81-172-39-3685
The following users thanked this post: Sat Kumar Tomer

11
Data / [Data download manager] Automate the download
« on: June 21, 2016, 11:01:38 AM »
Firefox has a nice plugin https://addons.mozilla.org/en-US/firefox/addon/downthemall/ to automate the download of data. Install the add-on DownThemAll. I use it to download satellite rainfall data from ftp.

NOTE : The files are downloaded in parallel

Follow the steps.

1 - Prepare a text file URL_list.txt   with files you wish to download from a ftp. Attached is a sample file 2004.txt.

2 - After installing DownThemAll restart Firefox.

3 - Go to Firefox menu and select Tools - DownThemAll! Tools - Manager... Right-click inside DownThemAll! screen.

4 - Select context menu Misc - Import from file.

5 - On Import downloads dialog window make sure you select Text Files in the dropdown list.

6 - Point to the text file URL_list.txt that contains the URLs. Click Open button.

7 - On Make your selection dialog window, DownThemAll! will load each link it finds in the text file allowing you to select which ones you want to download and the folder where you want the files to be saved as well.

8 - Make your selections of which files to download.

Renaming mask set it to : *name*.*ext*
In Fast Filtering you can choose only to select the files of interest Example .nc files : /(.nc)$/

9 - click Start button.
The following users thanked this post: Sat Kumar Tomer, Alok Pandey, Agilan, Rohith Kannada

12
Announcements / Re: Climate Forecast System for India
« on: June 16, 2016, 12:28:30 PM »
Collaborative research by India and UK to conduct experiments of Atmosphere and Ocean for better understanding and forecasting of Monsoon rainfall.

http://www.deccanchronicle.com/science/science/160616/uk-indian-scientists-join-in-major-study-to-better-predict-the-monsoon.html
The following users thanked this post: Alok Pandey

Pages: [1]