Python Pandas

2020-08-21 Thread J Conrado
HI, I'm using Pandas to read my .xls file and I used the command to read it: df = pd.read_excel(filexcel, parse_dates=[0], dayfirst=True) and I had the day, month, year and hour correctly But, if I  run the same script inside a virtual environment, I had this error message:   File "xlst

Python Pandas split Date in day month year and hour

2020-08-19 Thread J Conrado
Hi, I'm satarting using Pandas to read excel. I have a meteorological synoptic data and I have for date: 0   2017-11-01 00:00:00 1   2017-11-01 03:00:00 2   2017-11-01 06:00:00 3   2017-11-01 09:00:00 4   2017-11-01 12:00:00 ..  ... 229 2017-11-30 09:00:00 230 2017-11-30 12

Python pandas Excel

2020-07-17 Thread J Conrado
HI, I have an excel file with several columns, the first day/month,/year and hour: Data 01/11/2017 00:00 01/11/2017 03:00 01/11/2017 06:00 01/11/2017 09:00 01/11/2017 12:00 01/11/2017 15:00 01/11/2017 18:00 01/11/2017 21:00 02/11/2017 00:00 02/11/2017 03:00 02/11/2017 06:00 02/11/

Cartopy error

2020-05-12 Thread J Conrado
Hi, Please, what can I do to solve this error: import cartopy, cartopy.crs as ccrs  # Plot maps   File "/home/conrado/anaconda3/envs/myenv/lib/python3.8/site-packages/cartopy/__init__.py", line 96, in     import cartopy.crs   File "/home/conrado/anaconda3/envs/myenv/lib/python3.8/site-p

naN values

2020-05-04 Thread J Conrado
Hi, I have a 2d array and I would  how can I replace NaN values for example with - value or other value. Thank, Conrado -- https://mail.python.org/mailman/listinfo/python-list

python Netcdf and ncdump

2020-04-30 Thread J Conrado
Hi, I read my netcdf data and I did: print(f) print("f.variables[SST] ",f.variables["SST"]) and I had: f.variables[SST]  int16 SST(y, x)     _FillValue: -1     long_name: ABI L2+ Sea Surface (Skin) Temperature     standard_name: sea_surface_skin_temperature     _Unsigned: true     valid

Install GDAL

2020-04-22 Thread J Conrado
Hi, in my question how to install GDAl, I forgot to write that I want to install GDAL on Linux. Thanks, Conrado -- https://mail.python.org/mailman/listinfo/python-list

Install GDAL

2020-04-22 Thread J Conrado
Hi, I'm trying to install GDAL. I used conda and PIP and I didn't have sucess. I used for pip to insatal GDAL3.0.4: pip install GDAL Collecting GDAL   Using cached GDAL-3.0.4.tar.gz (577 kB) Building wheels for collected packages: GDAL   Building wheel for GDAL (setup.py) ... error   ERR

Get a region from a larger data

2020-04-18 Thread J Conrado
Hi, I have GOES16 full disk data with the dimensions (5424, 5424) and my latitude and longitude arrays have the same dimension. How can I seletct a small  region of this data, using  this limits for lat=[-30,10] and lon = [-90,-30] for my sector. I try to select my region using this limit

kill a window

2020-04-07 Thread J Conrado
Hi, I have a script that read a netcdf data. I enter with keiboard two values for latitude initial an final and same for longitude and I plot a map. I use the command plt.close(1) to kill the window. But, my window is not closed. This is a small par o my script: m = Basemap(llcrnrlon=loni

Python error

2020-04-02 Thread J Conrado
Hi, I have the version of python installed: Python 3.7.6 and Python 3.8.1 If I type: python Python 3.7.6 (default, Jan  8 2020, 19:59:22) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> import numpy it is Ok, no error, but if I di

Python3.8.1 basemap

2020-01-31 Thread J Conrado
Hi, I installed the Python3.8.1 and I run the example of basemap gallery: https://matplotlib.org/basemap/users/examples.html plotgreatcircle.py for Python3.8 plotgreatcircle.py I had: Traceback (most recent call last):   File "plotgreat

Python 3.8.1

2020-01-29 Thread J Conrado
Hi, I installed the Python3.8.1 in my computer. I have other versions 2.6 and  3.7. When I use 2.6 and 3.7 I didn't have problem with: python2 Python 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux2 Type "help", "copyright", "credits" or "license"

mouse position with basemap

2020-01-22 Thread J Conrado
Hi, I have a 3D netcdf file that a read an plot it. I would like to get the values o two points (latitude and longitude) to plot an arbitrary cross section of my 3D data between these two points. How can get these two points using mouse event. Thanks, Conrado -- https://mail.python.or