Skip to content

Commit 1f4a809

Browse files
committed
2024.03.05
1 parent 9c93aae commit 1f4a809

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

JPFITS/AstraCarta.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,19 @@ public static void Help()
9696
MessageBox.Show(sb.ToString());
9797
}
9898

99-
/// <summary>
100-
/// Perform a query with no user interface dialog form. Will throw an informative exception if something goes wrong. Returns a string which is the filename of the catalogue data downloaded. If nothing was found the string will be empty.
101-
/// </summary>
102-
/// <param name="ra">The right acension of the field center. Degrees.</param>
103-
/// <param name="dec">The declination of the field center. Degrees.</param>
104-
/// <param name="scale">The plate scale in arcseconds per pixel.</param>
105-
/// <param name="pixwidth">The number of horizontal pixels of the image.</param>
106-
/// <param name="pixheight">The number of vertical pixels of the image</param>
107-
/// <param name="optArgs">Optional arguments list. Possible arguments can be found here: https://github.com/user29A/AstraCarta/wiki, or with AstraCarta.Help call.
108-
/// <br />Be sure to pass the switch "-argument"; for example do not pass "buffer", but pass "-buffer", etc.
109-
/// <br />Arguments and their values must be consecutive, for example: optArgs.Add("-buffer); optArgs.Add(2); and so on.
110-
/// <br />Boolean arguments do not require a value, and their presence indicates true. For example the presence of optArgs.Add("-fitsout") equates to true for writing the file as a FITS bintable.</param>
111-
public static string Query(double ra, double dec, double scale, int pixwidth, int pixheight, ArrayList? optArgs = null)
99+
/// <summary>
100+
/// Perform a query with no user interface dialog form. Will throw an informative exception if something goes wrong. Returns a string which is the filename of the catalogue data downloaded. If nothing was found the string will be empty.
101+
/// </summary>
102+
/// <param name="ra">The right acension of the field center. Degrees.</param>
103+
/// <param name="dec">The declination of the field center. Degrees.</param>
104+
/// <param name="scale">The plate scale in arcseconds per pixel.</param>
105+
/// <param name="pixwidth">The number of horizontal pixels of the image.</param>
106+
/// <param name="pixheight">The number of vertical pixels of the image</param>
107+
/// <param name="optArgs">Optional arguments list. Possible arguments can be found here: https://github.com/user29A/AstraCarta/wiki, or with AstraCarta.Help call.
108+
/// <br />Be sure to pass the switch "-argument"; for example do not pass "buffer", but pass "-buffer", etc.
109+
/// <br />Arguments and their values must be consecutive, for example: optArgs.Add("-buffer); optArgs.Add(2); and so on.
110+
/// <br />Boolean arguments do not require a value, and their presence indicates true. For example the presence of optArgs.Add("-fitsout") equates to true for writing the file as a FITS bintable.</param>
111+
public static string Query(double ra, double dec, double scale, int pixwidth, int pixheight, ArrayList? optArgs = null)
112112
{
113113
double RAorig = ra;
114114
double decorig = dec;

JPFITS/FITSHeader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public string[] GetFormattedHeaderBlock(HeaderUnitType headerType, bool keysOnly
209209
if (HEADERKEYS[i].Name.Trim() == "PCOUNT")
210210
pcountkey = true;
211211
if (HEADERKEYS[i].Name.Trim() == "GCOUNT")
212-
pcountkey = true;
212+
gcountkey = true;
213213
}
214214
if (!pcountkey && !gcountkey)//they would BOTH not be present if things are being done correctly...need to add them
215215
{

0 commit comments

Comments
 (0)