Any python package that can be used to handle METEOR RADAR data sets? - python-3.x

Is there any existing python package that can be used to handle METEOR RADAR data sets which are in .hwd file format?
I want to work on atmoshpereic science project on tide analysis in the MLT region using python.So, the source of the data is METEOR RADAR which stores data in .hwd file format(height width depth).
I tried searching the internet for specific packages that could help me file handle .hwd files but ended up finding no packages or libraries that are currently active.
Could you please help me?
Thank you.

I figured this out!
There is no need for external packages to work on hwd files in python.
hwd files stand for Horizontal Wind Data files. So, METEOR radar stores data in hwd file format, which can be treated as a normal text(.txt) file for file handling in python.

Related

Powerpoint PPT File to PPTX Using Python

I have been searching the web for hours trying to find something that might help me convert a file that was saved in the ppt file type to the pptx file type using python. I found "python-pptx" and was planning on using it to save the files, however this was not possible due to the continuous error:
Package not found at 'FileName.ppt'
I discovered another post (Convert ppt file to pptx in Python) which did not help me at all. I assume it is because my python version might be too high. (3.9) After reading up on getting the win32com.client to work and installing multiple pip and pip3 commands, it is still not working. If anyone could assist me with this manner I would be very thankful. My Current Code:
from pptx import *
prs = Presentation("FileName.ppt")
prs.save("FileName.pptx")
You can use Aspose.Slides for .NET and Python.NET package for converting PPT to PPTX as shown below:
import clr
clr.AddReference('Aspose.Slides')
from Aspose.Slides import Presentation
from Aspose.Slides.Export import SaveFormat
# Instantiate a Presentation object that represents a PPT file
presentation = Presentation("presentation.ppt")
# Save the presentation as PPTX
presentation.Save("presentation.pptx", SaveFormat.Pptx)
Our web applications use our libraries and you can see conversion results here.
I work at Aspose.
I doubt python-pptx can parse a .ppt file. (It's a completely different file format.) You're better off automating PowerPoint itself - somehow - to read one and write the other.
The "somehow" depends on the platform you're running on - and the automation capabilities available to you.

Read temperature, humdity, etc from grib2 files with EECodes in python3

I am trying to use EECodes in python to get various weather information, such as temperature, humidity, etc out of grib2 files. I am using the GFS files. I would like to be able to extract the data as (lat,lon,alt,$data_point), and as a 2d array for each altitude.
I have tried the example programs located here: https://confluence.ecmwf.int/display/ECC/grib_iterator_bitmap
I can't figure out what I am looking in the output of that program. When I load the messages using their keys, it is not obvious how to make a grid. When I load the grid, the data doesn't have labels I understand.
#craeft have a look to https://github.com/ecmwf/cfgrib. cfgrib is the new standard for python and grib file handling. It is easy to install and easy to access files. Please install the latest version because it supports GFS files.

THREDDS & METAR Plotting with Python

I'm having trouble trying to plot METAR data from the THREDDS data server, which comes in .nc format, onto a map. I'm using Siphon to grab the data and Xarray to open the dataset with remote_access, but the problem comes with attempting to convert the data to .csv or .txt. When using NetCDF Dataset and attempting to read the NetCDF4 file, I get a file does not exist error. I'm not really sure where to start as there doesn't seem to be much on the internet about this. Any help would be appreciated as I'm also really new to this.

Can't get to exif data .JPG image

I'm trying to read the exif data from a .JPG image. I've tried differents solutions found here and there (PIL, piexif, exifread...) and none of them worked for this set of images. It worked for other images taken from another camera but not for this one, all these different methods returning empty dictionaries. It seems that there is no exif data but (I apologies for my newbyness) when I RIGHT-click + properties (I use windows), I do see what is exif data to me : date of creation, etc...
Here is one image :
image.JPG
If another of the thousands of anonymous heroes could help me on this one, I would be very grateful...
Alright so I found a solution which I share now.
The problem is that the libraries that open metadata are not taking all possible configurations for the image file and therefore, they can handle some and some others they cannot. I finally made it using exiftool, an executable that I dowloaded on my windows on this link :
https://sno.phy.queensu.ca/~phil/exiftool/
Then I paste the executable in a folder and I add exiftool.py in that folder, that I got from :
https://github.com/smarnach/pyexiftool/find/master
Then, using this small piece of code (for example):
import exiftool
with exiftool.ExifTool("exiftool.exe") as et:
metadata = et.get_metadata_batch(files)
for d in metadata:
print("{:20.20} {:20.20}".format(d["SourceFile"],
d["File:FileCreateDate"]))
Of course, this is just to show that you indeed can access the metadata, then you can do whatever you want with that. Here is the documentation of the library exiftool : http://smarnach.github.io/pyexiftool/
Cheers, JM

Is there a quick way to convert a .dae file to a .osg file?

So is there a quick way to convert a .dae file (COLLADA) to a .osg (OpenSceneGraph) file?
Do you have the collada loader plugin and the standard command line osg utils? If so,
osgconv FILE.dae FILE.osg
from a command line will do it.
If you don't have the COLLADA plugin, you can use sketchup with Ryan Pavlik's osg exporter: https://github.com/rpavlik/sketchupToOSG
As a side note, this means it is super-simple to get anything from Google's 3D Warehouse into osg native formats, which means tons of great models.
From what i remember the Blender 2.49 was able to import Collada files and export OpenSceneGraph files.
You can give it a tray and download this version of Blender plus the exporter for OSG.
http://forum.openscenegraph.org/viewtopic.php?p=40070#40070
http://download.blender.org/release/
There is also an .osg exporter for 3DS Max: http://osgmaxexp.wiki.sourceforge.net
You can import your .dae there and then use the exporter to create an .osg.

Resources