在 ENVI+IDL 中将变量转换为图像的 FID?

发布于 2024-11-19 00:58:39 字数 624 浏览 5 评论 0原文

我开始在工作中使用 ENVI+IDL(我想,这大部分与 IDL 相关,以防万一您只知道其中之一而不是另一个),对两者来说都是全新的。由于 ENVI 不是现有标签,因此我将解释它是一个与 IDL 集成的工具包和 GUI,用于地理空间图像处理。 ENVI 有一些预定义的图像处理函数,在本例中,一个名为 envi_convert_file_map_projection,它接受您希望重新投影的图像的 FID 作为参数。

我不完全理解 FID 的想法,但我认为它是分配给打开文件的整数;这意味着我必须先打开该文件。所以我使用 IDL 函数:variable_name = READ_TIFF(filename),我认为这使得variable_name 指向数组。我不知道如何从中获得 FID;两个不相关的概念?

编辑:似乎大多数标记为 IDL 的帖子都指的是接口描述语言。直到现在我才听说过这个。这篇文章是关于交互式数据语言的,与其他语言没有关系,并且标签系统似乎没有反映出歧义。如果你的声望比我高,你能制作一个新标签,例如 idl-data、idl-ittvis(在语言开发者之后)或 Interactive-data-language 吗?

编辑编辑:我遇到了一个不同的命令 openr,它将文件分配给一个 lun(逻辑单元号),这似乎与 FID 类似。我会尝试使用这个来代替并让你知道。

I'm beginning to use ENVI+IDL (most of this relates to IDL, I think, in case you know one but not the other) at work, completely new to both. Since ENVI isn't an existing tag, I'll explain that it's a toolkit and GUI, integrated with IDL, for geospatial image processing. ENVI has some predefined image manipulation functions, in this case, one called envi_convert_file_map_projection, which accepts as argument the FID of the image you wish to reproject.

I don't totally understand the FID idea, but I gather it's an integer assigned to an open file; meaning I have to open the file first. So I use the IDL function: variable_name = READ_TIFF(filename), which I suppose makes variable_name point to the array. I'm not sure how I get an FID out of this; two unrelated concepts?

EDIT: It seems that most of the posts tagged IDL are referring to Interface Description Language. I'd never heard of this until now. This post is about the Interactive Data Language, with no relation to the other, and the tag system doesn't seem to reflect the ambiguity. If you have higher rep than I do, are you able to make a new tag, such as idl-data, idl-ittvis (after the language developer) or interactive-data-language?

EDIT EDIT: I've come across a different command, openr, which assigns the file to a lun (logical unit number) which seems to be similar to the FID. I'll try using this instead and let you know.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清眉祭 2024-11-26 00:58:39

使用ENVI_OPEN_DATA_FILE从 TIFF 文件的文件名中获取 FID。有关 ENVI 特定例程的更多信息,请参阅 ENVI 程序员指南可以从 IDL 使用,尽管 ENVI 的 IDL 接口并没有真正记录得很好。

Use ENVI_OPEN_DATA_FILE to get a FID from the filename of a TIFF file. See the ENVI Programmer's Guide for more information about ENVI specific routines that can be used from IDL, though ENVI's IDL interface is not really documented very well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文