Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_msc_sim
Commits
c326c535
Commit
c326c535
authored
Oct 26, 2024
by
Wei Chengliang
Browse files
update codestyle-PEP8
parent
ba121152
Pipeline
#7106
failed with stage
in 0 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
catalog/Catalog_example.py
View file @
c326c535
...
...
@@ -72,7 +72,7 @@ class Catalog(CatalogBase):
This is a must implemented method which is used to read in all objects, and
then convert them to observation_sim.mock_objects (Star, Galaxy, or Quasar).
Currently,
Currently,
the model of observation_sim.mock_objects.Star class requires:
param["star"] : int
specify the object type: 0: galaxy, 1: star, 2: quasar
...
...
@@ -84,7 +84,7 @@ class Catalog(CatalogBase):
Declination (in degrees)
param["mag_use_normal"]: float
the absolute magnitude in a particular filter
NOTE: if that filter is not the corresponding CSST filter, the
NOTE: if that filter is not the corresponding CSST filter, the
load_norm_filt(obj) function must be implemented to load the filter
throughput of that particular photometric system
...
...
@@ -99,7 +99,7 @@ class Catalog(CatalogBase):
Declination (in degrees)
param["mag_use_normal"]: float
the absolute magnitude in a particular filter
NOTE: if that filter is not the corresponding CSST filter, the
NOTE: if that filter is not the corresponding CSST filter, the
load_norm_filt(obj) function must be implemented to load the filter
throughput of that particular photometric system
param["bfrac"] : float
...
...
catalog/testCat_fits.py
View file @
c326c535
...
...
@@ -177,7 +177,7 @@ class Catalog(CatalogBase):
# param["CSSTmag"]= True
# param["mag_r"] = 20.
# param['']
#
##
more keywords for stamp#
##
# more keywords for stamp#
param
[
'image'
]
=
hdu
[
0
].
data
param
[
'image'
]
=
param
[
'image'
]
/
(
np
.
sum
(
param
[
'image'
]))
obj
=
Stamp
(
param
)
...
...
observation_sim/ObservationSim.py
View file @
c326c535
...
...
@@ -25,7 +25,7 @@ class Observation(object):
def
prepare_chip_for_exposure
(
self
,
chip
,
ra_cen
,
dec_cen
,
pointing
,
wcs_fp
=
None
,
slsPSFOptim
=
False
):
# Get WCS for the focal plane
if
wcs_fp
==
None
:
if
wcs_fp
is
None
:
wcs_fp
=
self
.
focal_plane
.
getTanWCS
(
ra_cen
,
dec_cen
,
pointing
.
img_pa
,
chip
.
pix_scale
)
...
...
observation_sim/config/__init__.py
View file @
c326c535
from
.ChipOutput
import
ChipOutput
from
.Pointing
import
Pointing
\ No newline at end of file
from
.Pointing
import
Pointing
observation_sim/config/header/__init__.py
View file @
c326c535
from
.ImageHeader
import
generatePrimaryHeader
from
.ImageHeader
import
generateExtensionHeader
\ No newline at end of file
from
.ImageHeader
import
generateExtensionHeader
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment