NASA-DEVELOP / dnppy

DEVELOP National Program Python package for use with NASA data and GIS!
https://nasa-develop.github.io/dnppy/
Other
82 stars 40 forks source link

Fmask Error: output argument "clr_pct"... #80

Open nasavish opened 9 years ago

nasavish commented 9 years ago

Downloaded the standalone Fmask for windows and are having some issue. The package came with the following files:

fmask

After being prompted to install the MCR package, which successfully occurred, we tried running the Fmask. This is the error we received:

fmaskerror

Anyone know what is going on? The reason we are using Fmask is because it masks out cloud shadows, which the cloudmask script on dnppy does not.

Syntaf commented 9 years ago

Are you calling fmask from the command line? or no?

EDIT: If so, how do you call it?

nasavish commented 9 years ago

No. We have been trying to open the application from the file folder. I did see this thread online...

https://code.google.com/p/fmask/issues/detail?id=10

Syntaf commented 9 years ago

Where is your data? from a quick google search it looks like you'll need to call it from your cline


Say:

Open your command prompt

> cd C:/data
> C:/tools/Fmask

Try that


In the case of that issue, it was because he needed to change drives as well while calling Fmask (thus the need for \D), I don't believe that is the case for you (unless your data is on an external harddrive)

nasavish commented 9 years ago

I am going to write what I understand your suggestion to mean.

  1. Change directory of file path to where data is located
  2. Call file path where Fmask is located.

I have attached images of what happened when I tried doing that.

First image is of (1) after pressing 'enter'

cd

This image is of (2) before pressing 'enter'

fmask_image

This image is of (2) after pressing 'enter'

fmask_error

After this step, as you can see from the image, I am receiving an error. Have I done something incorrectly? Also, I'm not sure I completely understand (2) of your instructions. Can you please elaborate?

Syntaf commented 9 years ago

try Fmask.exe , the extension is important if it's included in the name.

nasavish commented 9 years ago

Receiving the same error.

However, I just realized that this computer doesn't have the hardware required to support Fmask.

Let me give this a go on one of the other computers that is all set up.

nasavish commented 9 years ago

No go

nasavish commented 9 years ago

I tried opening the Fmask application again and, while the same error popped up as in the first post, this error followed.

error

Syntaf commented 9 years ago

Is desktop/Fmask Fmask.exe , or the folder containing Fmask.exe? you cannot launch a folder via the command line, you need to launch an executable .

nasavish commented 9 years ago

It was referring to the folder. I just tried modifying it so it would launch the application but perhaps I did it incorrectly because I am getting the same error.

error

Syntaf commented 9 years ago

That's because your command line is parsing C:\Users\NASA DEVELOP\Desktop\Trial\Fmask\Fmask.exe as two separate commands due to the space . Place this in "" quotes so the cmd knows this is one single path

Jwely commented 9 years ago

As a note: this issue has nothing to do with dnppy, so i've added the wontfix label.