I am trying to use the center lat/lon of an area to determine if the area is from the FD,SH,NH,CONUS sets as a matter of bookeeping. For the record, everything is being pull from the .ALL descriptor. I created a URL object, and connected to the area directory of the adde image using the AreaDirectory class. However, the center lat/lon are missing.
In McIDAS-X, the area directory contains a center lat/lon
What would be the reason why the area directory is shortened through the AreaDirectory class? Also, is there a better way to determine the satellite schedule for the purposes of documenting a file?
Joleen
area directory/getting center lat/lon
Re: area directory/getting center lat/lon
Are you using the AreaDirectoryList to generate that McIDAS-X-like table output? If so, I'm not sure why it doesn't include the center lat/lon.
Regardless, do AreaDirectory's "getCenterLatitude"/"getCenterLongitude" methods work properly?
Regardless, do AreaDirectory's "getCenterLatitude"/"getCenterLongitude" methods work properly?
Re: area directory/getting center lat/lon
As to a better approach…I know the SSEC Data Center provides schedule/coverage information:
http://www.ssec.wisc.edu/datacenter/schedules.html
And it looks like the "coverage" column from a schedule might work. For example:
http://www.ssec.wisc.edu/datacenter/goe ... sched.html
http://www.ssec.wisc.edu/datacenter/schedules.html
And it looks like the "coverage" column from a schedule might work. For example:
http://www.ssec.wisc.edu/datacenter/goe ... sched.html
Code: Select all
2013 - Schedule ROUTINE - Satellite GOES-14(Imager)
SSEC SAT-ID: 182 YEAR: 2013 SCHEDULE: ROUTINE (05/23/2013 - )
IMAGE TIME COVERAGE DURATION IMAGE INFORMATION
---------- -------- -------- --------------------
0:15 NH 9:44 Center: 22N 71W
NLAT=55N
SLAT= 2S
BAND=1-4,6
0:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
0:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
1:02 CONUS 4:48 Center: 32N 72W
NLAT=61N
SLAT=14
BAND=1-4,6
1:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
1:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
1:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
1:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
1:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
2:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
2:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
2:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
2:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
2:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
2:45 FD 26:06 Center: 0N 70W
NLAT=79N
SLAT=79S
BAND=1-4,6
3:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
3:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
3:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
3:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
4:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
4:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
4:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
********************************************************************
BEGIN ECLIPSE PERIOD.
IMAGES DURING THIS PERIOD MAY BE CANCELED OR REPLACED
WITH OTHER COVERAGES.
Spring eclispe season: 2013086 - 2013105
Detailed Spring Eclipse Schedule (as received from NOAA)
Fall eclispe season: 2013241 - 2013289
Detailed Fall Eclipse Schedule (as received from NOAA)
********************************************************************
4:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
4:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
4:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
5:02 CONUS 4:48 Center: 32N 72W
NLAT=61
BAND=1-4,6
BAND=1-4,6
5:09 Limited SH 4:32 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
5:13 CALIBRATION FRAME* 0:10
5:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
********************************************************************
END OF ECLIPSE PERIOD.
********************************************************************
5:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
5:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
5:45 FD 26:06 Center: 0N 80W
NLAT=79N
SLAT=79S
BAND=1-4,6
6:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
6:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
6:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
6:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
7:02 CONUS 4:48 Center: 32N 72W
NLAT=61
BAND=1-4,6
BAND=1-4,6
7:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
7:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
7:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
7:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
7:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
8:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
8:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
8:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
8:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
8:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
8:45 FD 26:06 Center: 0N 80W
NLAT=79N
SLAT=79S
BAND=1-4,6
9:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
9:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
9:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
9:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
10:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
BAND=1-4,6
10:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
10:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
10:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
10:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
10:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
11:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
11:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
11:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
11:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
11:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
11:45 FD 26:06 Center: 0N 80W
NLAT=79N
SLAT=79S
BAND=1-4,6
12:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
12:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
13:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
13:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
13:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
13:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
13:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
13:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
14:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
14:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
14:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
14:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
14:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
14:45 FD 26:06 Center: 0N 80W
NLAT=79N
SLAT=79S
BAND=1-4,6
BAND=1-4,6
15:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
15:34 HOUSE-KEEP 10:00
15:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
16:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
BAND=1-4,6
16:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
16:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
16:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
16:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
16:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
17:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
17:09 Limited SH 4:32 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
17:13 CALIBRATION FRAME* 0:10
17:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
17:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
17:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
17:45 FD 26:06 Center: 0N 70W
NLAT=79N
SLAT=79S
BAND=1-4,6
18:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
18:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
19:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
19:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
19:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
19:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
19:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
19:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
20:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
20:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
20:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
20:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
20:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
20:45 FD 26:06 Center: 0N 70W
NLAT=79N
SLAT=79S
BAND=1-4,6
21:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
21:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
21:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
21:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
22:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
22:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
22:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
22:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
22:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
22:45 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
23:02 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
23:09 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
23:15 NHE 14:15 Center: 14N 72W
NLAT=65N
SLAT=20S
BAND=1-4,6
23:32 CONUS 4:48 Center: 32N 72W
NLAT=61
SLAT=14
BAND=1-4,6
23:39 SH 4:49 Center: 32S 71W
NLAT=19S
SLAT=49S
BAND=1-4,6
23:45 FD 26:06 Center: 0N 70W
NLAT=79N
SLAT=79S
BAND=1-4,6
* - frame taken in support of instrument calibration
Last Updated: May 31, 2013
Re: area directory/getting center lat/lon
The center lat/lon and resolution information is not part of the AreaDirectory, per se. These values are appended by the server as "comment cards" (yes, they are 80 column records....). The AreaDirectoryList class is the only one that reads these data. The default "listing" format, however, does not contain these values...so, as Jon suggests, you'd need to call the "get" methods to fetch the values.
Re: area directory/getting center lat/lon
Is there an inquiry for this? Right now my code is printing "?" for the center lat and center lon and I am wondering if I should just remove that portion from the final output file. If the methods of "getCenterLatitude()" and "getCenterLongitude()" will soon return the center latitude and longitude, I won't change my code.
Thanks,
Joleen
Thanks,
Joleen
Re: area directory/getting center lat/lon
Hi Joleen,
Following TomW's hint that AreaDirectoryList is the only class that actually reads the comment cards (and doing some hacking of my own), I was able to get this working with the URLs from your original post...
Hopefully that's helpful... given my limited understanding of ADDE I'm not sure whether there should be an inquiry related to this!
Mike
Following TomW's hint that AreaDirectoryList is the only class that actually reads the comment cards (and doing some hacking of my own), I was able to get this working with the URLs from your original post...
Code: Select all
from edu.wisc.ssec.mcidas import AreaDirectoryList
# note: you'll need to change the USER/PROJ in the URL to make this work.
# also, I had to change "imagedata" to "imagedir" in the ADDE url...
urlString = 'adde://geoarc.ssec.wisc.edu/imagedir?&PORT=112&COMPRESS=gzip&USER=ABC&PROJ=1234&GROUP=AGOES13&DESCRIPTOR=CONUS&PLACE=UPPER&LINELE=0 4 F&SIZE=883 2120&UNIT=TEMP&MAG=1 1&SPAC=4&AUX=YES&TRACK=1&DAY=2013152&TIME=6:32:00&BAND=2'
adl = AreaDirectoryList(urlString)
# get the list of AreaDirectory's created by AreaDirectoryList...
dirList = adl.getDirs()
# now center lat/lon fields should be initialized properly...
print dirList[0].getCenterLongitude()
print dirList[0].getCenterLatitude()
Hopefully that's helpful... given my limited understanding of ADDE I'm not sure whether there should be an inquiry related to this!
Mike
Re: area directory/getting center lat/lon
I think the larger issue is that the "card" information is only available for image directory requests…but I believe changing that would require modifications to the ADDE protocol (and that, unfortunately, does not seem very likely to happen )
Re: area directory/getting center lat/lon
Hi,
I recently created an image using IMGFILT, but then have been working within McIDAS-V to display the images. The information for how I created that image is in the Audit trail. I went back to McIDAS-X to look at the audit trail, but it would be nice to view this in McIDAS-V. Audit trails have been very useful in the past when creating products as areas. If AREAS and audit trails will continue into the GOES-R era, it would be nice to be able to access some of that information in the details of an image and through a method like areaDirectory.getAuditTrail().
Joleen
I recently created an image using IMGFILT, but then have been working within McIDAS-V to display the images. The information for how I created that image is in the Audit trail. I went back to McIDAS-X to look at the audit trail, but it would be nice to view this in McIDAS-V. Audit trails have been very useful in the past when creating products as areas. If AREAS and audit trails will continue into the GOES-R era, it would be nice to be able to access some of that information in the details of an image and through a method like areaDirectory.getAuditTrail().
Joleen
Re: area directory/getting center lat/lon
Hi Joleen -
Thanks for the request of being able to print out the audit trail of a file in McIDAS-V. I have written this up as Inquiry 1783.
An alternative method for getting the center lat/lon of a file would be by printing out the keys returned from listADDEImages. For example, I copied over some AREAS, created a local dataset, ran a listADDEImages and printed out the keys. This includes 'Center-longitude' and 'Center-latitude'.
Thanks -
Bob Carp
Thanks for the request of being able to print out the audit trail of a file in McIDAS-V. I have written this up as Inquiry 1783.
An alternative method for getting the center lat/lon of a file would be by printing out the keys returned from listADDEImages. For example, I copied over some AREAS, created a local dataset, ran a listADDEImages and printed out the keys. This includes 'Center-longitude' and 'Center-latitude'.
Code: Select all
dataDir = 'C:/Users/myuser/data/testArea/'
areaDataset = makeLocalADDEEntry(dataset='AREA', imageType='Area files', format='McIDAS Area', mask=dataDir)
desc = getLocalADDEEntry(dataset='AREA', imageType='Area files')
dirList = listADDEImages(localEntry=desc, position=-1, size='ALL')
for tempDir in dirList:
for key, value in tempDir.iteritems():
print key, value
Thanks -
Bob Carp