You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
|
Feb
|
Mar
|
Apr
(8) |
May
(2) |
Jun
|
Jul
(6) |
Aug
(7) |
Sep
|
Oct
(3) |
Nov
|
Dec
(6) |
2002 |
Jan
(46) |
Feb
(15) |
Mar
(15) |
Apr
(4) |
May
(5) |
Jun
(11) |
Jul
(6) |
Aug
(11) |
Sep
(8) |
Oct
(7) |
Nov
(18) |
Dec
(6) |
2003 |
Jan
(19) |
Feb
(12) |
Mar
(13) |
Apr
(16) |
May
(28) |
Jun
(26) |
Jul
(20) |
Aug
(14) |
Sep
(7) |
Oct
(14) |
Nov
(12) |
Dec
(19) |
2004 |
Jan
(31) |
Feb
(56) |
Mar
(23) |
Apr
(22) |
May
(37) |
Jun
(33) |
Jul
(37) |
Aug
(21) |
Sep
(12) |
Oct
(21) |
Nov
(18) |
Dec
(4) |
2005 |
Jan
(18) |
Feb
(11) |
Mar
(15) |
Apr
(2) |
May
(15) |
Jun
(9) |
Jul
(9) |
Aug
(11) |
Sep
(13) |
Oct
(27) |
Nov
(11) |
Dec
(11) |
2006 |
Jan
(27) |
Feb
(26) |
Mar
(30) |
Apr
(14) |
May
(41) |
Jun
(25) |
Jul
(13) |
Aug
(18) |
Sep
(43) |
Oct
(52) |
Nov
(45) |
Dec
(1) |
2007 |
Jan
(9) |
Feb
|
Mar
(4) |
Apr
(18) |
May
(15) |
Jun
(9) |
Jul
(20) |
Aug
(16) |
Sep
(4) |
Oct
(21) |
Nov
(17) |
Dec
(17) |
2008 |
Jan
(20) |
Feb
(15) |
Mar
(13) |
Apr
(22) |
May
(22) |
Jun
(35) |
Jul
(29) |
Aug
(17) |
Sep
(22) |
Oct
(41) |
Nov
(31) |
Dec
(23) |
2009 |
Jan
(26) |
Feb
(17) |
Mar
(19) |
Apr
(6) |
May
(15) |
Jun
(2) |
Jul
(11) |
Aug
(37) |
Sep
(39) |
Oct
(37) |
Nov
(21) |
Dec
(18) |
2010 |
Jan
(12) |
Feb
(39) |
Mar
(31) |
Apr
(37) |
May
(16) |
Jun
(10) |
Jul
(17) |
Aug
(13) |
Sep
(7) |
Oct
(50) |
Nov
(16) |
Dec
(8) |
2011 |
Jan
(20) |
Feb
(23) |
Mar
(3) |
Apr
(21) |
May
(5) |
Jun
(12) |
Jul
(7) |
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(3) |
Dec
(10) |
2012 |
Jan
(9) |
Feb
(12) |
Mar
(45) |
Apr
(36) |
May
(20) |
Jun
(13) |
Jul
(1) |
Aug
(5) |
Sep
(6) |
Oct
|
Nov
(3) |
Dec
(1) |
2013 |
Jan
(11) |
Feb
(7) |
Mar
(1) |
Apr
(14) |
May
(8) |
Jun
|
Jul
(4) |
Aug
(8) |
Sep
(14) |
Oct
(1) |
Nov
(8) |
Dec
(2) |
2014 |
Jan
(2) |
Feb
(1) |
Mar
(10) |
Apr
(4) |
May
(8) |
Jun
|
Jul
(2) |
Aug
|
Sep
(5) |
Oct
(3) |
Nov
|
Dec
(1) |
2015 |
Jan
(1) |
Feb
(3) |
Mar
(4) |
Apr
(3) |
May
(5) |
Jun
(10) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: Doutriaux, C. <dou...@ll...> - 2022-10-26 16:03:52
|
Dileepkumar, Most likely you are using a version of vcs built with the mesa library, this is designed for system with no displays or for batch mode. C. From: own...@li... <own...@li...> On Behalf Of dil...@GM... Sent: Tuesday, October 25, 2022 12:45 PM To: cda...@li...; cdat-support <cda...@ll...>; cdat-support <cda...@ll...> Subject: VCS display window not popping up Dear All, When I plot using VCS, the display is not popping up, so I cannot do the data sanity check. I used the following command >>>Import VCS, cdms2 >>> f=cdms2.open("MyData.nc") >>>d=f('myVariabile') >>>v=vcs.init() >>>v.plot(d) <vcs.displayplot.Dp object at 0x7f6b3a40c110> I can save the plot as png or pdf, but the only issue with this pop-up plot window is not working. I really appreciate any help you can provide. Sincerely, Dileepkumar R |
From: Doutriaux, C. <dou...@ll...> - 2022-01-05 02:39:42
|
Hi Ken, I would use cdscan to make all the files look like one big file (something like: cdscan -x big.xlm *.nc) Then open that file and loop through lat/lon as you want. C. From: Ken Caldeira <kca...@ca...> Sent: Tuesday, January 4, 2022 5:23 PM To: cdat-discussion <cda...@li...> Cc: Lei Duan <le...@ca...> Subject: [Cdat-discussion] How to transpose lat, lon, time variables across a suite of netcdf files to time, lat lon? Hi, We have a problem where we need to loop by latitude and longitude and then process all time periods for that grid cell, but the database is organized so time is spread across many files. Is there a way to transpose a variable contained in a set of netcdf files and write it out into another set of netcdf files such that all time periods for one variable and one grid cell are contained in a single netcdf file? Thanks in advance for your help. Best, Ken Ken Caldeira Senior Scientist (Emeritus) Carnegie Institution for Science Dept of Global Ecology 260 Panama St, Stanford CA 94305 USA +1 650 704 7212 kca...@ca...<mailto:kca...@ca...> https://dge.carnegiescience.edu/labs/caldeira-lab<https://urldefense.us/v3/__https:/dge.carnegiescience.edu/labs/caldeira-lab__;!!G2kpM7uM-TzIFchu!jUqj_e-B9eAD70kIbJiJIpdQWootFckMGpjCw3b9CC-YO41mdF0wr5InSANrfMICAPM$> Senior Scientist, Breakthrough Energy: https://www.breakthroughenergy.org/team/bios/ken-caldeira<https://urldefense.us/v3/__https:/www.breakthroughenergy.org/team/bios/ken-caldeira__;!!G2kpM7uM-TzIFchu!jUqj_e-B9eAD70kIbJiJIpdQWootFckMGpjCw3b9CC-YO41mdF0wr5InSANrkYvF8PQ$> https://www.reuters.com/investigates/special-report/climate-change-scientists-caldeira/<https://urldefense.us/v3/__https:/www.reuters.com/investigates/special-report/climate-change-scientists-caldeira/__;!!G2kpM7uM-TzIFchu!jUqj_e-B9eAD70kIbJiJIpdQWootFckMGpjCw3b9CC-YO41mdF0wr5InSANrPsQEbyk$> |
From: Ken C. <kca...@ca...> - 2022-01-05 01:23:51
|
Hi, We have a problem where we need to loop by latitude and longitude and then process all time periods for that grid cell, but the database is organized so time is spread across many files. Is there a way to transpose a variable contained in a set of netcdf files and write it out into another set of netcdf files such that all time periods for one variable and one grid cell are contained in a single netcdf file? Thanks in advance for your help. Best, Ken *Ken Caldeira* *Senior Scientist (Emeritus)* *Carnegie Institution for Science* Dept of Global Ecology 260 Panama St, Stanford CA 94305 USA +1 650 704 7212 kca...@ca... https://dge.carnegiescience.edu/labs/caldeira-lab Senior Scientist, Breakthrough Energy: https://www.breakthroughenergy.org/team/bios/ken-caldeira https://www.reuters.com/investigates/special-report/climate-change-scientists-caldeira/ |
From: Maryam T. <Mar...@um...> - 2020-06-26 07:27:27
|
Hi All, I'm new in CDAT. I have a textfile, including a list of disorder dates(Y.M.D). Now I wanna plot average of OLR ( 'olr.day.mean.nc') variable for these dates. May somebody help me with that? |
From: Doutriaux, C. <dou...@ll...> - 2020-05-19 22:32:23
|
I believe there’s a vcsaddons for this. https://github.com/CDAT/vcsaddons/blob/master/tests/test_yxvsxfill_00.py From: own...@li... <own...@li...> On Behalf Of Dileepkumar R Sent: Tuesday, May 19, 2020 3:00 PM To: CDA...@li... Cc: cda...@li... Subject: Shade the area under a curve in VCS Dear All, I want to shade the area under a curve in VCS (The line plot sample attached). Thank you in advance [cid:image002.png@01D62DF2.A0DE3120] Dileepkumar R Postdoctoral Researcher, Interdisciplinary Centre for Water Research (ICWaR), Indian Institute of Sciences, Bangalore, 560012 Mob: 9953035600, skype id: dileepkunjaai ________________________________ To unsubscribe from the CDAT-SUPPORT list, click the following link: http://listserv.llnl.gov/SCRIPTS/wa.exe?SUBED1=CDAT-SUPPORT&A=1 |
From: Doutriaux, C. <dou...@ll...> - 2017-03-27 15:24:12
|
Hello, I highly recommend any PyData conf. See bellow for Seattle PyData info ***Please notify sav...@nu... for any promotional codes or questions We offer 15% off all tickets (excluding academic rates) for meetups and local python groups ________________________________ Meetup Announcement: We are pleased to announce PyData Seattle 2017, taking place July 5-7 at Microsoft Headquarters in Redmond, WA. After a very successful conference in 2015, we are back for our largest PyData of 2017 and we would like to invite [meetup/group name] members to participate! - Submit a talk/tutorial proposal here: https://pydata.org/seattle2017/cfp/ - Register for the conference here: [promotional code?] https://www.eventbrite.com/e/pydata-seattle-2017-tickets-33165940220 - Be a Diversity Panelist: contact Elo at elo...@gm...<mailto:elo...@gm...> PyData<http://www.pydata.org/> is an international conference series that brings together both users and developers of data analysis tools to share ideas and learn from each other. The goals are to provide data science enthusiasts, across various domains, a place to discuss how best to apply languages and tools to the challenges of data management, processing, analytics, and visualization. PyData is organized by—and all proceeds benefit—NumFOCUS<http://www.numfocus.org/>, a US 501(c)(3) public charity. Proceeds are used for the continued development of open-source tools used by data scientists and the advancement of the NumFOCUS mission to promote sustainable high-level programming languages, open code development, and reproducible scientific research. Follow us on twitter @PyData<https://twitter.com/PyData> Email us at ad...@py...<mailto:ad...@py...> if you have questions. Hope to see you there! |
From: Arulalan T <aru...@gm...> - 2017-01-02 05:18:56
|
Dear Souleymane, All you need to do is just cdscan all your nc files. cdscan -x out.xml *.nc Then you can access this out.xml file via cdms2.open command. cdscan command might be located in your cdat installation path. Arulalan.T On 2 January 2017 at 03:52, Fall, Souleymane <fa...@my...> wrote: > Hello, > > > > First of all, Happy New Year! > > > > I have 60 netcdf files with the same dimensions. > > Each file represents one year of daily data (e.g. tmin_1951.nc; tmin_1952. > nc; tmin_1953.nc …) and has the following dimensions: 365 (or 366 for > leap years), 48, 38. > > I would like to combine all 60 files into a single one. > > > Please note: I am still using a relatively old (and nice) version of CDAT: > 5.2.0 > > > Thanks for your help on this. > > Best regards. > > > > > > > > > > > > > > *Dr. Souleymane FallAssistant ProfessorCollege of Agriculture, Environment > and Nutrition SciencesGeospatial and Climate Change CenterTuskegee > University201 Marie Starke Harper HallTuskegee Institute, AL 36088Office: > 334-727-8543 <(334)%20727-8543>* > > > > *Cell: 334-552-0850 <(334)%20552-0850>fa...@my... > <fa...@my...>* > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Cdat-discussion mailing list > Cda...@li... > https://lists.sourceforge.net/lists/listinfo/cdat-discussion > > -- Regards, Arulalan.T Project Scientist - C National Centre for Medium Range Weather Forecasting MoES, India My Experiments In Gnu/Linux ! : http://tuxcoder.wordpress.com |
From: Fall, S. <fa...@my...> - 2017-01-01 22:22:56
|
Hello, First of all, Happy New Year! I have 60 netcdf files with the same dimensions. Each file represents one year of daily data (e.g. tmin_1951.nc; tmin_1952.nc ; tmin_1953.nc …) and has the following dimensions: 365 (or 366 for leap years), 48, 38. I would like to combine all 60 files into a single one. Please note: I am still using a relatively old (and nice) version of CDAT: 5.2.0 Thanks for your help on this. Best regards. *Dr. Souleymane FallAssistant ProfessorCollege of Agriculture, Environment and Nutrition SciencesGeospatial and Climate Change CenterTuskegee University201 Marie Starke Harper HallTuskegee Institute, AL 36088Office: 334-727-8543* *Cell: 334...@my... <fa...@my...>* |
From: Fall, S. <fa...@my...> - 2017-01-01 07:06:39
|
Hello, First of all, Happy New Year! I have 60 netcdf files with the same dimensions. Each file represents one year of daily data (e.g. tmin_1951.nc; tmin_1952.nc; tmin_1953.nc …) and has the following dimensions: 365 (or 366 for leap years), 48, 38. I would like to combine all 60 files into a single one. Please note: I am still using a relatively old (and nice) version of CDAT: 5.2.0 [image: Inline image 1] I have attached one file as an example. Thanks for your help on this. Best regards. *Dr. Souleymane FallAssistant ProfessorCollege of Agriculture, Environment and Nutrition SciencesGeospatial and Climate Change CenterTuskegee University201 Marie Starke Harper HallTuskegee Institute, AL 36088Office: 334-727-8543* *Cell: 334...@my... <fa...@my...>* |
From: Jean-Yves P. <Jea...@ls...> - 2016-02-13 11:19:48
|
On 13/02/2016 07:54, Fall, Souleymane wrote: > I am still using the old nice CDAT! Wow, 2009, that's old > I have netcdf files that span 1981-2009 at annual time step. > > One example: a netdcf representing consecutive dry days: variable: cdd > (29,54,94). > > From this file, I want to create a new netcdf that represents the sum > for each gridpoint. VCDAT has plenty of functions including Mean, > Variance, StDev ..., but not Sum. can you try import MV2 cdd_sum = MV2.sum(cdd, axis=0) This is available in a 2011 CDAT version. I have older binaries, but I can't get them to work easily If your 2009 version is still based on Numeric instead of numpy, just use 'MV' instead of MV2 You should consider moving to a more recent version. At least the old 1.5.1 version! JY -- ``` (o o) +-------------oOO--(_)--OOo-------------------------------------------+ | Jean-Yves Peterschmitt | | Laboratoire des Sciences du Climat et de l'Environnement (LSCE) | | UMR CEA-CNRS 1572 | | LSCE/DSM - CEA Saclay - L'Orme des Merisiers - Bat 701 | | 91191 Gif-sur-Yvette - FRANCE | +---------------------------------------------------------------------+ | jea...@ls... | | Tel (33.1) 69.08.77.19 Fax (33.1) 69.08.77.16 | +---------------------------------------------------------------------+ |
From: Fall, S. <fa...@my...> - 2016-02-13 07:17:18
|
Hi Al, I am still using the old nice CDAT! I have netcdf files that span 1981-2009 at annual time step. One example: a netdcf representing consecutive dry days: variable: cdd (29,54,94). >From this file, I want to create a new netcdf that represents the sum for each gridpoint. VCDAT has plenty of functions including Mean, Variance, StDev ..., but not Sum. Can you please help on this? Thanks! *Dr. Souleymane FallAssistant ProfessorCollege of Agriculture, Environment and Nutrition SciencesTuskegee University201 Marie Starke Harper HallTuskegee Institute, AL 360...@my... <fa...@my...>* |
From: Jean-Yves P. <Jea...@ls...> - 2015-06-19 09:07:39
|
[ If you have received this mail through the out-of-date "cdat-discussion" list instead of "uvcdat-support", please subscribe to "uvcdat-support"! http://uvcdat.llnl.gov/contact.html ] Dear all, I have just added some Questions & Answers to the UV-CDAT askbot, and it seems that this nice tool is not being used as much as it should http://askbot-uvcdat.llnl.gov/questions/ So please, visit it, register and start using it There is a question about "What should go where" at the following link http://askbot-uvcdat.llnl.gov/question/5616/ If something does not work on this askbot, report it to https://github.com/UV-CDAT/askbot-devel/issues JY -- ``` (o o) +-------------oOO--(_)--OOo--------------------------------------+ | Jean-Yves Peterschmitt | | Laboratoire des Sciences du Climat et de l'Environnement | | LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ, UMR 8212 | | LSCE/DSM - CEA Saclay - L'Orme des Merisiers - Bat 701 | | 91191 Gif-sur-Yvette - FRANCE | +----------------------------------------------------------------+ | Jea...@ls... | | Tel (33.1) 69.08.77.19 Fax (33.1) 69.08.77.16 | +----------------------------------------------------------------+ |
From: Doutriaux, C. <dou...@ll...> - 2015-06-15 17:45:56
|
Yes it was kind of a bug. I filled a bug report for it at: https://github.com/UV-CDAT/uvcdat/issues/1391 On 06/15/2015 09:51 AM, sudipta sarkar wrote: Hi Charles That indeed fixed it. Thanks for pointing this out. So this was some sort of a bug in CDAT then? On Mon, Jun 15, 2015 at 9:59 AM, Doutriaux, Charles <dou...@ll...<mailto:dou...@ll...>> wrote: Hi Sudipta, >From the trace you sent in another email, I suspect you're passing a file variable. I need to fix this (I will try this to confirm) IN the mean time in order to fix this please try: o3tor_anom = cdutil.ANNUALCYCLE.departures(o3tor()) Note the parenthesis after o3tor() that should convert from file variable to in memory variable. C. On 06/13/2015 01:30 PM, sudipta sarkar wrote: Sorry I meant "cdutil.ANNUALCYCLE.departures" function. What I am trying to do is quite simple: >>> o3tor_anom = cdutil.ANNUALCYCLE.departures(o3tor) this is where I get the error. Here is the complete error stack: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", line 1303, in departures u=self.month_fix(slab) File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", line 1257, in month_fix t.toRelativeTime("months since "+str(tc)) File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", line 852, in toRelativeTime self[i]=tmp2 File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", line 1903, in __setitem__ return apply(self._obj_.setitem,(index,numpy.ma.filled(value))) IOError: cdunif: write access to read-only file The complete info for the "o3tor" variable is given below, just in case you think there is something wrong with the variable: o3tor.info<http://o3tor.info>() *** Description of Slab variable_2 *** id: variable_2 shape: (123, 120, 288) filename: /Users/ssarkar1/data/RP_work/TOC/Aura_MLS_TropO3_Col_monthly.nc missing_value: [999999] comments: grid_name: grid_120x288 grid_type: None time_statistic: long_name: units: Grid has Python id 0x11376a790. Gridtype: generic Grid shape: (120, 288) Order: yx ** Dimension 1 ** id: time Designated a time axis. units: months since 2004-10 Length: 123 First: 0 Last: 122 Other axis attributes: calendar: gregorian axis: T Python id: 0x11376a6d0 ** Dimension 2 ** id: latitude Designated a latitude axis. units: degrees_north Length: 120 First: -59.5 Last: 59.5 Other axis attributes: axis: Y Python id: 0x11375ac50 ** Dimension 3 ** id: longitude Designated a longitude axis. units: degrees_east Length: 288 First: -179.375 Last: 179.375 Other axis attributes: topology: circular modulo: [ 360.] axis: X Python id: 0x11376a610 *** End of description for variable_2 *** BTW this same command works in another setup where I have the cat-lite with complete anaconda stack of tools. But gives me this error when trying to run from CDAT. On Sat, Jun 13, 2015 at 2:56 PM, Rajeev S Kurup <raj...@gm...<mailto:raj...@gm...>> wrote: Hi Sudipta Sarkar; That error message does not seem to be coming from cdutil.ANNUALCYCLE.departures function. There is no cdutil.CLIMATOLOGY.departures function too Could you post the whole error message or the script part where you get this error ? On Sun, Jun 14, 2015 at 12:05 AM, sudipta sarkar <sdp...@gm...<mailto:sdp...@gm...>> wrote: Hi Arulalan I am not trying to write to any file. All I am trying to do is to call the "cdutil.CLIMATOLOGY.departures" function and I get this error. I am not sure if the function internally tries to write to a location that is not accessible as a non root. On Sat, Jun 13, 2015 at 12:16 PM, Arulalan T <aru...@gm...<mailto:aru...@gm...>> wrote: Dear Sudipta Sarkar, On 13 June 2015 at 20:25, sudipta sarkar <sdp...@gm...<mailto:sdp...@gm...>> wrote: Hi All, I installed CDAT in its usual location under /usr/local as root but now I am trying to use CDAT as a non-root user. When I do that I get this error when trying to use the command "cdutil.ANNUALCYCLE.departures". The error that I get is: "IOError: cdunif: write access to read-only file" You can access CDAT as normal user. In fact it will be accessible by all users if it has installed in the path /usr/local. Your IO error says that you do not have write access. I guess you are trying to write the variable to netcdf out file. You make sure that you have write access in location (directory) where the outfile is specified. Also I would suggest you to join & post queries in UV-CDAT mailing list. http://uvcdat.llnl.gov/mailing-list.html So does this error have anything to do with user privilege and access issues? Can I only run CDAT as root? If this has nothing to do with access permission issues then please let me know what may be causing this? Thanks ------------------------------------------------------------------------------ _______________________________________________ Cdat-discussion mailing list Cda...@li...<mailto:Cda...@li...> https://lists.sourceforge.net/lists/listinfo/cdat-discussion -- Regards, Arulalan.T Project Associate Centre for Atmospheric Sciences Indian Institute of Technology Delhi My Experiments In Gnu/Linux ! : http://tuxcoder.wordpress.com ------------------------------------------------------------------------------ _______________________________________________ Cdat-discussion mailing list Cda...@li...<mailto:Cda...@li...> https://lists.sourceforge.net/lists/listinfo/cdat-discussion -- Rajeev S Kurup Research Scholar Center for Atmospheric Sciences IIT Delhi Hauz Khas New Delhi email; raj...@gm...<mailto:raj...@gm...> Ph: 08802650783 |
From: sudipta s. <sdp...@gm...> - 2015-06-15 15:46:29
|
Hi Charles That indeed fixed it. Thanks for pointing this out. So this was some sort of a bug in CDAT then? On Mon, Jun 15, 2015 at 9:59 AM, Doutriaux, Charles <dou...@ll...> wrote: > Hi Sudipta, > > From the trace you sent in another email, I suspect you're passing a file > variable. > > I need to fix this (I will try this to confirm) > > IN the mean time in order to fix this please try: > > > *o3tor_anom = cdutil.ANNUALCYCLE.departures(o3tor()) *Note the > parenthesis after o3tor() that should convert from file variable to in > memory variable. > > C. > > > > > > On 06/13/2015 01:30 PM, sudipta sarkar wrote: > > Sorry I meant "cdutil.ANNUALCYCLE.departures" function. > What I am trying to do is quite simple: > > *>>> o3tor_anom = cdutil.ANNUALCYCLE.departures(o3tor) this is where I get > the error. * > > > Here is the complete error stack: > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > File > "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", > line 1303, in departures > > u=self.month_fix(slab) > > File > "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", > line 1257, in month_fix > > t.toRelativeTime("months since "+str(tc)) > > File > "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", > line 852, in toRelativeTime > > self[i]=tmp2 > > File > "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", > line 1903, in __setitem__ > > return apply(self._obj_.setitem,(index,numpy.ma.filled(value))) > > IOError: cdunif: write access to read-only file > > > The complete info for the "o3tor" variable is given below, just in case > you think there is something wrong with the variable: > > > o3tor.info() > > *** Description of Slab variable_2 *** > > id: variable_2 > > shape: (123, 120, 288) > > filename: /Users/ssarkar1/data/RP_work/TOC/Aura_MLS_TropO3_Col_monthly.nc > > missing_value: [999999] > > comments: > > grid_name: grid_120x288 > > grid_type: None > > time_statistic: > > long_name: > > units: > > Grid has Python id 0x11376a790. > > Gridtype: generic > > Grid shape: (120, 288) > > Order: yx > > ** Dimension 1 ** > > id: time > > Designated a time axis. > > units: months since 2004-10 > > Length: 123 > > First: 0 > > Last: 122 > > Other axis attributes: > > calendar: gregorian > > axis: T > > Python id: 0x11376a6d0 > > ** Dimension 2 ** > > id: latitude > > Designated a latitude axis. > > units: degrees_north > > Length: 120 > > First: -59.5 > > Last: 59.5 > > Other axis attributes: > > axis: Y > > Python id: 0x11375ac50 > > ** Dimension 3 ** > > id: longitude > > Designated a longitude axis. > > units: degrees_east > > Length: 288 > > First: -179.375 > > Last: 179.375 > > Other axis attributes: > > topology: circular > > modulo: [ 360.] > > axis: X > > Python id: 0x11376a610 > > *** End of description for variable_2 *** > > > BTW this same command works in another setup where I have the cat-lite > with complete anaconda stack of tools. But gives me this error when trying > to run from CDAT. > > On Sat, Jun 13, 2015 at 2:56 PM, Rajeev S Kurup <raj...@gm...> > wrote: > >> Hi Sudipta Sarkar; >> >> That error message does not seem to be coming from >> cdutil.ANNUALCYCLE.departures function. >> There is no cdutil.CLIMATOLOGY.departures function too >> >> Could you post the whole error message or the script part where you get >> this error ? >> >> On Sun, Jun 14, 2015 at 12:05 AM, sudipta sarkar <sdp...@gm...> >> wrote: >> >>> Hi Arulalan >>> I am not trying to write to any file. All I am trying to do is to call >>> the "cdutil.CLIMATOLOGY.departures" function and I get this error. I am not >>> sure if the function internally tries to write to a location that is not >>> accessible as a non root. >>> >>> >>> On Sat, Jun 13, 2015 at 12:16 PM, Arulalan T <aru...@gm...> >>> wrote: >>> >>>> Dear Sudipta Sarkar, >>>> >>>> On 13 June 2015 at 20:25, sudipta sarkar <sdp...@gm...> wrote: >>>> >>>>> Hi All, >>>>> I installed CDAT in its usual location under /usr/local as root but >>>>> now I am trying to use CDAT as a non-root user. When I do that I get this >>>>> error when trying to use the command "cdutil.ANNUALCYCLE.departures". >>>>> The error that I get is: >>>>> >>>>> "IOError: cdunif: write access to read-only file" >>>>> >>>> >>>> You can access CDAT as normal user. In fact it will be accessible by >>>> all users if it has installed in the path /usr/local. >>>> >>>> Your IO error says that you do not have write access. >>>> I guess you are trying to write the variable to netcdf out file. >>>> You make sure that you have write access in location (directory) >>>> where the outfile is specified. >>>> >>>> Also I would suggest you to join & post queries in UV-CDAT mailing >>>> list. >>>> http://uvcdat.llnl.gov/mailing-list.html >>>> >>>> >>>> >>>> >>>>> >>>>> So does this error have anything to do with user privilege and >>>>> access issues? Can I only run CDAT as root? >>>>> >>>>> If this has nothing to do with access permission issues then please >>>>> let me know what may be causing this? >>>>> >>>>> Thanks >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Cdat-discussion mailing list >>>>> Cda...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Arulalan.T >>>> Project Associate >>>> Centre for Atmospheric Sciences >>>> Indian Institute of Technology Delhi >>>> >>>> My Experiments In Gnu/Linux ! : http://tuxcoder.wordpress.com >>>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Cdat-discussion mailing list >>> Cda...@li... >>> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >>> >>> >> >> >> -- >> Rajeev S Kurup >> Research Scholar >> Center for Atmospheric Sciences >> IIT Delhi >> Hauz Khas >> New Delhi >> email; raj...@gm... >> Ph: 08802650783 >> > > > |
From: Doutriaux, C. <dou...@ll...> - 2015-06-15 14:00:02
|
Hi Sudipta, >From the trace you sent in another email, I suspect you're passing a file variable. I need to fix this (I will try this to confirm) IN the mean time in order to fix this please try: o3tor_anom = cdutil.ANNUALCYCLE.departures(o3tor()) Note the parenthesis after o3tor() that should convert from file variable to in memory variable. C. On 06/13/2015 01:30 PM, sudipta sarkar wrote: Sorry I meant "cdutil.ANNUALCYCLE.departures" function. What I am trying to do is quite simple: >>> o3tor_anom = cdutil.ANNUALCYCLE.departures(o3tor) this is where I get the error. Here is the complete error stack: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", line 1303, in departures u=self.month_fix(slab) File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", line 1257, in month_fix t.toRelativeTime("months since "+str(tc)) File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", line 852, in toRelativeTime self[i]=tmp2 File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", line 1903, in __setitem__ return apply(self._obj_.setitem,(index,numpy.ma.filled(value))) IOError: cdunif: write access to read-only file The complete info for the "o3tor" variable is given below, just in case you think there is something wrong with the variable: o3tor.info<http://o3tor.info>() *** Description of Slab variable_2 *** id: variable_2 shape: (123, 120, 288) filename: /Users/ssarkar1/data/RP_work/TOC/Aura_MLS_TropO3_Col_monthly.nc missing_value: [999999] comments: grid_name: grid_120x288 grid_type: None time_statistic: long_name: units: Grid has Python id 0x11376a790. Gridtype: generic Grid shape: (120, 288) Order: yx ** Dimension 1 ** id: time Designated a time axis. units: months since 2004-10 Length: 123 First: 0 Last: 122 Other axis attributes: calendar: gregorian axis: T Python id: 0x11376a6d0 ** Dimension 2 ** id: latitude Designated a latitude axis. units: degrees_north Length: 120 First: -59.5 Last: 59.5 Other axis attributes: axis: Y Python id: 0x11375ac50 ** Dimension 3 ** id: longitude Designated a longitude axis. units: degrees_east Length: 288 First: -179.375 Last: 179.375 Other axis attributes: topology: circular modulo: [ 360.] axis: X Python id: 0x11376a610 *** End of description for variable_2 *** BTW this same command works in another setup where I have the cat-lite with complete anaconda stack of tools. But gives me this error when trying to run from CDAT. On Sat, Jun 13, 2015 at 2:56 PM, Rajeev S Kurup <raj...@gm...<mailto:raj...@gm...>> wrote: Hi Sudipta Sarkar; That error message does not seem to be coming from cdutil.ANNUALCYCLE.departures function. There is no cdutil.CLIMATOLOGY.departures function too Could you post the whole error message or the script part where you get this error ? On Sun, Jun 14, 2015 at 12:05 AM, sudipta sarkar <sdp...@gm...<mailto:sdp...@gm...>> wrote: Hi Arulalan I am not trying to write to any file. All I am trying to do is to call the "cdutil.CLIMATOLOGY.departures" function and I get this error. I am not sure if the function internally tries to write to a location that is not accessible as a non root. On Sat, Jun 13, 2015 at 12:16 PM, Arulalan T <aru...@gm...<mailto:aru...@gm...>> wrote: Dear Sudipta Sarkar, On 13 June 2015 at 20:25, sudipta sarkar <sdp...@gm...<mailto:sdp...@gm...>> wrote: Hi All, I installed CDAT in its usual location under /usr/local as root but now I am trying to use CDAT as a non-root user. When I do that I get this error when trying to use the command "cdutil.ANNUALCYCLE.departures". The error that I get is: "IOError: cdunif: write access to read-only file" You can access CDAT as normal user. In fact it will be accessible by all users if it has installed in the path /usr/local. Your IO error says that you do not have write access. I guess you are trying to write the variable to netcdf out file. You make sure that you have write access in location (directory) where the outfile is specified. Also I would suggest you to join & post queries in UV-CDAT mailing list. http://uvcdat.llnl.gov/mailing-list.html So does this error have anything to do with user privilege and access issues? Can I only run CDAT as root? If this has nothing to do with access permission issues then please let me know what may be causing this? Thanks ------------------------------------------------------------------------------ _______________________________________________ Cdat-discussion mailing list Cda...@li...<mailto:Cda...@li...> https://lists.sourceforge.net/lists/listinfo/cdat-discussion -- Regards, Arulalan.T Project Associate Centre for Atmospheric Sciences Indian Institute of Technology Delhi My Experiments In Gnu/Linux ! : http://tuxcoder.wordpress.com ------------------------------------------------------------------------------ _______________________________________________ Cdat-discussion mailing list Cda...@li...<mailto:Cda...@li...> https://lists.sourceforge.net/lists/listinfo/cdat-discussion -- Rajeev S Kurup Research Scholar Center for Atmospheric Sciences IIT Delhi Hauz Khas New Delhi email; raj...@gm...<mailto:raj...@gm...> Ph: 08802650783 |
From: Hayes, W. <bh...@ca...> - 2015-06-13 23:25:57
|
FYI, I tried your command >>> x = cdutil.ANNUALCYCLE.departures(v) and it works for me using cdat in UVCDAT 2.2.0 under Ubuntu 2.2.0 and also UVCDAT 1.5.0-rc5 under Ubuntu 13.10. Bill Hayes On Sat, Jun 13, 2015 at 1:28 PM, sudipta sarkar <sdp...@gm...> wrote: > Sorry I meant "cdutil.ANNUALCYCLE.departures" function. > What I am trying to do is quite simple: > > *>>> o3tor_anom = cdutil.ANNUALCYCLE.departures(o3tor) this is where I get > the error. * > > > Here is the complete error stack: > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > File > "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", > line 1303, in departures > > u=self.month_fix(slab) > > File > "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", > line 1257, in month_fix > > t.toRelativeTime("months since "+str(tc)) > > File > "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", > line 852, in toRelativeTime > > self[i]=tmp2 > > File > "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", > line 1903, in __setitem__ > > return apply(self._obj_.setitem,(index,numpy.ma.filled(value))) > > IOError: cdunif: write access to read-only file > > > The complete info for the "o3tor" variable is given below, just in case > you think there is something wrong with the variable: > > > o3tor.info() > > *** Description of Slab variable_2 *** > > id: variable_2 > > shape: (123, 120, 288) > > filename: /Users/ssarkar1/data/RP_work/TOC/Aura_MLS_TropO3_Col_monthly.nc > > missing_value: [999999] > > comments: > > grid_name: grid_120x288 > > grid_type: None > > time_statistic: > > long_name: > > units: > > Grid has Python id 0x11376a790. > > Gridtype: generic > > Grid shape: (120, 288) > > Order: yx > > ** Dimension 1 ** > > id: time > > Designated a time axis. > > units: months since 2004-10 > > Length: 123 > > First: 0 > > Last: 122 > > Other axis attributes: > > calendar: gregorian > > axis: T > > Python id: 0x11376a6d0 > > ** Dimension 2 ** > > id: latitude > > Designated a latitude axis. > > units: degrees_north > > Length: 120 > > First: -59.5 > > Last: 59.5 > > Other axis attributes: > > axis: Y > > Python id: 0x11375ac50 > > ** Dimension 3 ** > > id: longitude > > Designated a longitude axis. > > units: degrees_east > > Length: 288 > > First: -179.375 > > Last: 179.375 > > Other axis attributes: > > topology: circular > > modulo: [ 360.] > > axis: X > > Python id: 0x11376a610 > > *** End of description for variable_2 *** > > > BTW this same command works in another setup where I have the cat-lite > with complete anaconda stack of tools. But gives me this error when trying > to run from CDAT. > > On Sat, Jun 13, 2015 at 2:56 PM, Rajeev S Kurup <raj...@gm...> > wrote: > >> Hi Sudipta Sarkar; >> >> That error message does not seem to be coming from >> cdutil.ANNUALCYCLE.departures function. >> There is no cdutil.CLIMATOLOGY.departures function too >> >> Could you post the whole error message or the script part where you get >> this error ? >> >> On Sun, Jun 14, 2015 at 12:05 AM, sudipta sarkar <sdp...@gm...> >> wrote: >> >>> Hi Arulalan >>> I am not trying to write to any file. All I am trying to do is to call >>> the "cdutil.CLIMATOLOGY.departures" function and I get this error. I am not >>> sure if the function internally tries to write to a location that is not >>> accessible as a non root. >>> >>> >>> On Sat, Jun 13, 2015 at 12:16 PM, Arulalan T <aru...@gm...> >>> wrote: >>> >>>> Dear Sudipta Sarkar, >>>> >>>> On 13 June 2015 at 20:25, sudipta sarkar <sdp...@gm...> wrote: >>>> >>>>> Hi All, >>>>> I installed CDAT in its usual location under /usr/local as root but >>>>> now I am trying to use CDAT as a non-root user. When I do that I get this >>>>> error when trying to use the command "cdutil.ANNUALCYCLE.departures". >>>>> The error that I get is: >>>>> >>>>> "IOError: cdunif: write access to read-only file" >>>>> >>>> >>>> You can access CDAT as normal user. In fact it will be accessible by >>>> all users if it has installed in the path /usr/local. >>>> >>>> Your IO error says that you do not have write access. >>>> I guess you are trying to write the variable to netcdf out file. >>>> You make sure that you have write access in location (directory) where >>>> the outfile is specified. >>>> >>>> Also I would suggest you to join & post queries in UV-CDAT mailing list. >>>> http://uvcdat.llnl.gov/mailing-list.html >>>> >>>> >>>> >>>> >>>>> >>>>> So does this error have anything to do with user privilege and access >>>>> issues? Can I only run CDAT as root? >>>>> >>>>> If this has nothing to do with access permission issues then please >>>>> let me know what may be causing this? >>>>> >>>>> Thanks >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Cdat-discussion mailing list >>>>> Cda...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Arulalan.T >>>> Project Associate >>>> Centre for Atmospheric Sciences >>>> Indian Institute of Technology Delhi >>>> >>>> My Experiments In Gnu/Linux ! : http://tuxcoder.wordpress.com >>>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Cdat-discussion mailing list >>> Cda...@li... >>> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >>> >>> >> >> >> -- >> Rajeev S Kurup >> Research Scholar >> Center for Atmospheric Sciences >> IIT Delhi >> Hauz Khas >> New Delhi >> email; raj...@gm... >> Ph: 08802650783 >> > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cdat-discussion mailing list > Cda...@li... > https://lists.sourceforge.net/lists/listinfo/cdat-discussion > > |
From: sudipta s. <sdp...@gm...> - 2015-06-13 20:28:38
|
Sorry I meant "cdutil.ANNUALCYCLE.departures" function. What I am trying to do is quite simple: *>>> o3tor_anom = cdutil.ANNUALCYCLE.departures(o3tor) this is where I get the error. * Here is the complete error stack: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", line 1303, in departures u=self.month_fix(slab) File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", line 1257, in month_fix t.toRelativeTime("months since "+str(tc)) File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", line 852, in toRelativeTime self[i]=tmp2 File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", line 1903, in __setitem__ return apply(self._obj_.setitem,(index,numpy.ma.filled(value))) IOError: cdunif: write access to read-only file The complete info for the "o3tor" variable is given below, just in case you think there is something wrong with the variable: o3tor.info() *** Description of Slab variable_2 *** id: variable_2 shape: (123, 120, 288) filename: /Users/ssarkar1/data/RP_work/TOC/Aura_MLS_TropO3_Col_monthly.nc missing_value: [999999] comments: grid_name: grid_120x288 grid_type: None time_statistic: long_name: units: Grid has Python id 0x11376a790. Gridtype: generic Grid shape: (120, 288) Order: yx ** Dimension 1 ** id: time Designated a time axis. units: months since 2004-10 Length: 123 First: 0 Last: 122 Other axis attributes: calendar: gregorian axis: T Python id: 0x11376a6d0 ** Dimension 2 ** id: latitude Designated a latitude axis. units: degrees_north Length: 120 First: -59.5 Last: 59.5 Other axis attributes: axis: Y Python id: 0x11375ac50 ** Dimension 3 ** id: longitude Designated a longitude axis. units: degrees_east Length: 288 First: -179.375 Last: 179.375 Other axis attributes: topology: circular modulo: [ 360.] axis: X Python id: 0x11376a610 *** End of description for variable_2 *** BTW this same command works in another setup where I have the cat-lite with complete anaconda stack of tools. But gives me this error when trying to run from CDAT. On Sat, Jun 13, 2015 at 2:56 PM, Rajeev S Kurup <raj...@gm...> wrote: > Hi Sudipta Sarkar; > > That error message does not seem to be coming from > cdutil.ANNUALCYCLE.departures function. > There is no cdutil.CLIMATOLOGY.departures function too > > Could you post the whole error message or the script part where you get > this error ? > > On Sun, Jun 14, 2015 at 12:05 AM, sudipta sarkar <sdp...@gm...> > wrote: > >> Hi Arulalan >> I am not trying to write to any file. All I am trying to do is to call >> the "cdutil.CLIMATOLOGY.departures" function and I get this error. I am not >> sure if the function internally tries to write to a location that is not >> accessible as a non root. >> >> >> On Sat, Jun 13, 2015 at 12:16 PM, Arulalan T <aru...@gm...> wrote: >> >>> Dear Sudipta Sarkar, >>> >>> On 13 June 2015 at 20:25, sudipta sarkar <sdp...@gm...> wrote: >>> >>>> Hi All, >>>> I installed CDAT in its usual location under /usr/local as root but now >>>> I am trying to use CDAT as a non-root user. When I do that I get this error >>>> when trying to use the command "cdutil.ANNUALCYCLE.departures". The >>>> error that I get is: >>>> >>>> "IOError: cdunif: write access to read-only file" >>>> >>> >>> You can access CDAT as normal user. In fact it will be accessible by all >>> users if it has installed in the path /usr/local. >>> >>> Your IO error says that you do not have write access. >>> I guess you are trying to write the variable to netcdf out file. >>> You make sure that you have write access in location (directory) where >>> the outfile is specified. >>> >>> Also I would suggest you to join & post queries in UV-CDAT mailing list. >>> http://uvcdat.llnl.gov/mailing-list.html >>> >>> >>> >>> >>>> >>>> So does this error have anything to do with user privilege and access >>>> issues? Can I only run CDAT as root? >>>> >>>> If this has nothing to do with access permission issues then please let >>>> me know what may be causing this? >>>> >>>> Thanks >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Cdat-discussion mailing list >>>> Cda...@li... >>>> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >>>> >>>> >>> >>> >>> -- >>> Regards, >>> Arulalan.T >>> Project Associate >>> Centre for Atmospheric Sciences >>> Indian Institute of Technology Delhi >>> >>> My Experiments In Gnu/Linux ! : http://tuxcoder.wordpress.com >>> >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cdat-discussion mailing list >> Cda...@li... >> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >> >> > > > -- > Rajeev S Kurup > Research Scholar > Center for Atmospheric Sciences > IIT Delhi > Hauz Khas > New Delhi > email; raj...@gm... > Ph: 08802650783 > |
From: Rajeev S K. <raj...@gm...> - 2015-06-13 18:56:54
|
Hi Sudipta Sarkar; That error message does not seem to be coming from cdutil.ANNUALCYCLE.departures function. There is no cdutil.CLIMATOLOGY.departures function too Could you post the whole error message or the script part where you get this error ? On Sun, Jun 14, 2015 at 12:05 AM, sudipta sarkar <sdp...@gm...> wrote: > Hi Arulalan > I am not trying to write to any file. All I am trying to do is to call the > "cdutil.CLIMATOLOGY.departures" function and I get this error. I am not > sure if the function internally tries to write to a location that is not > accessible as a non root. > > > On Sat, Jun 13, 2015 at 12:16 PM, Arulalan T <aru...@gm...> wrote: > >> Dear Sudipta Sarkar, >> >> On 13 June 2015 at 20:25, sudipta sarkar <sdp...@gm...> wrote: >> >>> Hi All, >>> I installed CDAT in its usual location under /usr/local as root but now >>> I am trying to use CDAT as a non-root user. When I do that I get this error >>> when trying to use the command "cdutil.ANNUALCYCLE.departures". The >>> error that I get is: >>> >>> "IOError: cdunif: write access to read-only file" >>> >> >> You can access CDAT as normal user. In fact it will be accessible by all >> users if it has installed in the path /usr/local. >> >> Your IO error says that you do not have write access. >> I guess you are trying to write the variable to netcdf out file. >> You make sure that you have write access in location (directory) where >> the outfile is specified. >> >> Also I would suggest you to join & post queries in UV-CDAT mailing list. >> http://uvcdat.llnl.gov/mailing-list.html >> >> >> >> >>> >>> So does this error have anything to do with user privilege and access >>> issues? Can I only run CDAT as root? >>> >>> If this has nothing to do with access permission issues then please let >>> me know what may be causing this? >>> >>> Thanks >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Cdat-discussion mailing list >>> Cda...@li... >>> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >>> >>> >> >> >> -- >> Regards, >> Arulalan.T >> Project Associate >> Centre for Atmospheric Sciences >> Indian Institute of Technology Delhi >> >> My Experiments In Gnu/Linux ! : http://tuxcoder.wordpress.com >> > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cdat-discussion mailing list > Cda...@li... > https://lists.sourceforge.net/lists/listinfo/cdat-discussion > > -- Rajeev S Kurup Research Scholar Center for Atmospheric Sciences IIT Delhi Hauz Khas New Delhi email; raj...@gm... Ph: 08802650783 |
From: sudipta s. <sdp...@gm...> - 2015-06-13 18:35:21
|
Hi Arulalan I am not trying to write to any file. All I am trying to do is to call the "cdutil.CLIMATOLOGY.departures" function and I get this error. I am not sure if the function internally tries to write to a location that is not accessible as a non root. On Sat, Jun 13, 2015 at 12:16 PM, Arulalan T <aru...@gm...> wrote: > Dear Sudipta Sarkar, > > On 13 June 2015 at 20:25, sudipta sarkar <sdp...@gm...> wrote: > >> Hi All, >> I installed CDAT in its usual location under /usr/local as root but now I >> am trying to use CDAT as a non-root user. When I do that I get this error >> when trying to use the command "cdutil.ANNUALCYCLE.departures". The >> error that I get is: >> >> "IOError: cdunif: write access to read-only file" >> > > You can access CDAT as normal user. In fact it will be accessible by all > users if it has installed in the path /usr/local. > > Your IO error says that you do not have write access. > I guess you are trying to write the variable to netcdf out file. > You make sure that you have write access in location (directory) where the > outfile is specified. > > Also I would suggest you to join & post queries in UV-CDAT mailing list. > http://uvcdat.llnl.gov/mailing-list.html > > > > >> >> So does this error have anything to do with user privilege and access >> issues? Can I only run CDAT as root? >> >> If this has nothing to do with access permission issues then please let >> me know what may be causing this? >> >> Thanks >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cdat-discussion mailing list >> Cda...@li... >> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >> >> > > > -- > Regards, > Arulalan.T > Project Associate > Centre for Atmospheric Sciences > Indian Institute of Technology Delhi > > My Experiments In Gnu/Linux ! : http://tuxcoder.wordpress.com > |
From: Arulalan T <aru...@gm...> - 2015-06-13 16:16:47
|
Dear Sudipta Sarkar, On 13 June 2015 at 20:25, sudipta sarkar <sdp...@gm...> wrote: > Hi All, > I installed CDAT in its usual location under /usr/local as root but now I > am trying to use CDAT as a non-root user. When I do that I get this error > when trying to use the command "cdutil.ANNUALCYCLE.departures". The error > that I get is: > > "IOError: cdunif: write access to read-only file" > You can access CDAT as normal user. In fact it will be accessible by all users if it has installed in the path /usr/local. Your IO error says that you do not have write access. I guess you are trying to write the variable to netcdf out file. You make sure that you have write access in location (directory) where the outfile is specified. Also I would suggest you to join & post queries in UV-CDAT mailing list. http://uvcdat.llnl.gov/mailing-list.html > > So does this error have anything to do with user privilege and access > issues? Can I only run CDAT as root? > > If this has nothing to do with access permission issues then please let me > know what may be causing this? > > Thanks > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cdat-discussion mailing list > Cda...@li... > https://lists.sourceforge.net/lists/listinfo/cdat-discussion > > -- Regards, Arulalan.T Project Associate Centre for Atmospheric Sciences Indian Institute of Technology Delhi My Experiments In Gnu/Linux ! : http://tuxcoder.wordpress.com |
From: sudipta s. <sdp...@gm...> - 2015-06-13 14:55:21
|
Hi All, I installed CDAT in its usual location under /usr/local as root but now I am trying to use CDAT as a non-root user. When I do that I get this error when trying to use the command "cdutil.ANNUALCYCLE.departures". The error that I get is: "IOError: cdunif: write access to read-only file" So does this error have anything to do with user privilege and access issues? Can I only run CDAT as root? If this has nothing to do with access permission issues then please let me know what may be causing this? Thanks |
From: sudipta s. <sdp...@gm...> - 2015-05-23 21:17:15
|
Thanks once more Bill. I did think it was just for user convenience but your comment made it clear for me. Appreciated On Sat, May 23, 2015 at 5:13 PM, Hayes, William <bh...@ca...> wrote: > BTW, I found that some cdms / cdutil fuctions (like .YEAR) > really insist on having > ta.id='time' > and having > ta.units ='days since YYYY-MM-DD' > They are not just for users to read. > > Good luck, > Bill > > > On Sat, May 23, 2015 at 2:09 PM, sudipta sarkar <sdp...@gm...> > wrote: > >> Hi Bill >> Thanks for your answer. >> That is indeed what I was looking for. Thanks a lot!! >> I was aware of the pieces but was just not sure how to put them together. >> Your answer made it very clear. >> Thanks again >> >> >> On Sat, May 23, 2015 at 4:50 PM, Hayes, William < >> bh...@ca...> wrote: >> >>> Hi Sudipta, >>> I've only worked with monthly data, but I believe >>> for your daily data you would do something like: >>> >>> Assuming the number of days was 4000 (you'll have to calculate this): >>> >>> days_list = range(4000) >>> ta = cdms2.createAxis( days_list ) >>> ta.id = 'time' >>> ta.units = 'days since 2004-10-01' >>> var.setAxis(0, ta) >>> cdutil.setTimeBoundsDaily(var, 1 ) # 1 is daily frequency, assumes 1 >>> data pt per day >>> >>> Bill Hayes >>> Carnegie Institute DGE >>> >>> >>> On Sat, May 23, 2015 at 1:10 PM, sudipta sarkar <sdp...@gm...> >>> wrote: >>> >>>> Hi All >>>> I am trying to concatenate several H5 daily data global gridded file >>>> into a single array 3D array (time, lat, long). >>>> >>>> I can define the lat and long axis for this new 3d array. But I am not >>>> sure how to create the time axis for this 3D array. >>>> My start time is 2004-10-01 and end time is 2015-05-20. >>>> >>>> Do I need to create a cdtime time array with these start and end dates >>>> and then define a time axis based on this time array? >>>> >>>> Can someone please show me how. I am not sure how to go about this. >>>> >>>> Thanks >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> One dashboard for servers and applications across Physical-Virtual-Cloud >>>> Widest out-of-the-box monitoring support with 50+ applications >>>> Performance metrics, stats and reports that give you Actionable Insights >>>> Deep dive visibility with transaction tracing using APM Insight. >>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >>>> _______________________________________________ >>>> Cdat-discussion mailing list >>>> Cda...@li... >>>> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >>>> >>>> >>> >> > |
From: Hayes, W. <bh...@ca...> - 2015-05-23 21:14:20
|
Hi Sudipta, I've only worked with monthly data, but I believe for your daily data you would do something like: Assuming the number of days was 4000 (you'll have to calculate this): days_list = range(4000) ta = cdms2.createAxis( days_list ) ta.id = 'time' ta.units = 'days since 2004-10-01' var.setAxis(0, ta) cdutil.setTimeBoundsDaily(var, 1 ) # 1 is daily frequency, assumes 1 data pt per day Bill Hayes Carnegie Institute DGE On Sat, May 23, 2015 at 1:10 PM, sudipta sarkar <sdp...@gm...> wrote: > Hi All > I am trying to concatenate several H5 daily data global gridded file into > a single array 3D array (time, lat, long). > > I can define the lat and long axis for this new 3d array. But I am not > sure how to create the time axis for this 3D array. > My start time is 2004-10-01 and end time is 2015-05-20. > > Do I need to create a cdtime time array with these start and end dates and > then define a time axis based on this time array? > > Can someone please show me how. I am not sure how to go about this. > > Thanks > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Cdat-discussion mailing list > Cda...@li... > https://lists.sourceforge.net/lists/listinfo/cdat-discussion > > |
From: Hayes, W. <bh...@ca...> - 2015-05-23 21:13:11
|
BTW, I found that some cdms / cdutil fuctions (like .YEAR) really insist on having ta.id='time' and having ta.units ='days since YYYY-MM-DD' They are not just for users to read. Good luck, Bill On Sat, May 23, 2015 at 2:09 PM, sudipta sarkar <sdp...@gm...> wrote: > Hi Bill > Thanks for your answer. > That is indeed what I was looking for. Thanks a lot!! > I was aware of the pieces but was just not sure how to put them together. > Your answer made it very clear. > Thanks again > > > On Sat, May 23, 2015 at 4:50 PM, Hayes, William < > bh...@ca...> wrote: > >> Hi Sudipta, >> I've only worked with monthly data, but I believe >> for your daily data you would do something like: >> >> Assuming the number of days was 4000 (you'll have to calculate this): >> >> days_list = range(4000) >> ta = cdms2.createAxis( days_list ) >> ta.id = 'time' >> ta.units = 'days since 2004-10-01' >> var.setAxis(0, ta) >> cdutil.setTimeBoundsDaily(var, 1 ) # 1 is daily frequency, assumes 1 >> data pt per day >> >> Bill Hayes >> Carnegie Institute DGE >> >> >> On Sat, May 23, 2015 at 1:10 PM, sudipta sarkar <sdp...@gm...> >> wrote: >> >>> Hi All >>> I am trying to concatenate several H5 daily data global gridded file >>> into a single array 3D array (time, lat, long). >>> >>> I can define the lat and long axis for this new 3d array. But I am not >>> sure how to create the time axis for this 3D array. >>> My start time is 2004-10-01 and end time is 2015-05-20. >>> >>> Do I need to create a cdtime time array with these start and end dates >>> and then define a time axis based on this time array? >>> >>> Can someone please show me how. I am not sure how to go about this. >>> >>> Thanks >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> One dashboard for servers and applications across Physical-Virtual-Cloud >>> Widest out-of-the-box monitoring support with 50+ applications >>> Performance metrics, stats and reports that give you Actionable Insights >>> Deep dive visibility with transaction tracing using APM Insight. >>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >>> _______________________________________________ >>> Cdat-discussion mailing list >>> Cda...@li... >>> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >>> >>> >> > |
From: sudipta s. <sdp...@gm...> - 2015-05-23 21:10:05
|
Hi Bill Thanks for your answer. That is indeed what I was looking for. Thanks a lot!! I was aware of the pieces but was just not sure how to put them together. Your answer made it very clear. Thanks again On Sat, May 23, 2015 at 4:50 PM, Hayes, William <bh...@ca...> wrote: > Hi Sudipta, > I've only worked with monthly data, but I believe > for your daily data you would do something like: > > Assuming the number of days was 4000 (you'll have to calculate this): > > days_list = range(4000) > ta = cdms2.createAxis( days_list ) > ta.id = 'time' > ta.units = 'days since 2004-10-01' > var.setAxis(0, ta) > cdutil.setTimeBoundsDaily(var, 1 ) # 1 is daily frequency, assumes 1 data > pt per day > > Bill Hayes > Carnegie Institute DGE > > > On Sat, May 23, 2015 at 1:10 PM, sudipta sarkar <sdp...@gm...> > wrote: > >> Hi All >> I am trying to concatenate several H5 daily data global gridded file into >> a single array 3D array (time, lat, long). >> >> I can define the lat and long axis for this new 3d array. But I am not >> sure how to create the time axis for this 3D array. >> My start time is 2004-10-01 and end time is 2015-05-20. >> >> Do I need to create a cdtime time array with these start and end dates >> and then define a time axis based on this time array? >> >> Can someone please show me how. I am not sure how to go about this. >> >> Thanks >> >> >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Cdat-discussion mailing list >> Cda...@li... >> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >> >> > |