Reading "a flat, binary array of 16-bit signed, little-endian (LSB) integers" from file in python

I’m trying to read a old file of snow data from here, but I’m having a ton of trouble just opening a single file and getting data out. In the user guide, it says "Each monthly binary data file with the file extension ".NSIDC8" contains a flat, binary array of 16-bit signed, little-endian (LSB) integers,… Read More Reading "a flat, binary array of 16-bit signed, little-endian (LSB) integers" from file in python

Saving Binary Data with javascript changes bytes

I have some binary data im trying to save to a file using javascript. The backend sending the data is written in python. Here is the backend code for sending the binary data using flasks send_file: def exportSavedata(characterId): character = Characters.query.filter_by(id=characterId, user_id=current_user.id).first() savedata = character.savedata exportFolder = os.path.join(os.path.dirname(os.path.abspath(__file__)), ‘exportSavedata’) if not os.path.isdir(exportFolder): os.mkdir(exportFolder) filename =… Read More Saving Binary Data with javascript changes bytes

Remove items from one list if they contain strings from another list

I’m looking for the most efficient way to remove items from one list if they contain strings from another list. For example: B list contains: TomWentFishing SueStayedHome JohnGoesToSchool JimPlaysTennis A list contains: GoesToSchool SueStayed C list should contain: TomWentFishing JimPlaysTennis I’ve used this code, but it takes up a lot of time as the lists… Read More Remove items from one list if they contain strings from another list