[gradsusr] EXTRACTING VALUE FROM A VARIABLE AND SAVE IT INTO CSV FILE

Jayakrishnan P.R prjayakrishnan at gmail.com
Thu Dec 4 00:22:33 EST 2014


One way is doing something like this below. May be helpful. Other way is to
use fprintf in opengrads.


*ga->* fprintf ts ts.txt


'reinit'
'sdfopen G:/expt/19dec.nc'
'define a=aave(var1,lon=70,lon=80,lat=10,lat=20)'
'set t 1'
'd a'
te=subwrd(result,4)
w=write('result.csv',te)


Sincerely
***********************************************
Jayakrishnan.P.R
Project Scientist-C
National Centre for Medium Range Weather Forecasting
Earth System Science Organisation
Ministry of Earth Sciences
A-50, Sector 62, NOIDA -201 309, INDIA
Mob: 09496026547
Alternate Email: jkrishna at ncmrwf.gov.in

***********************************************

On Wed, Dec 3, 2014 at 9:04 PM, Jennifer Adams <jma at cola.iges.org> wrote:

> Please see http://iges.org/grads/gadoc/ascii.html
> —Jennifer
>
> On Nov 26, 2014, at 4:00 AM, Zaib-un- Nisa <zaib.envsc at gmail.com> wrote:
>
> Hi there,
>
> I have MODIS AOD nc files, i want to extract aod values and save it into
> csv file. for instance i have 6 nc files for 6 days, i ll compute the aave
> of aod for specific lat lon, bcoz nc file is covering globe. how will i
> phrase the script. i have shared one nc file from which i want to extract
> one area averaged value. possible?
>
> Regards,
> Zaib
> <19dec.nc>_______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
> Jennifer M. Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> 111 Research Hall, Mail Stop 2B3
> George Mason University
> 4400 University Drive
> Fairfax, VA 22030
>
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20141204/aab38571/attachment-0001.html 


More information about the gradsusr mailing list