Author Topic: Number of characters in file name  (Read 1961 times)

Offline astronut892010

  • Newcomer
  • Posts: 2
Number of characters in file name
« on: 2020 February 02 17:40:01 »
Pixinsight v 1.8.8-2 will not recognize my filename that appears to have too many characters in the file name.

File name in question is:

Flat_filter7_2020-02-01_060400_1x1_0.29sec_-15CFlats ProED ASI1600 Pro 20191228_fpos_18941_amb_11.0C.fit

When I truncate the file name, the software recognizes the file.  Can you address this in a future build so my files can be read?

Thank you,

Jay Landis

Offline bulrichl

  • PixInsight Guru
  • ****
  • Posts: 524
Re: Number of characters in file name
« Reply #1 on: 2020 February 03 01:55:42 »
Your issue is that the file name contains an invalid file name character, the ' ' (space) character. Please replace it by a valid file name character.

Bernd
 

Offline wvanreeven

  • PixInsight Enthusiast
  • **
  • Posts: 82
Re: Number of characters in file name
« Reply #2 on: 2020 February 03 05:09:27 »
Please open only one topic for similar problems. See

https://pixinsight.com/forum/index.php?topic=14661.msg87539

for my answer.


Wouter

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Number of characters in file name
« Reply #3 on: 2020 February 03 08:59:54 »
PixInsight does not set any specific limit on the maximum number of characters that can be used in a file or directory name. As Wouter has said (in the other thread), the limits in this regard are always imposed by the host operating system.

On Windows, the maximum length of a full file path (which includes the drive specifier, the directory path, the file name and extension) is 260 characters. Starting from Windows 10 version 1607, this limitation has been removed, but you must opt-in to the new behavior, which remains disabled by default. See this Microsoft document for complete information.

Your issue is that the file name contains an invalid file name character, the ' ' (space) character.

PixInsight fully supports spaces in file and directory names, on all supported platforms, so this should not be the problem.

On a side note, I really cannot understand why the people insist in using file names like this:

"Flat_filter7_2020-02-01_060400_1x1_0.29sec_-15CFlats ProED ASI1600 Pro 20191228_fpos_18941_amb_11.0C.fit"

IMHO, such file names are completely unmanageable. Image file formats provide standardized mechanisms to store metadata describing filters, acquisition dates, binning factors, exposure times, frame types, temperatures, cameras, telescopes, focuser positions, astronomical objects and coordinates, among many other items. There is no need to generate absurdly long and complex file names, which are just an excellent way to call for problems. One should use well-structured directory trees to keep the data perfectly organized, taking care to store all of the required metadata in each raw frame. A file name such as "001.fits" is an excellent option.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/