Hello notion21223,
Also, I believe there is an error in your extraction formula. It should be (parentheses added for clarity):
Real_value= (scale_factor*stored_value) – add_offset
instead of
Real_value= scale_factor*(stored_value – add_offset)
-Mike
Search found 90 matches
- Mon Mar 28, 2016 2:00 pm
- Forum: Scripting
- Topic: Difference between raw data values and scaled data values
- Replies: 5
- Views: 4125
- Thu Feb 04, 2016 3:22 pm
- Forum: Bug Reports
- Topic: Date incorrect GOES-R test files
- Replies: 3
- Views: 2469
Re: Date incorrect GOES-R test files
Hi Joleen, Currently the timestamp in the McV display comes from the "t" variable in the NetCDF file, which for that particular file has a value of "476374086.93498" in units of "seconds since 2000-01-01 12:00:00". The following Python code seems to confirm that 02:08UT...
- Tue Aug 04, 2015 2:31 pm
- Forum: Bug Reports
- Topic: ucar.ma2 invalid range expection from loadGrid
- Replies: 5
- Views: 3504
Re: ucar.ma2 invalid range expection from loadGrid
Joleen, I am aware of the issues with loadGrid and the ABI DOE files. I wrote some code a few months ago that demonstrates how to get these files loaded from a Jython script, which I attached below and is hopefully helpful. I intend to make loadGrid compatible with the ABI-DOE files using this strat...
- Wed May 13, 2015 2:42 pm
- Forum: Scripting
- Topic: displaying a time series of RGB images
- Replies: 32
- Views: 16722
Re: displaying a time series of RGB images
Joleen, It looks like a single FlatField is getting passed into makeTimeFieldFromFlatFields... see the line: Number of Flat Fields: 3120000 Number of Times: 3 counter 0 2014-05-20 23:05:00 Z i.e., in makeTimeFromFlatFields, len(fltFlds) is returning 3120000, so fltFlds is probably a single FlatField...
- Wed May 06, 2015 5:42 pm
- Forum: Scripting
- Topic: displaying a time series of RGB images
- Replies: 32
- Views: 16722
Re: displaying a time series of RGB images
Joleen, I can't think of any obvious reason why setSample would be failing in this scenario. Just for fun, in the makeSingleTimeField function, you could modify newField.setSample(0, fltFld,0) to read newField.setSample(0, fltFld,0, 0) This is a different form of setSample that disables the range eq...
- Wed Apr 22, 2015 7:14 pm
- Forum: Scripting
- Topic: Scaling and Centering Displays
- Replies: 9
- Views: 8352
Re: Scaling and Centering Displays
I did not want to pass the dependency of a specific viewpoint name. Yep, that's definitely the downside of viewpoints. It looks like a "viewpoint" is basically just the combination of a projection name and a 4x4 projection matrix... It wouldn't look pretty to have a 4x4 matrix hard coded ...
- Tue Apr 21, 2015 4:45 pm
- Forum: Scripting
- Topic: Scaling and Centering Displays
- Replies: 9
- Views: 8352
Re: Scaling and Centering Displays
Also, with the disclaimer that I'm not at all an expert an VisAD's projection matrix... when you do setScaleFactor, what ultimately gets called is DisplayMaster.zoom ... which in turn *multiplies* the scale factor you specified by the current projection matrix ... so I wouldn't expect the resulting ...
- Tue Apr 21, 2015 4:33 pm
- Forum: Scripting
- Topic: Scaling and Centering Displays
- Replies: 9
- Views: 8352
Re: Scaling and Centering Displays
Joleen, Have you tried the setViewpoint method I put in for HP?: http://mcidas.ssec.wisc.edu/forums/viewtopic.php?f=31&t=1166&hilit=setviewpoint Sounds like it would be useful for what you are trying to accomplish. Basically you just arrange your display as desired, save off a viewpoint usin...
- Mon Dec 15, 2014 5:43 pm
- Forum: Bug Reports
- Topic: error when creating an RGB layer
- Replies: 5
- Views: 3142
Re: error when creating an RGB layer
Hi HP, This is unrelated to the VIIRS plugin actually. (However, you'll probably want to follow Rick's suggestion anyway if you're doing any work with the VIIRS plugin). We made some fairly substantial low-level changes to the scripting stuff last week which broke createLayer's compatibility with th...
- Fri Aug 01, 2014 5:04 pm
- Forum: Bug Reports
- Topic: McIDAS1.5beta2 - loadFile from Xml Catalog problem
- Replies: 6
- Views: 3138
Re: McIDAS1.5beta2 - loadFile from Xml Catalog problem
Hi Carlos,
We just updated the nightly build one more time. If you download and install the newest nightly, the "dods://" URL should work. Sorry again about the hassle, but thanks for working through it with us!
Let us know if you have any more trouble!
Mike
We just updated the nightly build one more time. If you download and install the newest nightly, the "dods://" URL should work. Sorry again about the hassle, but thanks for working through it with us!
Let us know if you have any more trouble!
Mike